#no problem
class Game_Actor<Game_Battler
def previous_exp_s
return @exp_list[@level]
end
end
#rewrites class, compability problem
class Window_Base<Window
def draw_actor_exp(actor, x, y)
#added
a1=actor.exp_s.to_i-actor.previous_exp_s.to_i
a1="--" if a1<0
a2=actor.next_exp_s.to_i-actor.previous_exp_s.to_i
a2="--" if a2<0
#end temp variables added
self.contents.font.color = system_color
self.contents.draw_text(x, y, 24, 32, "E")
self.contents.font.color = normal_color
#self.contents.draw_text(x + 24, y, 84, 32, actor.exp_s, 2)
self.contents.draw_text(x + 24, y, 84, 32, a1.to_s, 2)
self.contents.draw_text(x + 108, y, 12, 32, "/", 1)
#self.contents.draw_text(x + 120, y, 84, 32, actor.next_exp_s)
self.contents.draw_text(x + 120, y, 84, 32, a2.to_s)
end
end
#rewrites class, compability problem
class Window_Status < Window_Base
def refresh
#added
a1=@actor.exp_s.to_i-@actor.previous_exp_s.to_i
a1="--" if a1<0
a2=@actor.next_exp_s.to_i-@actor.previous_exp_s.to_i
a2="--" if a2<0
#end temp variables added
self.contents.clear
draw_actor_graphic(@actor, 40, 112)
draw_actor_name(@actor, 4, 0)
draw_actor_class(@actor, 4 + 144, 0)
draw_actor_level(@actor, 96, 32)
draw_actor_state(@actor, 96, 64)
draw_actor_hp(@actor, 96, 112, 172)
draw_actor_sp(@actor, 96, 144, 172)
draw_actor_parameter(@actor, 96, 192, 0)
draw_actor_parameter(@actor, 96, 224, 1)
draw_actor_parameter(@actor, 96, 256, 2)
draw_actor_parameter(@actor, 96, 304, 3)
draw_actor_parameter(@actor, 96, 336, 4)
draw_actor_parameter(@actor, 96, 368, 5)
draw_actor_parameter(@actor, 96, 400, 6)
self.contents.font.color = system_color
self.contents.draw_text(320, 48, 80, 32, "Exp")
#self.contents.draw_text(320, 80, 80, 32, "Sig. Nivel")
#deleted
self.contents.font.color = normal_color
#self.contents.draw_text(320 + 80, 48, 84, 32, @actor.exp_s, 2)
self.contents.draw_text(320 + 80, 48, 84, 32, a1.to_s + ' / ' + a2.to_s, 2)
#self.contents.draw_text(320 + 80, 80, 84, 32, @actor.next_rest_exp_s, 2)
#deleted
self.contents.font.color = system_color
self.contents.draw_text(320, 160, 96, 32, "Equipamento")
draw_item_name($data_weapons[@actor.weapon_id], 320 + 16, 208)
draw_item_name($data_armors[@actor.armor1_id], 320 + 16, 256)
draw_item_name($data_armors[@actor.armor2_id], 320 + 16, 304)
draw_item_name($data_armors[@actor.armor3_id], 320 + 16, 352)
draw_item_name($data_armors[@actor.armor4_id], 320 + 16, 400)
end
end