public override void StepOn(EnemyHuman human) { if (human is MoaiMan) { return; //Moaimen are spike-immune } human.Hit(-Util.GetFacingVector(human.Facing) * 1 + new Vector2(0, -2), 20, 50, Damage); }
private void Steal() { if (!(Victim.Weapon is WeaponUnarmed) && !(Victim.Weapon is null) && Victim.Invincibility <= 0) { Human.Weapon = Victim.Weapon; Victim.Weapon = new WeaponUnarmed(10, new Vector2(14, 10)); Victim.Hit(GetFacingVector(Human.Facing) * 0.5f, 30, 30, 0); new ParryEffect(Human.World, Victim.Position, 0, 10); PlaySFX(sfx_player_disappointed, 1.0f); } StealAction = StealState.StealFinish; }