Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        public static ColorMatrix Sun()
        {
            var color = ColorMatrix.Greyscale();

            color *= ColorMatrix.Translate(new Color(50, 50, 50));
            color *= ColorMatrix.TwoColorLight(new Color(222, 96, 12), new Color(252, 253, 193));
            color  = ColorMatrix.Lerp(color, ColorMatrix.Identity, 0.33f);
            //color *= ColorMatrix.Scale(2);
            return(color);
        }
Ejemplo n.º 3
0
        public static ColorMatrix Ender()
        {
            var color = ColorMatrix.Greyscale();

            color *= ColorMatrix.Translate(new Color(50, 50, 50));
            color *= ColorMatrix.TwoColorLight(new Color(103, 21, 138), new Color(196, 223, 251));
            color  = ColorMatrix.Lerp(color, ColorMatrix.Identity, 0.33f);
            //color *= ColorMatrix.Scale(2);
            return(color);
        }
Ejemplo n.º 4
0
 public void ShowSkill(Creature user)
 {
     //new CurrentSkill(user.World, this, time);
     user.VisualColor        = user.Flick(user.Flash(user.Static(Color.Black), user.Static(ColorMatrix.Greyscale() * ColorMatrix.Scale(2)), 2, 2), user.Static(Color.White), 30);
     user.World.CurrentSkill = this;
 }