1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-28 23:40:34 +02:00

Changed postfix for Warrior's armor

This commit is contained in:
LeMagnesium 2015-07-20 18:27:13 +02:00
parent 37d5883c41
commit ab9a4ca64d

View File

@ -163,7 +163,7 @@ pclasses.api.register_class("warrior", function(player)
end
shift_class = true
for _,piece in pairs({"chestplate", "leggings", "boots", "helmet"}) do
shift_class = shift_class and inv:contains_item("armor", "3d_armor:" .. piece .. "_warrior")
shift_class = shift_class and inv:contains_item("armor", "3d_armor:" .. piece .. "_mithril")
end
return shift_class
end)
@ -218,11 +218,6 @@ end
pclasses.api.reserve_item("warrior", "moreores:sword_mithril")
pclasses.api.reserve_item("warrior", "default:dungeon_master_s_blood_sword")
pclasses.api.reserve_item("warrior", "3d_armor:chestplate_mithril")
pclasses.api.reserve_item("warrior", "3d_armor:helmet_mithril")
pclasses.api.reserve_item("warrior", "3d_armor:leggins_mithril")
pclasses.api.reserve_item("warrior", "3d_armor:boots_mithril")
pclasses.api.reserve_item("warrior", "shields:shields_mithril")
pclasses.api.reserve_item("hunter", "throwing:bow_horn")