Exemplo n.º 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);
 }
Exemplo n.º 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);
        }