From 8aeed2baa8ada53e0893fd1c3f2b3d75861023be Mon Sep 17 00:00:00 2001 From: Zithia Satazaki Date: Mon, 30 Oct 2023 14:48:45 -0400 Subject: [PATCH] match prior case convention for swap and trash slots --- source/game/scripting/StarLuaGameConverters.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/game/scripting/StarLuaGameConverters.cpp b/source/game/scripting/StarLuaGameConverters.cpp index a6f2738..feb0261 100644 --- a/source/game/scripting/StarLuaGameConverters.cpp +++ b/source/game/scripting/StarLuaGameConverters.cpp @@ -12,17 +12,17 @@ LuaValue LuaConverter::from(LuaEngine& engine, InventorySlot k) { return table; } else if (k.is()) - return engine.createString("Swap"); + return engine.createString("swap"); else if (k.is()) - return engine.createString("Trash"); + return engine.createString("trash"); } Maybe LuaConverter::to(LuaEngine&, LuaValue const& v) { if (auto str = v.ptr()) { auto string = str->toString(); - if (string.equalsIgnoreCase("Swap")) + if (string.equalsIgnoreCase("swap")) return SwapSlot(); - else if (string.equalsIgnoreCase("Trash")) + else if (string.equalsIgnoreCase("trash")) return TrashSlot(); else if (auto equipment = EquipmentSlotNames.leftPtr(str->toString())) return *equipment;