- Joined
- Jul 28, 2015
- Messages
- 141
- Reaction score
- 43
- First Language
- czech
- Primarily Uses
- RMMV
Hello.
If I understand it corectly, I can simply change default non-stackable states to stackable with override only one function:
Am I right?
I understand it as the most simple way to make states stackable - also I understand Game_Battler.prototype.removeState = function(stateId) will erase only one instance of state per one call which I am fine with for now.
Thank you.
If I understand it corectly, I can simply change default non-stackable states to stackable with override only one function:
Code:
Game_Battler.prototype.addState = function(stateId) {
if (this.isStateAddable(stateId)) {
// if (!this.isStateAffected(stateId)) {
this.addNewState(stateId);
this.refresh();
// }
this.resetStateCounts(stateId);
this._result.pushAddedState(stateId);
}
};
Am I right?
I understand it as the most simple way to make states stackable - also I understand Game_Battler.prototype.removeState = function(stateId) will erase only one instance of state per one call which I am fine with for now.
Thank you.
