2 line update so that shields when used no longer affects the base armor.config.level_multiplier and hard sets this to 0.9 and overriding whatever value maybe set under the UI for this seeting.

Tested in combination with #34 but no issues detected
fork-master
Sirrobzeroone 2020-12-24 13:19:48 +11:00 committed by Buckaroo Banzai
parent 724a3df50f
commit 5642819ba5
1 changed files with 0 additions and 2 deletions

View File

@ -17,8 +17,6 @@ end
if minetest.global_exists("armor") and armor.elements then
table.insert(armor.elements, "shield")
local mult = armor.config.level_multiplier or 1
armor.config.level_multiplier = mult * 0.9
end
-- Regisiter Shields