Удаление всех действий-активаций
This commit is contained in:
+15
-1
@@ -9,10 +9,24 @@ internal class ActionProcessor(AonprdProcessorInput input) : AbstractEntityProce
|
||||
|
||||
public override Pf2eModel.Model.Structure.Action Object { get; } = new();
|
||||
|
||||
public override void Add() => Context.Actions.Add(Object);
|
||||
private bool _skipping = false;
|
||||
|
||||
public override void Add()
|
||||
{
|
||||
if (!_skipping)
|
||||
{
|
||||
Context.Actions.Add(Object);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Process()
|
||||
{
|
||||
if (Input.GetRequired<string>("markdown").StartsWith("**Activate**"))
|
||||
{
|
||||
_skipping = true;
|
||||
return;
|
||||
}
|
||||
|
||||
base.Process();
|
||||
|
||||
AonprdProcessorInput.ActionStruct action = Input.ResolveActionString(
|
||||
|
||||
Reference in New Issue
Block a user