self.contents.font.color = text_color(1)
self.contents.draw_text(0, 65+x*16,20,20, "灼".to_s, 0) if $game_switches[59]
self.contents.font.color = text_color(3)
self.contents.draw_text(16, 65+x*16,20,20, "衰".to_s, 0) if $game_switches[15]
self.contents.font.color = text_color(4)
self.contents.draw_text(32, 65+x*16,20,20, "衰".to_s, 0) if $game_switches[58]
self.contents.font.color = text_color(6)
self.contents.draw_text(48, 65+x*16,20,20, "毒".to_s, 0) if $game_switches[13]
self.contents.font.color = text_color(7)
self.contents.draw_text(64, 65+x*16,20,20, "咒".to_s, 0) if $game_switches[16]
self.contents.font.color = text_color(8)
self.contents.draw_text(80, 65+x*16,20,20, "缓".to_s, 0) if $game_switches[12]
self.contents.font.color = text_color(10)
self.contents.draw_text(96, 65+x*16,20,20, "魅".to_s, 0) if $game_switches[60]
self.contents.font.color = text_color(11)
self.contents.draw_text(112,65+x*16,20,20, "锁".to_s, 0) if $game_switches[61]
self.contents.font.color = text_color(13)
self.contents.draw_text(128,65+x*16,20,20, "亡".to_s, 0) if $game_switches[11]
self.contents.font.color = text_color(14)
self.contents.draw_text(144,65+x*16,20,20, "引".to_s, 0) if $game_switches[62]
self.contents.font.color = text_color(0)
self.contents.draw_text(160,65+x*16,20,20, "反".to_s, 0) if $game_switches[63]
end
def judge#用于判断是否数据变更,节约内存
return true if @xgraphic!=$game_party.actors[0]
return true if @xfloor!=$game_variables[2]
return true if @xlevel!=$game_actors[$game_variables[1]+1].level
return true if @xlife!=$game_actors[$game_variables[1]+1].hp
return true if @xmagic!=$game_actors[$game_variables[1]+1].sp
if $game_switches[19]
return true if @xattact!=$game_actors[$game_variables[1]+1].agi
return true if @xdefence!=$game_actors[$game_variables[1]+1].int
else
return true if @xattact!=$game_actors[$game_variables[1]+1].str
return true if @xdefence!=$game_actors[$game_variables[1]+1].dex
end
return true if @xmagicdef!=$game_actors[$game_variables[1]+2].hp
return true if @xspeed!=$game_actors[$game_variables[1]+2].sp
return true if @xgongsu!=$game_actors[$game_variables[1]+2].level
return true if @xyisu!=$game_actors[$game_variables[1]+2].exp
return true if @xxixue!=$game_actors[$game_variables[1]+2].str
return true if @xfantan!=$game_actors[$game_variables[1]+2].dex
return true if @xmingzhong!=$game_actors[$game_variables[1]+2].agi
return true if @xshanbi!=$game_actors[$game_variables[1]+2].int
return true if @xgold!=$game_party.gold
return true if @xexp!= $game_actors[$game_variables[1]+1].exp
return true if @xyellowkey!=$game_party.item_number(Yellowkey_itemid)
return true if @xbluekey!=$game_party.item_number(Bluekey_itemid)
return true if @xredkey!=$game_party.item_number(Redkey_itemid)
return true if @xgreenkey!=$game_party.item_number(Greenkey_itemid)
return true if @xhong!=$game_switches[59]
return true if @xcheng!=$game_switches[15]
return true if @xhuang!=$game_switches[58]
return true if @xlv!=$game_switches[13]
return true if @xqing!=$game_switches[16]
return true if @xlan!=$game_switches[12]
return true if @xzi!=$game_switches[60]
return true if @xfen!=$game_switches[61]
return true if @xhui!=$game_switches[11]
return true if @xhei!=$game_switches[62]
return true if @xbai!=$game_switches[63]
return true if @xchange!=$game_switches[50]
return false
end
class Scene_Map
alias xy_66rpg_main main
def main
$mapdamage.mapupdate
@Playerdate_window = Window_PlayerDate.new
@Playerdate_window.x = $game_variables[105]
# @xy_window.y = 480 - 96
# @xy_window.opacity = 0
xy_66rpg_main
@Playerdate_window .dispose
$mapdamage.pic.bitmap.clear
end
#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
alias xy_66rpg_update update
def update
xy_66rpg_update
if $game_switches[Playerdate_SWITCH]
@Playerdate_window .visible = true
if @Playerdate_window.judge
@Playerdate_window .refresh
$mapdamage.mapupdate
end
else
@Playerdate_window .visible = false
end
end
end