forgottenserver icon indicating copy to clipboard operation
forgottenserver copied to clipboard

Move pay houses to lua

Open ramon-bernardo opened this issue 1 year ago • 2 comments

Pull Request Prelude

Changes Proposed

  • Move pay houses to startup server
  • Allow pay for houses calling Game.payHouses(rentPeriod)

I need to test this changes.

ramon-bernardo avatar Dec 16 '23 14:12 ramon-bernardo

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 avatar Dec 16 '23 16:12 MillhioreBT

@MillhioreBT I liked repeat

ramon-bernardo avatar Dec 16 '23 18:12 ramon-bernardo