mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-04-23 08:14:31 +00:00
Fix Heart Containers/Pieces Item Pool Calculation (#6226)
This calc ends up with 8 heart containers in the pool with the default 3 starting hearts, just like the 8 heart containers in the vanilla game. Changing starting hearts results in half of the remaining hearts being filled by heart containers and half of the remaining hearts being filled by heart pieces.
This commit is contained in:
parent
2656c20f71
commit
65c7c3e4a9
|
|
@ -871,7 +871,7 @@ void GenerateItemPool() {
|
|||
break;
|
||||
case RO_ITEM_POOL_BALANCED: {
|
||||
int heartsToPlace = maxHearts - startingHearts;
|
||||
int halfHearts = maxHearts >> 2;
|
||||
int halfHearts = heartsToPlace / 2;
|
||||
AddFixedItemToPool(RG_HEART_CONTAINER, heartsToPlace - halfHearts, false);
|
||||
AddFixedItemToPool(RG_PIECE_OF_HEART, halfHearts * 4, false);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue