GhostWD
I'm in love with the var_dump()
- Joined
- Jan 25, 2009
- Messages
- 185
- Solutions
- 6
- Reaction score
- 29
Hello i have started playing with exhausts in spells
i have added to tfs04/spells.cpp at master · Fir3element/tfs04 · GitHub
something like
to tfs04/spells.cpp at master · Fir3element/tfs04 · GitHub
and
EXHAUST_COMBO1
EXHAUST_COMBO2
to player.h Exhaust_t
and to test it i put some prints and im stuck at
when i'm using spell with agresive true or false it prints out, when i use spell with combo1 or combo2 true it prints at addExhaust but it won't printC and printD. Any sugestions? Thank You!
i have added to tfs04/spells.cpp at master · Fir3element/tfs04 · GitHub
something like
Code:
if(agresive)
player->addExhaust(exhaustion, EXHAUST_COMBAT);
if(!agresive)
player->addExhaust(exhaustion, EXHAUST_HEALING);
if(isCombo1)
player->addExhaust(exhaustion, EXHAUST_COMBO1);
if(isCmobo2)
player->addExhaust(exhaustion, EXHAUST_COMBO2);
to tfs04/spells.cpp at master · Fir3element/tfs04 · GitHub
Code:
else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_HEALING))
exhausted = true;
else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBO1))
exhausted = true;
else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBO2))
exhausted = true;
EXHAUST_COMBO1
EXHAUST_COMBO2
to player.h Exhaust_t
and to test it i put some prints and im stuck at
Code:
if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBAT))
PrintA
exhausted = true;
}
else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_HEALING))
printB
exhausted = true;
else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBO1))
printC
exhausted = true;
else if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_COMBO2))
printD
exhausted = true;
when i'm using spell with agresive true or false it prints out, when i use spell with combo1 or combo2 true it prints at addExhaust but it won't printC and printD. Any sugestions? Thank You!
Last edited: