From 38a30a9b01b8fe5598792d4d4975010691cf5498 Mon Sep 17 00:00:00 2001 From: Kabby <1925023+tehkab@users.noreply.github.com> Date: Sun, 24 Sep 2023 16:38:09 -0400 Subject: [PATCH 1/3] Replace banked potion item with new template inheriting from vanilla potion.xml --- noita_mod/core/files/entities/empty_flask.xml | 202 ------------------ noita_mod/core/files/entities/potion_bank.xml | 7 + .../core/files/scripts/spell_spitter.lua | 2 +- 3 files changed, 8 insertions(+), 203 deletions(-) delete mode 100644 noita_mod/core/files/entities/empty_flask.xml create mode 100644 noita_mod/core/files/entities/potion_bank.xml diff --git a/noita_mod/core/files/entities/empty_flask.xml b/noita_mod/core/files/entities/empty_flask.xml deleted file mode 100644 index 1320139..0000000 --- a/noita_mod/core/files/entities/empty_flask.xml +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/noita_mod/core/files/entities/potion_bank.xml b/noita_mod/core/files/entities/potion_bank.xml new file mode 100644 index 0000000..5d79bf5 --- /dev/null +++ b/noita_mod/core/files/entities/potion_bank.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/noita_mod/core/files/scripts/spell_spitter.lua b/noita_mod/core/files/scripts/spell_spitter.lua index e551f25..3edb2d3 100644 --- a/noita_mod/core/files/scripts/spell_spitter.lua +++ b/noita_mod/core/files/scripts/spell_spitter.lua @@ -72,7 +72,7 @@ function SpawnWand(wand, x, y) end function SpawnFlask(contents, x,y) - local flask = EntityLoad("mods/noita-together/files/entities/empty_flask.xml", x, y) + local flask = EntityLoad("mods/noita-together/files/entities/potion_bank.xml", x, y) for i, inv in ipairs(contents) do AddMaterialInventoryMaterial(flask, CellFactory_GetName(inv.id), inv.amount) end From cc89e3e2eb9a3c5fc13ceafb5b833c28d816d1a0 Mon Sep 17 00:00:00 2001 From: Kabby <1925023+tehkab@users.noreply.github.com> Date: Sun, 24 Sep 2023 17:08:19 -0400 Subject: [PATCH 2/3] Replace banked powder stash item with new template inheriting from vanilla powder_stash.xml --- noita_mod/core/files/entities/powder_stash_bank.xml | 11 +++++++++++ noita_mod/core/files/scripts/spell_spitter.lua | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 noita_mod/core/files/entities/powder_stash_bank.xml diff --git a/noita_mod/core/files/entities/powder_stash_bank.xml b/noita_mod/core/files/entities/powder_stash_bank.xml new file mode 100644 index 0000000..4f4c052 --- /dev/null +++ b/noita_mod/core/files/entities/powder_stash_bank.xml @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/noita_mod/core/files/scripts/spell_spitter.lua b/noita_mod/core/files/scripts/spell_spitter.lua index 3edb2d3..24c27e1 100644 --- a/noita_mod/core/files/scripts/spell_spitter.lua +++ b/noita_mod/core/files/scripts/spell_spitter.lua @@ -79,7 +79,7 @@ function SpawnFlask(contents, x,y) end function SpawnPowderStash(contents, x,y) - local flask = EntityLoad("mods/noita-together/files/entities/empty_powder_stash.xml", x, y) + local flask = EntityLoad("mods/noita-together/files/entities/powder_stash_bank.xml", x, y) for i, inv in ipairs(contents) do AddMaterialInventoryMaterial(flask, CellFactory_GetName(inv.id), inv.amount) end From 33e73a3e0608939ee2865eff6dab3bbe1ac015aa Mon Sep 17 00:00:00 2001 From: Kabby <1925023+tehkab@users.noreply.github.com> Date: Sun, 24 Sep 2023 17:08:43 -0400 Subject: [PATCH 3/3] remove old bank powder stash xml --- .../files/entities/empty_powder_stash.xml | 210 ------------------ 1 file changed, 210 deletions(-) delete mode 100644 noita_mod/core/files/entities/empty_powder_stash.xml diff --git a/noita_mod/core/files/entities/empty_powder_stash.xml b/noita_mod/core/files/entities/empty_powder_stash.xml deleted file mode 100644 index caaddee..0000000 --- a/noita_mod/core/files/entities/empty_powder_stash.xml +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -