Implement highest damage AI, further work on AI runner, random fixes
All checks were successful
Build / Build (push) Successful in 51s

This commit is contained in:
2025-07-05 14:56:25 +02:00
parent 32aaa5150a
commit c795f20e54
30 changed files with 261 additions and 26 deletions

View File

@@ -12,6 +12,7 @@ public class Bounce : Script, IScriptPreventMove, IScriptOnBeforeMove, IScriptOn
return;
move.User.Volatile.Add(new ChargeBounceEffect(move.User));
move.MoveChoice.SetAdditionalData("bounce_charge", true);
move.User.BattleData?.Battle.EventHook.Invoke(new DialogEvent("bounce_charge", new Dictionary<string, object>
{
{ "user", move.User },

View File

@@ -12,6 +12,7 @@ public class Dig : Script, IScriptPreventMove, IScriptOnBeforeMove
return;
move.User.Volatile.Add(new DigEffect(move.User));
move.MoveChoice.SetAdditionalData("dig_charge", true);
move.User.BattleData?.Battle.EventHook.Invoke(new DialogEvent("dig_charge", new Dictionary<string, object>
{
{ "user", move.User },

View File

@@ -12,6 +12,7 @@ public class Dive : Script, IScriptPreventMove, IScriptOnSecondaryEffect
return;
move.User.Volatile.Add(new DiveEffect(move.User));
move.MoveChoice.SetAdditionalData("dive_charge", true);
move.User.BattleData?.Battle.EventHook.Invoke(new DialogEvent("dive_charge", new Dictionary<string, object>
{
{ "user", move.User },

View File

@@ -12,6 +12,7 @@ public class Fly : Script, IScriptPreventMove, IScriptOnBeforeMove
return;
move.User.Volatile.Add(new ChargeFlyEffect(move.User));
move.MoveChoice.SetAdditionalData("fly_charge", true);
move.User.BattleData?.Battle.EventHook.Invoke(new DialogEvent("fly_charge", new Dictionary<string, object>
{
{ "user", move.User },

View File

@@ -23,6 +23,11 @@ public class MeFirst : Script, IScriptChangeMove
choice.Fail();
return;
}
if (battleData.Battle.Library.MiscLibrary.IsReplacementChoice(targetMove))
{
choice.Fail();
return;
}
var targetMoveData = targetMove.ChosenMove.MoveData;
moveName = targetMoveData.Name;
choice.Volatile.Add(new MeFirstPowerBoost());

View File

@@ -16,6 +16,7 @@ public class PhantomForce : Script, IScriptPreventMove, IScriptOnSecondaryEffect
return;
move.User.Volatile.Add(new PhantomForceCharge(move.User));
move.MoveChoice.SetAdditionalData("phantom_force_charge", true);
move.User.BattleData?.Battle.EventHook.Invoke(new DialogEvent("phantom_force_charge",
new Dictionary<string, object>
{

View File

@@ -12,6 +12,7 @@ public class ShadowForce : Script, IScriptPreventMove, IScriptOnSecondaryEffect
return;
move.User.Volatile.Add(new ShadowForceCharge(move.User));
move.MoveChoice.SetAdditionalData("shadow_force_charge", true);
move.User.BattleData?.Battle.EventHook.Invoke(new DialogEvent("shadow_force_charge",
new Dictionary<string, object>
{

View File

@@ -12,6 +12,7 @@ public class SkyDrop : Script, IScriptPreventMove, IScriptOnBeforeMove
return;
move.User.Volatile.Add(new ChargeSkyDropEffect(move.User));
move.MoveChoice.SetAdditionalData("sky_drop_charge", true);
move.User.BattleData?.Battle.EventHook.Invoke(new DialogEvent("sky_drop_charge", new Dictionary<string, object>
{
{ "user", move.User },