public override void Collected(Hero collector) { collector.AddEffectToWeapons(new Damage(10)); collector.FullHealth = Mathf.Max(2, collector.FullHealth - 2); base.CreatePopUpText("Damage ++ HP -", collector); //GameObject.Destroy(gameObject); }
public override void Collected(Hero collector) { var sc = new ShieldChance(0.1f); sc.shieldPrefab = ShieldPrefab; collector.AddEffectToWeapons(sc); base.CreatePopUpText("10% Chance Shield", collector); sc.ForceEffect(collector.gameObject); //GameObject.Destroy(gameObject); }
public override void Collected(Hero collector) { var list = collector.GetEffectsFromWeapons().ToArray(); foreach(var effect in list) { collector.otherPlayer.AddEffectToWeapons(effect); collector.RemoveEffectFromWeapon(effect); } collector.AddEffectToWeapons(new Damage(15)); base.CreatePopUpText("Ultimate sacrifice", collector); //GameObject.Destroy(gameObject); }
public override void Collected(Hero collector) { collector.AddEffectToWeapons(new SlowdownMovementSpeed(1f, 3f, 0.25f)); base.CreatePopUpText("10% Chance Slow", collector); //GameObject.Destroy(gameObject); }
public override void Collected(Hero collector) { collector.AddEffectToWeapons(new Knockback(2)); base.CreatePopUpText("Knockback", collector); //GameObject.Destroy(gameObject); }