赞 | 13 |
VIP | 9 |
好人卡 | 3 |
积分 | 51 |
经验 | 27577 |
最后登录 | 2024-10-30 |
在线时间 | 1004 小时 |
Lv4.逐梦者 【欧皇】
- 梦石
- 3
- 星屑
- 2066
- 在线时间
- 1004 小时
- 注册时间
- 2013-8-19
- 帖子
- 3486
|
- class Game_Battler
- def maxhp_limit
- return 999999
- end
- def maxhp
- return [[base_maxhp + @maxhp_plus, 1].max, maxhp_limit].min
- end
- def maxmp
- return [[base_maxmp + @maxmp_plus, 0].max, 999999].min
- end
- def atk
- n = [[base_atk + @atk_plus, 1].max, 99999].min
- for state in states do n *= state.atk_rate / 100.0 end
- n = [[Integer(n), 1].max, 99999].min
- return n
- end
- def def
- n = [[base_def + @def_plus, 1].max, 99999].min
- for state in states do n *= state.def_rate / 100.0 end
- n = [[Integer(n), 1].max, 99999].min
- return n
- end
- def spi
- n = [[base_spi + @spi_plus, 1].max, 99999].min
- for state in states do n *= state.spi_rate / 100.0 end
- n = [[Integer(n), 1].max, 99999].min
- return n
- end
- def agi
- n = [[base_agi + @agi_plus, 1].max, 99999].min
- for state in states do n *= state.agi_rate / 100.0 end
- n = [[Integer(n), 1].max, 99999].min
- return n
- end
- def maxhp=(new_maxhp)
- @maxhp_plus += new_maxhp - self.maxhp
- @maxhp_plus = [[@maxhp_plus, -999999].max, 999999].min
- @hp = [@hp, self.maxhp].min
- end
- def maxmp=(new_maxmp)
- @maxmp_plus += new_maxmp - self.maxmp
- @maxmp_plus = [[@maxmp_plus, -999999].max, 999999].min
- @mp = [@mp, self.maxmp].min
- end
- def atk=(new_atk)
- @atk_plus += new_atk - self.atk
- @atk_plus = [[@atk_plus, -99999].max, 99999].min
- end
- def def=(new_def)
- @def_plus += new_def - self.def
- @def_plus = [[@def_plus, -99999].max, 99999].min
- end
- def spi=(new_spi)
- @spi_plus += new_spi - self.spi
- @spi_plus = [[@spi_plus, -99999].max, 99999].min
- end
- def agi=(new_agi)
- @agi_plus += new_agi - self.agi
- @agi_plus = [[@agi_plus, -99999].max, 99999].min
- end
- end
复制代码 |
|