20 lines
494 B
C#
20 lines
494 B
C#
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,
|
|
};
|
|
}
|
|
} |