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); }