Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Mal_TPCount_ActorSetup = Game_Actor.prototype.setup;
- Game_Actor.prototype.setup = function(actorId) {
- Mal_TPCount_ActorSetup.call(this, actorId);
- this._TPCount = 0;
- };
- var Mal_TPCount_EnemySetup = Game_Enemy.prototype.setup;
- Game_Enemy.prototype.setup = function(enemyId, x, y) {
- Mal_TPCount_EnemySetup.call(this, enemyId, x, y);
- this._TPCount = 0;
- };
- var Mal_TPCount_OBS = Game_Battler.prototype.onBattleStart;
- Game_Battler.prototype.onBattleStart = function() {
- Mal_TPCount_OBS.call(this);
- this._TPCount = 0;
- };
- var Mal_TPCount_gainTp = Game_Battler.prototype.gainTp;
- Game_Battler.prototype.gainTp = function(value) {
- if (value > 0) this._TPCount += value;
- Mal_TPCount_gainTp.call(this, value);
- };
- var Mal_TPCount_gainSilentTp = Game_Battler.prototype.gainSilentTp;
- Game_Battler.prototype.gainSilentTp = function(value) {
- if (value > 0) this._TPCount += value;
- Mal_TPCount_gainSilentTp.call(this, value);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement