Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Game_Enemy.prototype.refresh = function(){
  2.     Game_BattlerBase.prototype.refresh.call(this);
  3.     if (this.hp === 0) {
  4.         this.addState(this.deathStateId());
  5.         $gameParty.enemyKills[this.enemyId()] = ($gameParty.enemyKills[this.enemyId()] === undefined) ? 1 : $gameParty.enemyKills[this.enemyId()] + 1;
  6.     } else {
  7.         this.removeState(this.deathStateId());
  8.     }
  9. };
  10.  
  11. var _prt_alias = Game_party.prototype.initialize;
  12. Game_party.prototype.initialize = function(){
  13.     _prt_alias.call(this);
  14.     this.enemyKills = [];
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement