赞 | 0 |
VIP | 62 |
好人卡 | 0 |
积分 | 1 |
经验 | 35234 |
最后登录 | 2014-8-10 |
在线时间 | 601 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 601 小时
- 注册时间
- 2007-8-14
- 帖子
- 635

|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
■ Game_Party
#--------------------------------------------------------------------------
# ● 全灭判定
#--------------------------------------------------------------------------
def all_dead?
# 同伴人数为 0 的情况下
if $game_party.actors.size == 0
return false
end
# 同伴中无人 HP 在 0 以上######################################
for actor in @actors
if actor.hp > 0 and actor.sp>0
return false
end
end
# 全灭
return true
end
■ Game_Battler
#--------------------------------------------------------------------------
# ● 战斗不能判定
#--------------------------------------------------------------------------
def dead?
return (@hp==0 or @sp==0 and not @immortal)
end
改了这两处之后,SP=0时人物死亡的话,HP自动归0,但HP=0时人物死亡时,SP还是好好的…… 版务信息:本贴由楼主自主结贴~ |
|