otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.55k stars 1.04k forks source link

Use Town as plain Lua table #4764

Open ranisalt opened 6 days ago

ranisalt commented 6 days ago

Pull Request Prelude

Changes Proposed

The Town metatable cannot be used to mutate towns, so it can be pushed as a table for a lighterweight implementation and to cleanup some functions in luascript