if $game_switches[42]
if $game_variables[$game_variables[1]+81]!=0
bitmap = Bitmap.new("Graphics/Pictures/up.png")
self.contents.blt(40,55 , bitmap, Rect.new(0, 0, 20, 20))
end
end
def judge#用于判断是否数据变更,节约内存
return true if @xgraphic!=$game_party.actors[0].character_name
return true if @xfloor!=$game_variables[2]
return true if @xlevel!=$game_actors[$game_variables[1]+1].level
return true if @xlevelup!=$game_variables[$game_variables[1]+81] if $game_switches[42]
return true if @xlife!=$game_actors[$game_variables[1]+1].hp
return true if @xattact!=$game_actors[$game_variables[1]+1].str
return true if @xdefence!=$game_actors[$game_variables[1]+1].dex
return true if @xmagicdef!=$game_actors[$game_variables[1]+1].int if $game_switches[Playerdate_magicdef]
return true if @xspeed!=$game_actors[$game_variables[1]+1].agi if $game_switches[27]
return true if @xexp!= $game_actors[$game_variables[1]+1].exp
return true if @xgold!=$game_party.gold
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) if $game_switches[43]
return true if @xpoison!=$game_switches[13]
return true if @xpoor!=$game_switches[15]
return true if @xcurse!=$game_switches[16]
return true if @xslow!=$game_switches[12]
return true if @xchange!=$game_switches[50]
return false
end