Hack P_SpawnHoopsAndRings into little pieces
Compare changes
Separate P_SpawnHoopsAndRings
into different functions:
P_SpawnHoop
.P_SpawnItemPattern
.P_SpawnMapThing
.P_SpawnBonusTimeItem
.The new functions call the existing mapthing spawning code wherever possible, to make sure all items are handled consistently and to reduce the amount of code duplication.
In anticipation of UDMF, P_SpawnItemRow
and P_SpawnItemCircle
are much more customizable than what our current item pattern mapthings support: You can freely specify the size, orientation and number of items in the pattern. Additionally, you can specify an arbitrarily long list of different item types. When spawning the items, it will cycle through this list.