equal
deleted
inserted
replaced
64 } |
64 } |
65 |
65 |
66 -(void) addWeapon:(id) sender { |
66 -(void) addWeapon:(id) sender { |
67 NSString *fileName = [[NSString alloc] initWithFormat:@"Weapon %u.plist", [self.listOfWeapons count]]; |
67 NSString *fileName = [[NSString alloc] initWithFormat:@"Weapon %u.plist", [self.listOfWeapons count]]; |
68 |
68 |
69 createWeaponNamed([fileName stringByDeletingPathExtension]); |
69 createWeaponNamed([fileName stringByDeletingPathExtension], 0); |
70 |
70 |
71 [self.listOfWeapons addObject:fileName]; |
71 [self.listOfWeapons addObject:fileName]; |
72 [fileName release]; |
72 [fileName release]; |
73 |
73 |
74 // order the array alphabetically, so schemes will keep their position |
74 // order the array alphabetically, so schemes will keep their position |