#--------------------------------------------------------------------------
# ● 在技能上备注<tpcost x>(包括<>)后,技能的TP消耗变为x
#--------------------------------------------------------------------------
class RPG::Skill
def new_tp_cost
/<tpcost\s*(\d+)>/ =~ @note ? $1.to_i : 0
end
end
class Game_BattlerBase
def skill_tp_cost(skill)
if skill.new_tp_cost > 0
skill.new_tp_cost
else
skill.tp_cost
end
end
end
#--------------------------------------------------------------------------
# ● 在技能上备注<tpcost x>(包括<>)后,技能的TP消耗变为x
#--------------------------------------------------------------------------
class RPG::Skill
def new_tp_cost
/<tpcost\s*(\d+)>/ =~ @note ? $1.to_i : 0
end
end
class Game_BattlerBase
def skill_tp_cost(skill)
if skill.new_tp_cost > 0
skill.new_tp_cost
else
skill.tp_cost
end
end
end