def draw_stamina(x, y, width = 100)
if OniStamina::DEFAULT_PARTYFORM_ENABLED
$game_switches[OniStamina::Swith]= true
end
wd = width * $game_party.members[OniStamina::ActorMember].stamina / $game_party.members[OniStamina::ActorMember].maxsta
self.contents.fill_rect(x, y, width, 10, Color.new(0, 0, 0))
self.contents.fill_rect(x, y, wd, 10, Color.new(255, 255, 119))
text_wid = contents.text_size($game_party.members[OniStamina::ActorMember].stamina_text).width
self.contents.draw_text(x + 20, y + 15, text_wid, 20, $game_party.members[OniStamina::ActorMember].stamina_text)
end
end
---------------------------
module OniStamina
Swith = 998
DEFAULT_PARTYFORM_ENABLED = true
Initial = 100 # Initial stamina value
EvolutionRate = 1.3 #Float value representing the level up evolution rate.
# Leave 1.0 for none
InitialRecoverFrames = 15 # Recover Frames Rate
RecoverEvolutionRate = 1.3 #Float value representing the level up recover time
# evolution rate. Leave 1.0 for none.
ActorMember = 0# Number from 0 to 3, representing the actor in the party.