equal
deleted
inserted
replaced
78 } |
78 } |
79 |
79 |
80 -(void) addWeapon:(id) sender { |
80 -(void) addWeapon:(id) sender { |
81 NSString *fileName = [[NSString alloc] initWithFormat:@"Weapon %u.plist", [self.listOfWeapons count]]; |
81 NSString *fileName = [[NSString alloc] initWithFormat:@"Weapon %u.plist", [self.listOfWeapons count]]; |
82 |
82 |
83 createWeaponNamed([fileName stringByDeletingPathExtension], 0); |
83 [CreationChamber createWeaponNamed:[fileName stringByDeletingPathExtension]]; |
84 |
84 |
85 [self.listOfWeapons addObject:fileName]; |
85 [self.listOfWeapons addObject:fileName]; |
86 |
86 |
87 // order the array alphabetically, so schemes will keep their position |
87 // order the array alphabetically, so schemes will keep their position |
88 [self.listOfWeapons sortUsingSelector:@selector(compare:)]; |
88 [self.listOfWeapons sortUsingSelector:@selector(compare:)]; |