public CriticalAmount(RawNode node, IContext context)
     : base(node, context)
 {
     probability = node.GetDouble("probability");
     critical    = node.GetInt("critical");
     regular     = node.GetInt("regular");
     _random     = PathUtil.GetModelPath(GetContext(), node.GetString("random"), null).GetSelf <Random>();
 }
        public DynamicRandomReward(RawNode node, IContext context) : base(node, context)
        {
            if (node.CheckKey("random"))
            {
                _random = PathUtil.GetModelPath(GetContext(), node.GetString("random"), null).GetSelf <Random>();
            }

            probability = node.GetDouble("probability");
        }