-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from MrDave1999/feat/NewCombos
feat!: Add new combos that improve the player's health and armour
- Loading branch information
Showing
12 changed files
with
82 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...n/Players/Combos/Services/HealthArmour.cs → ...s/Combos/Services/FlamethrowerVitality.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
src/Application/Players/Combos/Services/GrenadesVitality.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace CTF.Application.Players.Combos.Services; | ||
|
||
public class GrenadesVitality : ICombo | ||
{ | ||
public string Name => "100 Health, 100 Armour and 25 Grenades"; | ||
public int RequiredPoints => 100; | ||
|
||
public void Give(Player player) | ||
{ | ||
PlayerInfo playerInfo = player.GetInfo(); | ||
player.Health = 100; | ||
player.Armour = 100; | ||
player.GiveWeapon(Weapon.Grenade, ammo: 25); | ||
playerInfo.StatsPerRound.ResetPoints(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
src/Application/Players/Combos/Services/MolotovVitality.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace CTF.Application.Players.Combos.Services; | ||
|
||
public class MolotovVitality : ICombo | ||
{ | ||
public string Name => "100 Health, 100 Armour and 25 Molotov cocktail"; | ||
public int RequiredPoints => 100; | ||
|
||
public void Give(Player player) | ||
{ | ||
PlayerInfo playerInfo = player.GetInfo(); | ||
player.Health = 100; | ||
player.Armour = 100; | ||
player.GiveWeapon(Weapon.Moltov, ammo: 25); | ||
playerInfo.StatsPerRound.ResetPoints(); | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
src/Application/Players/Combos/Services/SatchelChargesArmour.cs
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/Application/Players/Combos/Services/SatchelChargesVitality.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace CTF.Application.Players.Combos.Services; | ||
|
||
public class SatchelChargesVitality : ICombo | ||
{ | ||
public string Name => "100 Health, 100 Armour and 25 Satchel charges"; | ||
public int RequiredPoints => 100; | ||
|
||
public void Give(Player player) | ||
{ | ||
PlayerInfo playerInfo = player.GetInfo(); | ||
player.Health = 100; | ||
player.Armour = 100; | ||
player.GiveWeapon(Weapon.SatchelCharge, ammo: 25); | ||
player.GiveWeapon(Weapon.Detonator, ammo: 1); | ||
playerInfo.StatsPerRound.ResetPoints(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
src/Application/Players/Combos/Services/TearGasVitality.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace CTF.Application.Players.Combos.Services; | ||
|
||
public class TearGasVitality : ICombo | ||
{ | ||
public string Name => "100 Health, 100 Armour and 50 Tear gas"; | ||
public int RequiredPoints => 100; | ||
|
||
public void Give(Player player) | ||
{ | ||
PlayerInfo playerInfo = player.GetInfo(); | ||
player.Health = 100; | ||
player.Armour = 100; | ||
player.GiveWeapon(Weapon.Teargas, ammo: 50); | ||
playerInfo.StatsPerRound.ResetPoints(); | ||
} | ||
} |