| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 1 |  
| 经验 | 1225 |  
| 最后登录 | 2015-1-26 |  
| 在线时间 | 2 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间2 小时注册时间2007-5-21帖子114 | 
| 
#--------------------------------------------------------------------------
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  # ● 应用道具的成长效果
 #     user : 使用者
 #     item : 道具
 #--------------------------------------------------------------------------
 def item_growth_effect(user, item)
 if item.parameter_type > 0 and item.parameter_points != 0
 case item.parameter_type
 when 1  # MaxHP
 @maxhp_plus += item.parameter_points
 when 2  # MaxMP
 @maxmp_plus += item.parameter_points
 when 3  # 攻击力
 @atk_plus += item.parameter_points
 when 4  # 防御力
 @def_plus += item.parameter_points
 when 5  # 精神力
 @spi_plus += item.parameter_points
 when 6  # 敏捷性
 @agi_plus += item.parameter_points
 end
 end
 end
 #--------------------------------------------------------------------------
 # ● 应用连续伤害的效果
 #--------------------------------------------------------------------------
 def slip_damage_effect
 if slip_damage? and @hp > 0
 @hp_damage = apply_variance(maxhp / 10, 10)
 @hp_damage = @hp - 1 if @hp_damage >= @hp
 self.hp -= @hp_damage
 end
 end
 end
 
 
 以上究竟是什么意思呢?又如何使用呢?谢谢!
 此贴于 2008-4-17 1:07:25 被版主snstar2006提醒,请楼主看到后对本贴做出回应。
 版务信息:版主帮忙结贴~
 | 
 |