|
|
|
@@ -1,6 +1,6 @@ |
|
|
|
import { Place, Choice, Direction, World } from '../world' |
|
|
|
import { ProperNoun, ImproperNoun, MalePronouns, FemalePronouns, TheyPronouns } from '../language' |
|
|
|
import { Encounter, Stat, Damage, DamageType, Vigor } from '../combat' |
|
|
|
import { Encounter, Stat, Damage, DamageType, Vigor, Side } from '../combat' |
|
|
|
import * as Creatures from '../creatures' |
|
|
|
import * as Items from '../items' |
|
|
|
import { LogLine, nilLog, LogLines } from '../interface' |
|
|
|
@@ -8,6 +8,7 @@ import { Creature } from '../creature' |
|
|
|
import { DevourAction } from '../combat/actions' |
|
|
|
import { SurrenderEffect } from '../combat/effects' |
|
|
|
import moment from 'moment' |
|
|
|
import { RandomAI } from '../ai' |
|
|
|
|
|
|
|
function makeParty (): Creature[] { |
|
|
|
const fighter = new Creatures.Human(new ProperNoun("Redgar"), MalePronouns, { |
|
|
|
@@ -195,6 +196,27 @@ export const Town = (): Place => { |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
westAve.choices.push( |
|
|
|
new Choice( |
|
|
|
"Fight someone", |
|
|
|
"Ow", |
|
|
|
(world, executor) => { |
|
|
|
const enemy = new Creatures.Human(new ProperNoun("Nerd"), TheyPronouns) |
|
|
|
enemy.side = Side.Monsters |
|
|
|
enemy.ai = new RandomAI() |
|
|
|
const encounter = new Encounter( |
|
|
|
{ |
|
|
|
name: "Fight some nerd", |
|
|
|
intro: world => new LogLine(`You find some nerd to fight.`) |
|
|
|
}, |
|
|
|
[world.player, enemy] |
|
|
|
) |
|
|
|
world.encounter = encounter |
|
|
|
return nilLog |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
bossEncounters.forEach(encounter => { |
|
|
|
bosses.choices.push( |
|
|
|
new Choice( |
|
|
|
|