Replicated the weapon flying tick setup using resources
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 26s
Create tag and build when new code gets to main / Export (push) Successful in 5m42s

This commit is contained in:
2026-04-07 16:32:26 +02:00
parent cc7cb90041
commit 1d856fd937
145 changed files with 12943 additions and 109 deletions

View File

@@ -16,13 +16,19 @@ using Movementtests.systems;
namespace Movementtests.tools.calculators;
public class FlyingWeaponExecution(TagContainer eventTags) : CustomExecution
public class RaiseEventTagExecution(TagContainer eventTags) : CustomExecution
{
public override ModifierEvaluatedData[] EvaluateExecution(Effect effect, IForgeEntity target, EffectEvaluatedData? effectEvaluatedData)
{
GD.Print("Custom execution executed");
var owner = effect.Ownership.Owner;
if (owner == null) return [];
GD.Print(eventTags.Tags.Count);
foreach (var tag in eventTags.Tags)
{
GD.Print(tag);
}
owner.Events.Raise(new EventData
{
@@ -43,6 +49,6 @@ public partial class ForgeRaiseEventTagExecution : ForgeCustomExecution
public override CustomExecution GetExecutionClass()
{
return new FlyingWeaponExecution(EventTags.GetTagContainer());
return new RaiseEventTagExecution(EventTags.GetTagContainer());
}
}