本帖最后由 soulsaga 于 2025-6-24 06:28 编辑
#============================================================================== # ■ Game_Battler (分割定义 1) #------------------------------------------------------------------------------ # 处理战斗者的类。这个类作为 Game_Actor 类与 Game_Enemy 类的 # 超级类来使用。 #============================================================================== class Game_Battler #-------------------------------------------------------------------------- # ● 获取物理防御 #-------------------------------------------------------------------------- alias 20250624pdef pdef def pdef update_auto_state(nil, $data_armors[@armor1_id]) if @armor1_id update_auto_state(nil, $data_armors[@armor2_id]) if @armor2_id update_auto_state(nil, $data_armors[@armor3_id]) if @armor3_id update_auto_state(nil, $data_armors[@armor4_id]) if @armor4_id 20250624pdef end end
#==============================================================================
# ■ Game_Battler (分割定义 1)
#------------------------------------------------------------------------------
# 处理战斗者的类。这个类作为 Game_Actor 类与 Game_Enemy 类的
# 超级类来使用。
#==============================================================================
class Game_Battler
#--------------------------------------------------------------------------
# ● 获取物理防御
#--------------------------------------------------------------------------
alias 20250624pdef pdef
def pdef
update_auto_state(nil, $data_armors[@armor1_id]) if @armor1_id
update_auto_state(nil, $data_armors[@armor2_id]) if @armor2_id
update_auto_state(nil, $data_armors[@armor3_id]) if @armor3_id
update_auto_state(nil, $data_armors[@armor4_id]) if @armor4_id
20250624pdef
end
end
|