| 123456789101112131415161718 |
- # Mod→content bridge (D29): the fishing Mod emits the custom mod:fish-caught
- # bus event (a Mod cannot register to raw bus events — hooks only, D6/D13 —
- # so the event crosses the boundary as content the language CAN match). Every
- # third catch grants a free egg, demonstrating the D5 escape-hatch split.
- id: fishing-treat
- initial: c0
- states:
- - id: c0
- - id: c1
- - id: c2
- onEnter:
- - action: give-item
- itemId: egg
- qty: 1
- transitions:
- - { from: c0, to: c1, on: mod:fish-caught }
- - { from: c1, to: c2, on: mod:fish-caught }
- - { from: c2, to: c0, on: mod:fish-caught }
|