Пример #1
0
 public override void Initialize(CompProperties vprops)
 {
     base.Initialize(vprops);
     this.compProp = (vprops as CompProperties_ExtraDamage);
     if (this.compProp != null)
     {
         this.damageDef    = this.compProp.damageDef;
         this.damageAmount = this.compProp.damageAmount;
         this.chanceToProc = this.compProp.chanceToProc;
     }
     else
     {
         Log.Warning("Could not find a CompProperties_ExtraDamage for CompExtraDamage.");
         this.count = 9876;
     }
 }
Пример #2
0
 public override void Initialize(CompProperties vprops)
 {
     base.Initialize(vprops);
     this.compProp = (vprops as CompProperties_ExtraDamage);
     if (this.compProp != null)
     {
         this.damageDef = this.compProp.damageDef;
         this.damageAmount = this.compProp.damageAmount;
         this.chanceToProc = this.compProp.chanceToProc;
     }
     else
     {
         Log.Warning("Could not find a CompProperties_ExtraDamage for CompExtraDamage.");
         this.count = 9876;
     }
 }