Example #1
0
 public static void SmeltMetal(Metal ths, SimDescription actor)
 {
     ths.mHasBeenSmelt = true;
     ths.UpdateMetalVisual();
     float kSmeltMultiplier = Metal.kSmeltMultiplier;
     if ((actor != null) && actor.TraitManager.HasElement(TraitNames.GathererTrait))
     {
         kSmeltMultiplier += TraitTuning.GathererTraitIngotQualityModifier;
     }
     ths.mStoredCost = (int)(ths.Cost * kSmeltMultiplier);
 }
Example #2
0
        public static void SmeltMetal(Metal ths, SimDescription actor)
        {
            ths.mHasBeenSmelt = true;
            ths.UpdateMetalVisual();
            float kSmeltMultiplier = Metal.kSmeltMultiplier;

            if ((actor != null) && actor.TraitManager.HasElement(TraitNames.GathererTrait))
            {
                kSmeltMultiplier += TraitTuning.GathererTraitIngotQualityModifier;
            }
            ths.mStoredCost = (int)(ths.Cost * kSmeltMultiplier);
        }