From d0f01a35cab6f2f825cd45057d5eb1e4092cf8d3 Mon Sep 17 00:00:00 2001 From: wolfy852 Date: Sat, 2 Dec 2023 17:35:53 -0600 Subject: [PATCH] Hardcoding: let Lua write to tulip fields, oops --- src/lua_playerlib.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lua_playerlib.c b/src/lua_playerlib.c index 3e706fdab..14d36d2a5 100644 --- a/src/lua_playerlib.c +++ b/src/lua_playerlib.c @@ -1059,6 +1059,14 @@ static int player_set(lua_State *L) else if (fastcmp(field,"cloudbuf")) plr->cloudbuf = luaL_checkinteger(L, 3); + // tulips + else if (fastcmp(field,"tulip")) + plr->tulip = luaL_checkinteger(L, 3); + else if (fastcmp(field,"tuliplaunch")) + plr->tuliplaunch = luaL_checkinteger(L, 3); + else if (fastcmp(field,"tulipbuf")) + plr->tulipbuf = luaL_checkinteger(L, 3); + // else if (fastcmp(field,"charflags")) plr->charflags = (UINT32)luaL_checkinteger(L, 3);