feat(events): four event recipes for the New event page #53
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/event-recipes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
Authoring flows phase 2 (docs
website/AUTHORING_FLOWS_PLAN.md§5, §6.4; decisions D418–D419). Module-uo had no event templates, so on a UO-only site the New event page offered no starting point. This adds four, throughregisterEventTemplates(MODULE_API 1.13.0 — no contract change,coreApistays^1.20.0):uo.template.announce— Announcementuo.broadcast, plus an optional Town Cryeruo.news.postheld up for N minutes (default a day)uo.template.boss_raid— Boss raiduo.boss.spawnat a landmark + broadcast, held for N minutes; cleared at run enduo.template.seasonal— Seasonal event for a few hours (D418)core.leaseuo.seasonal.status→Activefor one of ServUO's seasonal events, ≤ 12 h, reverts itselfuo.template.gathering_giveaway— Gathering giveaway (D419)uo.participation.openat a landmark for a window, then collect +uo.item.grantto everyone counted + thanksD418 replaces the planned skill-cap lease:
PlayerCaps.SkillCapis the starting cap (read inCharacterCreation.cs), so it never helps existing players.build()makes no shard call — a recipe fills in with the shard down; the dry run checks the live world. Every input has an example and a plain description; defaults live inbuild()(core drops adefaultkey).Real-core build check:
server/scripts/templateBuild.js+ a newfrozen-manifeststep. It loads a staged copy of the module through the pinned core's real loader and fills every recipe in throughbuildFromTemplate, so core's ownspec.validatesees the plans (the server-tests job only has a fake core). Fixture coverage is checked both ways.Docs: RunicGateway/docs
docs/authoring-flows-phase-2(PR announced alongside).How it was tested
Local, Windows, against website
main9e58fd0 (MODULE_API 1.21.0):npm test --prefix server— 762/762 pass (newtest/eventTemplates.test.js: specs, defaults, every refusal, no live call).check:imports,check:bundlepass.check:swaggerreports STALE on this Windows checkout from CRLF only — the same on cleanmain; no routes changed.node server/scripts/templateBuild.js --core ../website --module .— all 14 fixtures OK; proven to fail (exit 1, template named) on a deliberately bad phase key.Not tested: the CI run against the pinned core 7bd93b8 (this PR's CI does that); no walk — phase 3 walks every recipe from picker to a published, dry-run-clean event on a live shard.
Checklist
AI-assisted contributions (required)
Claude Code (Claude Opus 5.5, Claude Sonnet). I have reviewed and understandevery change, and take responsibility for it. AI-authored commits are
marked with a
Co-Authored-By/Assisted-Bytrailer.License
(GNU GPL v3.0 or later), and I have the right to contribute it.
🤖 Generated with Claude Code
https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t