module RPG
class Weapon
def description
description = @description.split(/hp/)[0]
return description != nil ? description : ''
end
def hp
hp = @description.split(/hp/)[1]
return hp != nil ? hp.to_i : 0
end
end
end
class Game_Actor
alias :old_maxhp :maxhp unless method_defined? :old_maxhp
def maxhp
weapon = $data_weapons[@weapon_id] != nil ? $data_weapons[@weapon_id].hp : 0
return Integer(old_maxhp + weapon)
end
end