public ModifierContext modifier()
    {
        ModifierContext _localctx = new ModifierContext(Context, State);

        EnterRule(_localctx, 6, RULE_modifier);
        try {
            State = 29;
            ErrorHandler.Sync(this);
            switch (Interpreter.AdaptivePredict(TokenStream, 1, Context))
            {
            case 1:
                EnterOuterAlt(_localctx, 1);
                {
                    State = 23; plusminus();
                    State = 24; Match(CONSTANT);
                }
                break;

            case 2:
                EnterOuterAlt(_localctx, 2);
                {
                    State = 26; plusminus();
                    State = 27; variable();
                }
                break;
            }
        }
        catch (RecognitionException re) {
            _localctx.exception = re;
            ErrorHandler.ReportError(this, re);
            ErrorHandler.Recover(this, re);
        }
        finally {
            ExitRule();
        }
        return(_localctx);
    }
 public override bool CanRoll(ModifierContext ctx)
 {
     return(base.CanRoll(ctx));
 }
Beispiel #3
0
 public override bool CanRoll(ModifierContext ctx)
 {
     return(base.CanRoll(ctx) && ctx.Method != ModifierContextMethod.SetupStartInventory);
 }