设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3742|回复: 2
打印 上一主题 下一主题

[已经解决] 角色的死亡判定

[复制链接]

Lv1.梦旅人

梦石
0
星屑
165
在线时间
85 小时
注册时间
2016-4-26
帖子
15
1
发表于 2016-6-13 22:06:51 | 显示全部楼层
您可以尝试把Game_Battler.prototype.refresh由:
  1. Game_Battler.prototype.refresh = function() {
  2.     Game_BattlerBase.prototype.refresh.call(this);
  3.     if (this.hp === 0) {
  4.         this.addState(this.deathStateId());
  5.     } else {
  6.         this.removeState(this.deathStateId());
  7.     }
  8. };
复制代码
改为:
  1. Game_Battler.prototype.refresh = function() {
  2.     Game_BattlerBase.prototype.refresh.call(this);
  3.     if (this.hp === 0 && this.mp === 0 && this.tp === 0) {
  4.         this.addState(this.deathStateId());
  5.     } else {
  6.         this.removeState(this.deathStateId());
  7.     }
  8. };
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-18 09:23

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表