From 28bcb86dbd23443be4c8226751d6d57c0ea7a773 Mon Sep 17 00:00:00 2001 From: Mr-Auto <36127424+Mr-Auto@users.noreply.github.com> Date: Fri, 27 Dec 2024 13:35:26 +0100 Subject: [PATCH] missed `default_special_offset` mistake --- docs/game_data/spel2.lua | 2 +- docs/src/includes/_types.md | 2 +- src/game_api/script/usertypes/entity_lua.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/game_data/spel2.lua b/docs/game_data/spel2.lua index 599330c74..23e88f5d0 100644 --- a/docs/game_data/spel2.lua +++ b/docs/game_data/spel2.lua @@ -2517,7 +2517,7 @@ function PRNG:random(min, max) end ---@field sound_killed_by_other SOUNDID ---@field animations table ---@field default_special_offsetx number - ---@field default_special_offsetx number + ---@field default_special_offsety number ---@class RenderInfo ---@field x number diff --git a/docs/src/includes/_types.md b/docs/src/includes/_types.md index 792b47ded..846137ad7 100644 --- a/docs/src/includes/_types.md +++ b/docs/src/includes/_types.md @@ -489,7 +489,7 @@ bool | [leaves_corpse_behind](https://github.com/spelunky-fyi/overlunky/search?l [SOUNDID](#Aliases) | [sound_killed_by_other](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=sound_killed_by_other) | map<int, [Animation](#Animation)> | [animations](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=animations) | float | [default_special_offsetx](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=default_special_offsetx) | -float | [default_special_offsetx](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=default_special_offsetx) | +float | [default_special_offsety](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=default_special_offsety) | ### HudInventory diff --git a/src/game_api/script/usertypes/entity_lua.cpp b/src/game_api/script/usertypes/entity_lua.cpp index 7ae6ced07..78ddd068b 100644 --- a/src/game_api/script/usertypes/entity_lua.cpp +++ b/src/game_api/script/usertypes/entity_lua.cpp @@ -86,7 +86,7 @@ void register_usertypes(sol::state& lua) entitydb_type["sound_killed_by_other"] = &EntityDB::sound_killed_by_other; entitydb_type["animations"] = &EntityDB::animations; entitydb_type["default_special_offsetx"] = &EntityDB::default_special_offsetx; - entitydb_type["default_special_offsetx"] = &EntityDB::default_special_offsety; + entitydb_type["default_special_offsety"] = &EntityDB::default_special_offsety; /// Some information used to render the entity, can not be changed, used in Entity lua.new_usertype(