mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
Add the black mithril plated armor
to the warrior class
This commit is contained in:
parent
ca01ad75f5
commit
7b09b52b87
@ -164,6 +164,7 @@ pclasses.api.register_class("warrior", function(player)
|
|||||||
shift_class = true
|
shift_class = true
|
||||||
for _,piece in pairs({"chestplate", "leggings", "boots", "helmet"}) do
|
for _,piece in pairs({"chestplate", "leggings", "boots", "helmet"}) do
|
||||||
shift_class = shift_class and inv:contains_item("armor", "3d_armor:" .. piece .. "_mithril")
|
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
|
end
|
||||||
return shift_class
|
return shift_class
|
||||||
end)
|
end)
|
||||||
@ -177,7 +178,7 @@ pclasses.api.register_class("hunter", function(player)
|
|||||||
shift_class = true
|
shift_class = true
|
||||||
for _,piece in pairs({"chestplate", "leggings", "boots", "helmet"}) do
|
for _,piece in pairs({"chestplate", "leggings", "boots", "helmet"}) do
|
||||||
shift_class = shift_class and (inv:contains_item("armor", "3d_armor:" .. piece .. "_reinforced_leather_hunter")
|
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
|
end
|
||||||
return shift_class
|
return shift_class
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user