Sfoglia il codice sorgente

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 3 anni fa
parent
commit
8e39b5986b
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      src/game/combat/actions.ts
  2. +1
    -1
      src/game/vore.ts

+ 1
- 1
src/game/combat/actions.ts Vedi File

@@ -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 Vedi File

@@ -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(), `.`)
]


Loading…
Annulla
Salva