Skip to content

Commit

Permalink
chore: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Sep 23, 2024
1 parent 88c4340 commit 3f16a94
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/features/race/consistentDevilAngelRooms.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// In seeded races, players will get either all Devil Rooms or all Angel Rooms, with a 50% chance of
// each based on the starting seed of the run. This is accomplished by using the
// In seeded races, players will get either all Devil Rooms or all Angel Rooms, with a certain
// chance of each based on the starting seed of the run. This is accomplished by using the
// `Level.InitializeDevilAngelRoom` method to pre-initialize the room at the beginning of the floor.

// The one bug to worry about is when one player has 33.8% + 33.8% versus 67.8% + 0% chances, for
// Devil Rooms and Angel Rooms respectively. In this situation, one player can get a deal while the
// other can't. To work around this, always use the `Game.AddDevilRoomDeal` method at the beginning
// of a run to ensure that the Angel Room chance for players remains at 0. This works even for the
// situation where the run is locked into having Angel Rooms, although the UI will report the wrong
// percentages.
// other can't. To work around this, we always use the `Game.AddDevilRoomDeal` method at the
// beginning of a run to ensure that the Angel Room chance for players remains at 0. This works even
// for the situation where the run is locked into having Angel Rooms, although the UI will report
// the wrong percentages.

import { PlayerType } from "isaac-typescript-definitions";
import { anyPlayerIs, game, getRandom } from "isaacscript-common";
Expand Down

0 comments on commit 3f16a94

Please sign in to comment.