Пример #1
0
 private void Clear()
 {
     this.param = (CondEffectParam)null;
     this.rate  = (OInt)0;
     this.turn  = (OInt)0;
     this.value = (OInt)0;
 }
Пример #2
0
        public static CondEffect CreateCondEffect(CondEffectParam param, int rank, int rankcap)
        {
            if (param == null || param.conditions == null || param.conditions.Length == 0)
            {
                return((CondEffect)null);
            }
            CondEffect condEffect = new CondEffect();

            condEffect.param = param;
            condEffect.UpdateCurrentValues(rank, rankcap);
            return(condEffect);
        }