Преглед на файлове

Fix initiatve going up to 500%

master
Fen Dweller преди 5 години
родител
ревизия
215d43e3fa
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      src/game/combat.ts

+ 2
- 2
src/game/combat.ts Целия файл

@@ -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)


Loading…
Отказ
Запис