Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
[RLR-T-11] Fix carnival dagger mini game.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhar committed Oct 26, 2023
1 parent d831cab commit 061bcd9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
23 changes: 19 additions & 4 deletions RogueLegacy/GameObjects/Rooms/CarnivalShoot1BonusRoom.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// RogueLegacyRandomizer - CarnivalShoot1BonusRoom.cs
// Last Modified 2023-10-24 4:10 PM
//
// Last Modified 2023-10-26 3:26 PM
//
// This project is based on the modified disassembly of Rogue Legacy's engine, with permission to do so by its
// original creators. Therefore, the former creators' copyright notice applies to the original disassembly.
//
//
// Original Source - © 2011-2018, Cellar Door Games Inc.
// Rogue Legacy™ is a trademark or registered trademark of Cellar Door Games Inc. All Rights Reserved.

Expand Down Expand Up @@ -54,7 +54,22 @@ public CarnivalShoot1BonusRoom()
_balloonList = new List<ObjContainer>();
}

private int ActiveTargets => _targetList.Select(t => !t.Broken).Count();
private int ActiveTargets
{
get
{
var num = 0;
foreach (var current in _targetList)
{
if (!current.Broken)
{
num++;
}
}

return num;
}
}

public override void LoadContent(GraphicsDevice graphics)
{
Expand Down
3 changes: 2 additions & 1 deletion RogueLegacy/Screens/GameOverScreen.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RogueLegacyRandomizer - GameOverScreen.cs
// Last Modified 2023-10-24 4:17 PM
// Last Modified 2023-10-26 2:59 PM
//
// This project is based on the modified disassembly of Rogue Legacy's engine, with permission to do so by its
// original creators. Therefore, the former creators' copyright notice applies to the original disassembly.
Expand Down Expand Up @@ -406,6 +406,7 @@ public override void HandleInput()
Game.ScreenManager.Player.CurrentHealth = Game.PlayerStats.CurrentHealth;
Game.ScreenManager.Player.CurrentMana = Game.PlayerStats.CurrentMana;
Game.PlayerStats.FountainPieces = pieces;
Game.PlayerStats.ReadStartingDiary = false;

(ScreenManager as RCScreenManager).DisplayScreen((int) ScreenType.Lineage, true);
_lockControls = true;
Expand Down

0 comments on commit 061bcd9

Please sign in to comment.