Surprisingly, more moves
This commit is contained in:
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Psywave.cs
Normal file
19
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Psywave.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using PkmnLib.Static.Utils;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "psywave")]
|
||||
public class Psywave : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeMoveDamage(IExecutingMove move, IPokemon target, byte hit, ref uint damage)
|
||||
{
|
||||
if (move.User.BattleData == null)
|
||||
return;
|
||||
|
||||
var random = move.User.BattleData.Battle.Random.GetInt(0, 10);
|
||||
var level = (uint)move.User.Level;
|
||||
var power = level.MultiplyOrMax(0.5f + 0.1f * random);
|
||||
damage = power;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user