|
|
|
@@ -603,7 +603,7 @@ export type EncounterDesc = { |
|
|
|
export class Encounter { |
|
|
|
initiatives: Map<Creature, number> |
|
|
|
currentMove: Creature |
|
|
|
turnTime = 500 |
|
|
|
turnTime = 100 |
|
|
|
|
|
|
|
constructor (public desc: EncounterDesc, public combatants: Creature[]) { |
|
|
|
this.initiatives = new Map() |
|
|
|
@@ -647,7 +647,7 @@ export class Encounter { |
|
|
|
// applies digestion every time combat advances |
|
|
|
const tickResults = this.combatants.flatMap( |
|
|
|
combatant => combatant.containers.map( |
|
|
|
container => container.tick(closestRemaining + totalTime) |
|
|
|
container => container.tick(5 * (closestRemaining + totalTime)) |
|
|
|
) |
|
|
|
) |
|
|
|
const effectResults = this.currentMove.effects.map(effect => effect.preTurn(this.currentMove)).filter(effect => effect.prevented) |
|
|
|
|