def maxsp
return [[base_maxsp + @maxsp_plus, 0].max, 9999].min
end
def maxsp=(new_maxsp)
@maxsp_plus += new_maxsp - self.maxsp
@maxsp_plus = [[@maxsp_plus, -9999].max, 9999].min
@sp = [@mp, self.maxsp].min
end
def sp=(sp)
@sp = [[sp, maxsp].min, 0].max
end
def maxsp
return [[base_maxsp + @maxsp_plus, 0].max, 9999].min
end
def maxsp=(new_maxsp)
@maxsp_plus += new_maxsp - self.maxsp
@maxsp_plus = [[@maxsp_plus, -9999].max, 9999].min
@sp = [@mp, self.maxsp].min
end
def sp=(sp)
@sp = [[sp, maxsp].min, 0].max
end