[1.1.104] LuaMapSettings and LuaDifficultySettings have `help` as a string, not a function
Posted: Mon Feb 05, 2024 9:49 am
It seems every Lua object has a .help function which, when called, returns a string displaying the names of its methods and attributes.
The Lua objects LuaMapSettings and LuaDifficultySettings have .help defined not as a function but as the string itself containing that information. Those should likely be defined as a function to return that string instead of the string itself, same as other Lua objects' version of .help.
(Yes, I'm aware that what I'm doing is dumb and cursed and will never see the light of day and I wouldn't be surprised if .help disappeared tomorrow and no one noticed. I'm simply reporting it because I found it strange.)
The Lua objects LuaMapSettings and LuaDifficultySettings have .help defined not as a function but as the string itself containing that information. Those should likely be defined as a function to return that string instead of the string itself, same as other Lua objects' version of .help.
(Yes, I'm aware that what I'm doing is dumb and cursed and will never see the light of day and I wouldn't be surprised if .help disappeared tomorrow and no one noticed. I'm simply reporting it because I found it strange.)