yang1zhi 发表于 2017-9-8 15:12
if self.skills.include?(55) #角色技能数组是skills
self.damage = (atk*3 ) 变为 self.damage *= 3
yang1zhi 发表于 2017-9-8 15:12
if self.skills.include?(55) #角色技能数组是skills
self.damage = (atk*3 ) 变为 self.damage *= 3
yang1zhi 发表于 2017-9-8 15:12
if self.skills.include?(55) #角色技能数组是skills
self.damage = (atk*3 ) 变为 self.damage *= 3
yang1zhi 发表于 2017-9-8 19:02
self是被攻击方。user是攻击方。会报错大概是那个被攻击的人没有SKILLS这个数组,大概是默认的敌人。默认的 ...
jenganchan 发表于 2017-9-8 19:45
undefined method "skills" for#<game_enemy:0xb05fc28> 这个出错
m = rand(4)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |