Explorar el Código

Make struggles exit to the correct container

Previously, even things like 'stomach to throat' would completely escape.
Now, they go to the correct place.
master
Fen Dweller hace 3 años
padre
commit
8e39b5986b
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      src/game/combat/actions.ts
  2. +1
    -1
      src/game/vore.ts

+ 1
- 1
src/game/combat/actions.ts Ver fichero

@@ -244,7 +244,7 @@ export class StruggleMoveAction extends Action {

execute (user: Creature, target: Creature): LogEntry {
if (user.containedIn !== null) {
return new LogLines(this.successLine(user, target, { container: this.from }), user.containedIn.release(user))
return new LogLines(this.successLine(user, target, { container: this.from }), user.containedIn.exit(user), this.to.enter(user))
} else {
return new LogLine("Vore's bugged!")
}


+ 1
- 1
src/game/vore.ts Ver fichero

@@ -297,7 +297,7 @@ export abstract class DefaultContainer implements Container {

tickLine (user: Creature, target: Creature, args: { damage: Damage }): LogEntry {
const options = [
new LogLine(`${user.name.capital} ${user.name.conjugate(Words.Churns)} ${target.name.objective} ${this.strugglePreposition} ${user.pronouns.possessive} ${this.name} for `, args.damage.renderShort(), `.`),
new LogLine(`${user.name.capital} ${Words.Churns.present}} ${target.name.objective} ${this.strugglePreposition} ${user.pronouns.possessive} ${this.name} for `, args.damage.renderShort(), `.`),
new LogLine(`${user.name.capital.possessive} ${this.name} ${this.name.conjugate(Words.Churns)}, ${Words.Churns.present} ${target.name.objective} for `, args.damage.renderShort(), `.`),
new LogLine(`${target.name.capital} ${target.name.conjugate(Words.Struggle)} ${this.strugglePreposition} ${user.name.possessive} ${Words.Slick} ${this.name} as it ${Words.Churns.singular} ${target.pronouns.objective} for `, args.damage.renderShort(), `.`)
]


Cargando…
Cancelar
Guardar