public void onDeath(IHarmfulEntity source) { //throw new NotImplementedException(); invincibilitytime *= 3f; if (Game.player == this) { //if (Game.timeRemaining > 0) if (Game.timeRemaining >= Game.baseLifeCost) { Position.CopyFrom(SpawnLocation); HP = maxHP; Game.timeRemaining -= Game.baseLifeCost; //Game.timeRemaining *= 0.85f; //Game.timeRemaining *= 0.6667f; Game.camera.instawarp = true; Game.skiprender = true; } else { Game.DoGameOver(); } } else { Position.CopyFrom(SpawnLocation); HP = maxHP; } }
public void onDamaged(IHarmfulEntity source, float amount) { //throw new NotImplementedException(); if (invincibilitytime <= 0) { //HP -= (amount / defensepower); HP -= Game.calcdamage(amount, defensepower); invincibilitytime = 50 * invincibilitymod; } }
public void onDamaged(IHarmfulEntity source, float amount) { //throw new NotImplementedException(); //if (!(source is MRGhosty)) { //HP -= (amount / defensepower); HP -= Game.calcdamage(amount, defensepower); } /*else * { * Helper.Log("ghosts are allergic to themselves???"); * }*/ }
public void onDeath(IHarmfulEntity source) { //throw new NotImplementedException(); Alive = false; CollectableItem P = new PointItem(Game); P.Position.CopyFrom(Position); P.collectionDelay /= 2; Game.AddEntity(P); if (Math.Random() < 0.15) { P = new HealingItem(Game); P.Position.CopyFrom(Position); P.Vspeed = -2; P.collectionDelay /= 2; this.Game.AddEntity(P); } }
public void onDeath(IHarmfulEntity source) { //throw new NotImplementedException(); }
public void onDamaged(IHarmfulEntity source, float amount) { //throw new NotImplementedException(); }