|
|
|
@@ -5,7 +5,7 @@ import { LogLine, LogLines, LogEntry, Newline } from '../interface' |
|
|
|
import { VoreType, Stomach, VoreContainer, Vore, NormalContainer, Container, InnerStomach } from '../vore' |
|
|
|
import { AttackAction, FeedAction, TransferAction, EatenAction } from '../combat/actions' |
|
|
|
import { TogetherCondition, ContainsCondition, EnemyCondition, AllyCondition, PairCondition, CapableCondition } from '../combat/conditions' |
|
|
|
import { InstantKillEffect } from '../combat/effects' |
|
|
|
import { InstantKillEffect, ShieldEffect } from '../combat/effects' |
|
|
|
import * as Words from '../words' |
|
|
|
import { StatVigorTest } from '../combat/tests' |
|
|
|
|
|
|
|
@@ -26,6 +26,8 @@ class LevelDrain extends Action { |
|
|
|
} |
|
|
|
})) |
|
|
|
|
|
|
|
// TODO make this respect resistances |
|
|
|
|
|
|
|
user.takeDamage(heal) |
|
|
|
const targetResult = target.takeDamage(damage) |
|
|
|
|
|
|
|
@@ -238,6 +240,10 @@ class StompAllyAction extends Action { |
|
|
|
return new LogLines( |
|
|
|
this.line(user, target), |
|
|
|
target.applyEffect(new InstantKillEffect()), |
|
|
|
user.applyEffect(new ShieldEffect( |
|
|
|
[DamageType.Crush, DamageType.Slash, DamageType.Pierce], |
|
|
|
0.5 |
|
|
|
)), |
|
|
|
new LogLine(`${user.name.capital} absorbs ${target.pronouns.possessive} power, gaining `, heal.renderShort()) |
|
|
|
) |
|
|
|
} |
|
|
|
|