remove mine
This commit is contained in:
parent
a908979940
commit
061c893456
4 changed files with 7 additions and 10 deletions
|
@ -26,7 +26,7 @@ internal sealed class CollectPowerUp(
|
|||
|
||||
switch (obj.Type)
|
||||
{
|
||||
case PowerUpType.MagazineTypeUpgrade:
|
||||
case PowerUpType.MagazineType:
|
||||
if (obj.MagazineType == null)
|
||||
throw new UnreachableException();
|
||||
|
||||
|
@ -40,7 +40,7 @@ internal sealed class CollectPowerUp(
|
|||
tank.ReloadingUntil = DateTime.Now;
|
||||
|
||||
break;
|
||||
case PowerUpType.MagazineSizeUpgrade:
|
||||
case PowerUpType.MagazineSize:
|
||||
tank.Magazine = tank.Magazine with
|
||||
{
|
||||
MaxBullets = (byte)int.Clamp(tank.Magazine.MaxBullets + 1, 1, 32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue