-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAustrinAllCharacters.m
More file actions
28 lines (22 loc) · 888 Bytes
/
Copy pathAustrinAllCharacters.m
File metadata and controls
28 lines (22 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// AustrinAllCharacters.m
// TEORWorldMapTest
//
// Created by Zach Babb on 6/23/11.
// Copyright 2011 InstantLazer. All rights reserved.
//
#import "AustrinAllCharacters.h"
#import "GameController.h"
#import "AbstractScene.h"
#import "AbstractBattleCharacter.h"
#import "BattleRoderick.h"
@implementation AustrinAllCharacters
+ (void)healCharacterEssences {
BattleRoderick *roderick = [[GameController sharedGameController].battleCharacters objectForKey:@"BattleRoderick"];
for (AbstractBattleCharacter *character in [GameController sharedGameController].currentScene.activeEntities) {
if ([character isKindOfClass:[AbstractBattleCharacter class]]) {
[character youWereGivenEssence:(int)((10 + ((roderick.skyAffinity + roderick.affinity + roderick.affinityModifier) / 10)) * (roderick.essence / roderick.maxEssence))];
}
}
}
@end