class RPG::Weapon
Kfc = {
1 => [2,3], #1是武器id 2,3是角色id
2 => [2]
}
end
class RPG::Armor
Kfc = {
12 => [1]
}
end
class Game_Actor < Game_Battler
def equippable?(item)
return false unless item.class::Kfc[item.id].include?(@actor_id) if item && item.class::Kfc[item.id]
super
end
end
class RPG::Weapon
Kfc = {
1 => [2,3], #1是武器id 2,3是角色id
2 => [2]
}
end
class RPG::Armor
Kfc = {
12 => [1]
}
end
class Game_Actor < Game_Battler
def equippable?(item)
return false unless item.class::Kfc[item.id].include?(@actor_id) if item && item.class::Kfc[item.id]
super
end
end