#--------------------------------------------------------------------------
# ● hpa_max
#--------------------------------------------------------------------------
def hpa_max
n = 0
for i in $game_party.members
n += i.maxhp
end
@hpa_max = n
end
#--------------------------------------------------------------------------
# ● hpa
#--------------------------------------------------------------------------
def hpa
n = 0
for i in $game_party.members
n += i.hp
end
n2 = [[n, 0].max, @hpa_max].min
@hpa = n2
end
#--------------------------------------------------------------------------
# ● mpa_max
#--------------------------------------------------------------------------
def mpa_max
n = 0
for i in $game_party.members
n += i.maxmp
end
@mpa_max = n
end
#--------------------------------------------------------------------------
# ● mpa
#--------------------------------------------------------------------------
def mpa
n = 0
for i in $game_party.members
n += i.mp
end
n2 = [[n, 0].max, @mpa_max].min
@mpa = n2
end
end
#--------------------------------------------------------------------------
# ● Troop_maxhp
#--------------------------------------------------------------------------
def troop_maxhp
n = 0
for enemy in members
n += enemy.maxhp
end
@troop_maxhp = n
end
#--------------------------------------------------------------------------
# ● Troop_hp
#--------------------------------------------------------------------------
def troop_hp
n = 0
for enemy in members
n += enemy.hp
end
n2 = [[n, 0].max, @troop_maxhp].min
@troop_hp = n2
end
#--------------------------------------------------------------------------
# ● Troop_maxmp
#--------------------------------------------------------------------------
def troop_maxmp
n = 0
for enemy in members
n += enemy.maxmp
end
@troop_maxmp = n
end
#--------------------------------------------------------------------------
# ● Troop_mp
#--------------------------------------------------------------------------
def troop_mp
n = 0
for enemy in members
n += enemy.mp
end
n2 = [[n, 0].max, @troop_maxmp].min
@troop_mp = n2
end
end
#===============================================================================
# ■ Unit_Meter_Sprite
#===============================================================================
class Unit_Meter_Sprite < Sprite
include MOG_UNIT_METER
attr_accessor :fade
attr_accessor :party_shake
attr_accessor :troop_shake