fix: Fixes displaying ping pongs (#2374)
This commit is contained in:
parent
6f8e9b9aec
commit
b0189ccf4a
4 changed files with 12 additions and 14 deletions
|
|
@ -26,7 +26,7 @@ public partial class MurderContext
|
|||
|
||||
[SerializableField(3)]
|
||||
[SerializedCommandProperty(AccessLevel.GameMaster)]
|
||||
private int _pingPong;
|
||||
private int _pingPongs;
|
||||
|
||||
private void MigrateFrom(V0Content content)
|
||||
{
|
||||
|
|
@ -34,7 +34,7 @@ public partial class MurderContext
|
|||
_longTermElapse = content.LongTermElapse;
|
||||
_shortTermMurders = content.ShortTermMurders;
|
||||
// Players already at >= 5 kills have crossed the threshold at least once
|
||||
_pingPong = _player.Kills >= 5 ? 1 : 0;
|
||||
_pingPongs = _player.Kills >= 5 ? 1 : 0;
|
||||
}
|
||||
|
||||
public PlayerMobile _player;
|
||||
|
|
@ -78,7 +78,7 @@ public partial class MurderContext
|
|||
}
|
||||
}
|
||||
|
||||
public bool CanRemove() => _pingPong <= 0 && _shortTermMurders <= 0 && _player.Kills <= 0;
|
||||
public bool CanRemove() => _pingPongs <= 0 && _shortTermMurders <= 0 && _player.Kills <= 0;
|
||||
|
||||
public bool CheckStart()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue