Game_Actor
...
-- --------------------------------------------------------------------------
-- * 获取技能对象数组资讯
-- --------------------------------------------------------------------------
function c:skills()
local result = Array.new()
for i in self.skills_id do
result:push(data_skills)
end
return result
end
-- --------------------------------------------------------------------------
-- * 获取武器对象数组资讯
-- --------------------------------------------------------------------------
function c:weapons()
local result = Array.new()
result:push(data_weapons[self.weapon_id])
if self:two_swords_style() then
result:push(data_weapons[self.armor1_id])
end
return result
end
-- --------------------------------------------------------------------------
-- * 获取护具对象数组资讯
-- --------------------------------------------------------------------------
function c:armors()
local result = Array.new()
if not self:two_swords_style() then
result:push(data_armors[self.armor1_id])
end
result:push(data_armors[self.armor2_id])
result:push(data_armors[self.armor3_id])
result:push(data_armors[self.armor4_id])
return result
end
-- --------------------------------------------------------------------------
-- * 获取已佩戴的装备的对象的数组资讯
-- --------------------------------------------------------------------------
function c:equips()
return self:weapons() + self:armors()
end
...