- 注册时间
- 2004-12-14
- 最后登录
- 2012-10-5
⑧专业
Xavier on Rails
- 积分
- 32739794

|
发表于 2005-10-2 20:02:54
|
显示全部楼层
Game_Screen
#--------------------------------------------------------------------------
# ● 设置天候
# type : 类型
# power : 强度
# duration : 时间
#--------------------------------------------------------------------------
def weather(type, power, duration)
@weather_type_target = type
if @weather_type_target != 0
@weather_type = @weather_type_target
end
if @weather_type_target == 0
@weather_max_target = 0.0
else
@weather_max_target = (power + 1) * 4.0
end
@weather_duration = duration
if @weather_duration == 0
@weather_type = @weather_type_target
@weather_max = @weather_max_target
end
end |
|