public override void OnStackChange(int delta) { base.OnStackChange(delta); if (delta > 0 && Creature is Creature creature) { var cloak = new Cloak(creature, 30); cloak.OnUpdate += c => Cloak.PowerUp(c, 5, ColorMatrix.Greyscale() * ColorMatrix.Tint(Color.SteelBlue), LerpHelper.QuadraticOut, LerpHelper.QuadraticOut, 20); } }
public Feather() : base("feather", "Feather", string.Empty) { MeltingRequired = false; ColorTransform = ColorMatrix.Tint(new Color(255, 255, 255)); ValidParts = new HashSet <PartType>() { ToolArrow.Fletching, }; }
public Wood() : base("wood", "Wood", string.Empty) { MeltingRequired = false; FuelTemperature = 100; ColorTransform = ColorMatrix.Tint(new Color(177, 135, 103)); AddDurability(50, 1.5, 0); AddFullEffect(new EffectStat(this, Stat.Attack, 10)); }
public Coal() : base("coal", "Coal", string.Empty) { FuelTemperature = 1000; ColorTransform = ColorMatrix.Tint(new Color(103, 103, 103)); }