This commit is contained in:
20
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/TrumpCard.cs
Normal file
20
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/TrumpCard.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "trump_card")]
|
||||
public class TrumpCard : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
|
||||
{
|
||||
var remainingPp = move.ChosenMove.CurrentPp;
|
||||
|
||||
basePower = remainingPp switch
|
||||
{
|
||||
>= 4 => 40,
|
||||
3 => 50,
|
||||
2 => 60,
|
||||
1 => 80,
|
||||
0 => 200,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user