Procházet zdrojové kódy

Remove unused images; add ActionRelay

master
Fen Dweller před 5 roky
rodič
revize
d3f9a8c8ac
6 změnil soubory, kde provedl 17 přidání a 15 odebrání
  1. binární
      public/media/cafat/images/belch.webp
  2. binární
      public/media/cafat/images/belly-crush.webp
  3. binární
      public/media/cafat/images/crunch.webp
  4. binární
      public/media/cafat/images/lower-stomach.webp
  5. binární
      public/media/cafat/images/stomach.webp
  6. +17
    -0
      src/game/events.ts

binární
public/media/cafat/images/belch.webp (Uloženo pomocí Git LFS) Zobrazit soubor

oid sha256:1f33bba6327c0a75e40d3e67a1c757421acde2d826ce3de05f397ab4c80fd039
size 39712

binární
public/media/cafat/images/belly-crush.webp (Uloženo pomocí Git LFS) Zobrazit soubor

oid sha256:e8cb78e4cbaaa195ca23b200037128734f2d00e8ce73fe766ff91d63454fe1e1
size 34866

binární
public/media/cafat/images/crunch.webp (Uloženo pomocí Git LFS) Zobrazit soubor

oid sha256:9af601f92ecf19fbef987599e4fbba7162be7fe24cc1fa809ca1d8dbb57091b8
size 43650

binární
public/media/cafat/images/lower-stomach.webp (Uloženo pomocí Git LFS) Zobrazit soubor

oid sha256:e29868efd8a6fb854ab3a3c0381dcdd1f9677e7f446183e4f9b4360cc997bbca
size 26554

binární
public/media/cafat/images/stomach.webp (Uloženo pomocí Git LFS) Zobrazit soubor

oid sha256:cc9e319a2319b4ae676650a4cec84ceb5a70a76ebe92c222f6d0722aff9a6214
size 29310

+ 17
- 0
src/game/events.ts Zobrazit soubor

@@ -2,6 +2,7 @@ import { TargetDrainedVigorCondition } from '@/game/combat/conditions'
import { Creature } from '@/game/creature'
import { LogEntry, LogLines, nilLog } from "@/game/interface"
import { VoreContainer } from '@/game/vore'
import { Action } from './combat'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
abstract class Relay<Sender, EventMap extends { [name: string]: any }> {
@@ -51,3 +52,19 @@ export class VoreRelay extends Relay<VoreContainer, VoreMap> {
super(["onEaten", "onReleased", "onDigested", "onAbsorbed"])
}
}

type ActionMap = {
"onActionAttempt": { user: Creature; target: Creature; action: Action };
"onActionFail": { user: Creature; target: Creature; action: Action };
"onActionSuccess": { user: Creature; target: Creature; action: Action };
}

export class ActionRelay extends Relay<Action, ActionMap> {
constructor () {
super([
"onActionAttempt",
"onActionFail",
"onActionSuccess"
])
}
}

Načítá se…
Zrušit
Uložit