赞 | 1 |
VIP | 10 |
好人卡 | 2 |
积分 | 1 |
经验 | 132388 |
最后登录 | 2016-5-9 |
在线时间 | 34 小时 |
Lv1.梦旅人 冰王子
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 34 小时
- 注册时间
- 2008-1-27
- 帖子
- 1875
|
以下引用求把AK47于2008-7-30 10:07:02的发言:
以下引用IamI于2008-7-30 10:00:50的发言:
把两个i替换成ID号即可= =难道凌冰说的还不清楚咩?
(如果效果没问题的话……)
换了不过不掉血!
那个,我脑残了,修改一下
class Game_Battler
def slip_damage?
for i in @states
if $data_states.slip_damage
return true
end
end
@poison_turn = []
return false
end
def slip_damage_effect
# 设置伤害
self.damage = self.level * 100
@poison_turn = [] if @poison_turn == nil
@poison_turn = 0 if @poison_turn == 0
self.damage /= (2**@poison_turn) if @poison_turn <= 20
self.damage = 0 if @poison_turn > 20
@poison_turn += 1
# 分散
if self.damage.abs > 0
amp = [self.damage.abs * 15 / 100, 1].max
self.damage += rand(amp+1) + rand(amp+1) - amp
end
# HP 的伤害减法运算
self.hp -= self.damage
# 过程结束
return true
end
end
|
|