forgottenserver
forgottenserver copied to clipboard
Move pay houses to lua
Pull Request Prelude
- [x] I have followed proper The Forgotten Server code styling.
- [x] I have read and understood the contribution guidelines before making this PR.
- [x] I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.
Changes Proposed
- Move pay houses to startup server
- Allow pay for houses calling Game.payHouses(rentPeriod)
I need to test this changes.
I honestly don't like the use of goto
, I prefer the double loop trick with for-repeat.
for k, v in pairs({}) do
repeat
-- code ...
if not x then break end -- continue
-- code ...
if not h then break end -- continue
until true
end
@MillhioreBT I liked repeat