equal
deleted
inserted
replaced
94 |
94 |
95 NSArray *hogs = [teamData objectForKey:@"hedgehogs"]; |
95 NSArray *hogs = [teamData objectForKey:@"hedgehogs"]; |
96 for (int i = 0; i < numberOfPlayingHogs; i++) { |
96 for (int i = 0; i < numberOfPlayingHogs; i++) { |
97 NSDictionary *hog = [hogs objectAtIndex:i]; |
97 NSDictionary *hog = [hogs objectAtIndex:i]; |
98 |
98 |
99 NSString *hogLevelHealthAndName = [[NSString alloc] initWithFormat:@"eaddhh %@ %d %@", |
99 NSString *hogLevelHealthAndName = [[NSString alloc] initWithFormat:@"eaddhh %@ %ld %@", |
100 [hog objectForKey:@"level"], initialHealth, [hog objectForKey:@"hogname"]]; |
100 [hog objectForKey:@"level"], (long)initialHealth, [hog objectForKey:@"hogname"]]; |
101 [self sendToEngine: hogLevelHealthAndName]; |
101 [self sendToEngine: hogLevelHealthAndName]; |
102 [hogLevelHealthAndName release]; |
102 [hogLevelHealthAndName release]; |
103 |
103 |
104 NSString *hogHat = [[NSString alloc] initWithFormat:@"ehat %@", [hog objectForKey:@"hat"]]; |
104 NSString *hogHat = [[NSString alloc] initWithFormat:@"ehat %@", [hog objectForKey:@"hat"]]; |
105 [self sendToEngine: hogHat]; |
105 [self sendToEngine: hogHat]; |