Skip to content

Commit

Permalink
Merge pull request #29 from jakobharder/devel/fix-production
Browse files Browse the repository at this point in the history
fix production miscalculation
  • Loading branch information
jakobharder authored Feb 25, 2024
2 parents 9a6c460 + 39eb496 commit bdcbb4d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions resources/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

- Fixed AI player's shadow remaining after death
- Fixed doctors not healing stationed NPCs
- Fixed production miscalculation in locations where AI players died
- Fixed New Village name, rooms etc.
- Fixed radio construction
- Fixed Nob Hill room background
Expand Down
7 changes: 5 additions & 2 deletions source/Burntime.Remaster/Logic/Character/Character.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,11 @@ public virtual void Die()
ani.Endless = false;

// schedule for respawn
ClassicGame classic = (ClassicGame)container.Root;
classic.World.Respawn.Object.Respawn(this);
if (this is not PlayerCharacter)
{
ClassicGame classic = (ClassicGame)container.Root;
classic.World.Respawn.Object.Respawn(this);
}
}

public virtual void Revive()
Expand Down
5 changes: 5 additions & 0 deletions source/Burntime.Remaster/Logic/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,15 @@ public virtual void Turn()

Players[i].IsDead = true;
Players[i].DiedThisRound = true;
Players[i].Character.Location = null;
}
}
else
{
Players[i].DiedThisRound = false;
// fix for saves that don't do this yet
Players[i].Character.Location = null;
}

if (!Players[i].IsDead)
{
Expand Down

0 comments on commit bdcbb4d

Please sign in to comment.