if skill.id == 57 and rand(100) < 100  #技能57号有100%的概率造成2倍伤害
         $技能暴击效果宝箱君 = (2.5).to_i #由于伤害不能有小数点因此2.5等价于2   3.8等价于3!
         self.damage *= $技能暴击效果宝箱君 #伤害乘以2
         self.critical = true #会心一击标志
       end
if skill.id == 58 and rand(100) < 100  #技能58号有100%的概率造成2倍伤害
         $技能暴击效果宝箱君 = (2.5).to_i #由于伤害不能有小数点因此2.5等价于2   3.8等价于3!
         self.damage *= $技能暴击效果宝箱君 #伤害乘以2
         self.critical = true #会心一击标志
       end