Remove useless effects for now
This commit is contained in:
@@ -88,7 +88,7 @@ Deno.test("a stronger, shorter effect hides a weaker one, which takes over when
|
||||
assertEquals(mob.attribute(ATTRIBUTES.movement_speed), base_speed);
|
||||
});
|
||||
|
||||
Deno.test("effects: regeneration heals, poison never kills, health boost goes away with its health", async () => {
|
||||
Deno.test("effects: regeneration heals and poison never kills", async () => {
|
||||
const { spawn } = await floor_game();
|
||||
const mob = spawn(0.5, 100, 0.5);
|
||||
|
||||
@@ -104,12 +104,6 @@ Deno.test("effects: regeneration heals, poison never kills, health boost goes aw
|
||||
|
||||
mob.add_effect(new EffectInstance(EFFECTS.instant_health, 1));
|
||||
assertEquals(mob.health, 9);
|
||||
|
||||
mob.add_effect(new EffectInstance(EFFECTS.health_boost, 20));
|
||||
assertEquals(mob.max_health, 14);
|
||||
mob.health = 14;
|
||||
mob.remove_effect(EFFECTS.health_boost);
|
||||
assertEquals([mob.max_health, mob.health], [10, 10]);
|
||||
});
|
||||
|
||||
Deno.test("hurting: a weaker hit right after does nothing, a harder one only the difference", async () => {
|
||||
|
||||
Reference in New Issue
Block a user