gohamvsgoku
Member
- Joined
- Aug 21, 2017
- Messages
- 151
- Reaction score
- 9
C++:
else if (identifier == "poison") {
conditionDamage = new ConditionDamage(CONDITIONID_COMBAT, CONDITION_POISON);
conditionDamage->setParam(CONDITION_PARAM_DELAYED, true);
combatType = COMBAT_EARTHDAMAGE;
items[id].combatType = combatType;
items[id].conditionDamage.reset(conditionDamage);
I found this code in my items.cpp
This add a delay to start the condition yes?
How can i set the time for this delay?
Because in condition.cpp i found this function and is a boolean.
And about this
CONDITION_PARAM_STARTVALUE
If i put this, can be starvalue different of my items.xml?
For example:
C++:
else if (identifier == "poison") {
conditionDamage = new ConditionDamage(CONDITIONID_COMBAT, CONDITION_POISON);
conditionDamage->setParam(CONDITION_PARAM_STARTVALUE, 10)
combatType = COMBAT_EARTHDAMAGE;
items[id].combatType = combatType;
items[id].conditionDamage.reset(conditionDamage);
Using this the condition will start with value 10? And after read the real value start on items.xml?