feat(events): four event recipes for the New event page
Authoring flows phase 2 (docs AUTHORING_FLOWS_PLAN.md §5, §6.4, D418-D419). Registers four templates through registerEventTemplates (MODULE_API 1.13.0, no contract change): Announcement, Boss raid, Seasonal event for a few hours (core.lease on uo.seasonal.status, up to the 12 h lease ceiling) and Gathering giveaway (participation count at a landmark, then uo.item.grant to everyone counted). build() makes no shard call. Adds server/scripts/templateBuild.js and a frozen-manifest CI step that load the module through the pinned core's real loader and fill every recipe in through buildFromTemplate, so core's own spec validator sees them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t
This commit is contained in:
@@ -107,6 +107,7 @@ function fakeApi() {
|
||||
eventActions: null,
|
||||
eventBudgets: null,
|
||||
eventOptionSources: null,
|
||||
eventTemplates: null,
|
||||
hooks: {},
|
||||
}
|
||||
const called = new Set()
|
||||
@@ -147,6 +148,9 @@ function fakeApi() {
|
||||
// for a second one: a verb this module calls and this fake does not have is a
|
||||
// TypeError in `entry.test.js` rather than a surprise at somebody's boot.
|
||||
registerEventLeases(leases) { once('registerEventLeases'); record.eventLeases = leases },
|
||||
// MODULE_API 1.13.0. `once` as for the rest: core stages a registrant's whole
|
||||
// batch and applies it as one.
|
||||
registerEventTemplates(templates) { once('registerEventTemplates'); record.eventTemplates = templates },
|
||||
onBoot(fn) { once('onBoot'); record.hooks.onBoot = fn },
|
||||
onShutdown(fn) { once('onShutdown'); record.hooks.onShutdown = fn },
|
||||
// MODULE_API 1.20.0 (account deletion, ACCOUNT_DELETION.md §4.4).
|
||||
|
||||
Reference in New Issue
Block a user