]> git.lizzy.rs Git - skycraft.git/blobdiff - src/onload/remove_heads_from_armor.lua
Daily Enhancements
[skycraft.git] / src / onload / remove_heads_from_armor.lua
diff --git a/src/onload/remove_heads_from_armor.lua b/src/onload/remove_heads_from_armor.lua
new file mode 100644 (file)
index 0000000..0b0089d
--- /dev/null
@@ -0,0 +1,10 @@
+local armor_head = skycraft.armor_list["head"]
+local heads = skycraft.head_list
+for _, n in pairs(heads) do
+       for k, v in pairs(armor_head) do
+               if n == v then
+                       table.remove(armor_head, k)
+                       break
+               end
+       end
+end