Commit Graph
19795 Commits
Author SHA1 Message Date
Hielke Morsink f9870ece7a Merge pull request #21271 from Broxzier/refactor/global-park-value
#21193: Move gParkValue and gParkValueHistory to GameState_t
2024-01-25 16:14:23 +01:00
Matt faccd5f14a Merge pull request #21272 from Broxzier/refactor/global-park-entrances
#21193: Move ParkEntrances to GameState_t
2024-01-25 17:07:19 +02:00
Matt 49ff5a1826 Merge pull request #21275 from ZehMatt/fix-21274
Fix #21274: Collision of PeepId when importing SV4
2024-01-25 16:58:51 +02:00
ζeh Matt e5a10c1514 Fix #21274: Collision of PeepId when importing SV4 2024-01-25 16:34:00 +02:00
Michael Steenbeek 3827d1770b Move banners to GameState_t 2024-01-25 15:32:16 +01:00
Matt 6e14f6540a Merge pull request #21269 from Harry-Hopkinson/gNextGuestNumber-to-GameState_t
Move gNextGuestNumber to Gamestate_t
2024-01-25 16:19:05 +02:00
Hielke Morsink 1f8b7950bc Get size of WeeklyProfitHistory in compile time 2024-01-25 15:10:17 +01:00
Hielke Morsink 99e1746eda #21193: Move gParkValueHistory to GameState_t 2024-01-25 14:30:47 +01:00
Hielke Morsink 0c10435b7e #21193: Move gParkValue to GameState_t 2024-01-25 14:30:44 +01:00
Hielke Morsink ad4bc0dd10 Fix formatting 2024-01-25 14:27:40 +01:00
Hielke Morsink 74d61369be #21193: Move ParkEntrances to GameState_t 2024-01-25 12:52:56 +01:00
Peter Froud ce45cb3360 Use descriptive error strings for two GameAction::Results
- Fix error when setting brake speed outside park
- Fix error when pasting but reached tile limit
2024-01-25 11:37:02 +01:00
ZeeMaji ff03844b35 Raise lift speeds for RCT1 parity 2024-01-25 11:24:38 +01:00
Harry Hopkinson 8816aa607c Move gNextGuestNumber to Gamestate_t 2024-01-25 09:34:47 +00:00
Harry Hopkinson f8fa43f578 Move gClimateUpdateTimer to GameState_t 2024-01-24 23:58:37 +01:00
Michael Steenbeek 115e7389a9 Move most gScenario* globals to GameState_t 2024-01-24 22:17:32 +01:00
Matt d4b0c2e115 Merge pull request #21236 from zzril/fix-21227-entrance-dropdown-sorting
Close #21227: Sort entrance styles in dropdown
2024-01-24 17:03:17 +02:00
Michael Steenbeek 71c20a04d7 Move gWeekly* globals to GameState_t 2024-01-24 15:03:46 +01:00
Hielke Morsink 422df650b6 #21193: Move gParkSize to GameState_t (#21260) 2024-01-24 14:18:46 +01:00
Hielke Morsink fb420f6516 #21193: Move gParkEntranceFee to GameState_t (#21256) 2024-01-24 13:45:01 +01:00
Michael Steenbeek b200ce02ef Fix merge error (#21257) 2024-01-24 12:00:41 +01:00
Harry Hopkinson 42336915cd Move gClimateCurrent to GameState_t 2024-01-24 11:18:54 +01:00
Severin Paul Höfer d0aae46a75 Refactor existing structs to use u8string_view 2024-01-23 22:54:06 +01:00
Severin Paul Höfer 576caaa094 Use u8string_view for LabelString 2024-01-23 22:43:45 +01:00
Severin Paul Höfer fb41a5764c Refactor existing structs to use TitleCase 2024-01-23 21:49:43 +01:00
Severin Paul Höfer 2136706129 Use TitleCase for members of EntranceTypeLabel 2024-01-23 21:46:31 +01:00
Severin Paul Höfer e8b05c4afd Sort entrance styles alphabetically 2024-01-23 21:42:30 +01:00
Severin Paul Höfer e27a20f800 Sort entries in entrance style dropdown 2024-01-23 21:42:30 +01:00
Hielke Morsink f85cac627d #21193: Move gParkRating to GameState_t 2024-01-23 00:11:34 +01:00
Michael Steenbeek b5786c2a86 Move gGuestInitial* to GameState 2024-01-22 22:28:16 +00:00
Hielke Morsink ece4b7327e Merge pull request #21246 from Broxzier/refactor/global-park-vars 2024-01-22 21:05:01 +01:00
Hielke Morsink f6d739624e Pass gamestate to s4 initialize function 2024-01-22 20:38:12 +01:00
tanzimchowdh cba53fd3ce Fix #20196: New scenarios start with an incorrect temperature 2024-01-22 20:18:31 +01:00
Aaron van Geffen dcd1f60f4f Move wall edge definitions from header to compilation unit 2024-01-22 19:45:51 +01:00
Severin Paul Höfer 2c26799ca4 Fix #20845: Outdated message box in case of save failure 2024-01-22 19:44:20 +01:00
Hielke Morsink 13351d996e #21193: Move gParkFlags to GameState_t, refactor uses
Also changed a few instances where GetGameState was called inside the same function.
The change in Peep.cpp is needed because of a function conflict. FormatStringID exists both in the global and in the OpenRCT2 namespace.
2024-01-22 16:31:35 +01:00
Harry Hopkinson 0f283dc2a9 Move gClimate to GameState_t 2024-01-21 21:05:22 +00:00
Harry Hopkinson 7ca5b1cd65 Move gClimateNext to GameState_t (#21231) 2024-01-21 18:22:57 +01:00
ζeh Matt 25c807edbd Small cleanup 2024-01-20 19:34:27 +02:00
ζeh Matt c493e22b9b #21193: Move gInitialCash to GameState_t, refactor uses 2024-01-20 17:13:57 +02:00
Matt 7141fb4574 Merge pull request #21225 from ZehMatt/raise-mix-limit
Raise maximum allowed misc entities to 1600
2024-01-20 17:02:42 +02:00
Matt b35eb7ac7f Merge pull request #21229 from ZehMatt/21193-gCash
#21193: Move gCash to GameState_t, refactor uses
2024-01-20 17:00:58 +02:00
Katherine NortonandTulio Leao 0450435377 Add Plugin API for managing a guest's items (#21062)
* Add API for guest items in openrct2.d.ts

* Create GuestItem interfaces

* Set fields to readonly and add documentation

* Implement getting items array

* Implement checking if a guest has an item

* Implement removing items from guests

* Implement giving a guest an item

* Re-merge GuestItemType with FoodDrinkType

* Add more data validation for the EnumMaps

* Update versioning and changelog

* Add some errors to the give_item method

* Bump network version

* Update VoucherType to if/else

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>

* Add static_assert to ScGuest.hpp

---------

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2024-01-20 11:51:23 -03:00
ζeh Matt 3518a638bb #21193: Move gCash to GameState_t, refactor uses 2024-01-20 15:46:35 +02:00
Matt d08612b708 Merge pull request #21122 from ZehMatt/gamestate
Start centralizing all save related data in GameState_t
2024-01-20 01:12:10 +02:00
Michael Steenbeek 8846760b8b Fix #21210: Land right signs display beneath paths
Restores the +3 offset that was previously used. Compared rendering to RCT1 as well.
2024-01-19 22:47:01 +00:00
Severin Paul Höfer 39a37f14eb Fix #21054: No entrance style selected by default in track designer 2024-01-19 23:42:44 +01:00
ζeh Matt 80ca8aefaa Remove stray change 2024-01-19 16:33:50 +02:00
ζeh Matt 8653ad740a Apply missing game state parameter 2024-01-19 16:32:19 +02:00
ζeh Matt c839a1746d Resolve some odd type clash, remove using namespace for now 2024-01-19 16:32:19 +02:00