fishing-treat.yaml 607 B

123456789101112131415161718
  1. # Mod→content bridge (D29): the fishing Mod emits the custom mod:fish-caught
  2. # bus event (a Mod cannot register to raw bus events — hooks only, D6/D13 —
  3. # so the event crosses the boundary as content the language CAN match). Every
  4. # third catch grants a free egg, demonstrating the D5 escape-hatch split.
  5. id: fishing-treat
  6. initial: c0
  7. states:
  8. - id: c0
  9. - id: c1
  10. - id: c2
  11. onEnter:
  12. - action: give-item
  13. itemId: egg
  14. qty: 1
  15. transitions:
  16. - { from: c0, to: c1, on: mod:fish-caught }
  17. - { from: c1, to: c2, on: mod:fish-caught }
  18. - { from: c2, to: c0, on: mod:fish-caught }