def base_atk
weapon = $data_weapons[@weapon_id]
atk1 = weapon != nil ? weapon.atk : 0
atk2 = str * 60/100
return atk1 + atk2
end
以下引用enghao_lim于2007-12-18 14:26:43的发言:
更好的建议:
def base_atk
weapon = $data_weapons[@weapon_id]
atk1 = weapon != nil ? weapon.atk : 0
atk2 = str * 60/100
return atk1 + atk2
end
这样能够直接与力量挂钩。
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |