1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

Add the black mithril plated armor

to the warrior class
This commit is contained in:
Ombridride 2015-07-21 22:53:30 +02:00
parent ca01ad75f5
commit 7b09b52b87

View File

@ -164,6 +164,7 @@ pclasses.api.register_class("warrior", function(player)
shift_class = true
for _,piece in pairs({"chestplate", "leggings", "boots", "helmet"}) do
shift_class = shift_class and inv:contains_item("armor", "3d_armor:" .. piece .. "_mithril")
or inv:contains_item("armor", "3d_armor:" .. piece .. "_black_mithril_plated"))
end
return shift_class
end)
@ -177,7 +178,7 @@ pclasses.api.register_class("hunter", function(player)
shift_class = true
for _,piece in pairs({"chestplate", "leggings", "boots", "helmet"}) do
shift_class = shift_class and (inv:contains_item("armor", "3d_armor:" .. piece .. "_reinforced_leather_hunter")
or inv:contains_item("armor", "3d_armor:" .. piece .. "_hardened_leather_hunter")) -- Why two different armors?!
or inv:contains_item("armor", "3d_armor:" .. piece .. "_hardened_leather_hunter"))
end
return shift_class
end)