mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 00:32:40 +00:00
news: Pete stops repeating the mischief announcements too
1cbd68a established the rule and I broke it two commits later. Priority
tier is the one thing that makes Pete post a live Matrix beat, and
TwinBee announces every mischief moment in the games room as it happens
— the contract going out, the survival, the maiming. Filing them
priority meant Pete read his version back to the room that had just
watched it.
Bulletin, like death and zone_first: still on the site, still in the
daily digest, no second telling to the people who were there.
This commit is contained in:
@@ -686,6 +686,13 @@ func (p *AdventurePlugin) announceMischiefDowned(c *mischiefContract, monsterNam
|
|||||||
//
|
//
|
||||||
// Deploy Pete BEFORE gogobee whenever these types change: Pete 400s an unknown
|
// Deploy Pete BEFORE gogobee whenever these types change: Pete 400s an unknown
|
||||||
// event_type, gogobee retries, and the bulletin parks forever.
|
// event_type, gogobee retries, and the bulletin parks forever.
|
||||||
|
//
|
||||||
|
// BULLETIN, never priority. Priority tier is the one thing that makes Pete post a
|
||||||
|
// live Matrix beat, and TwinBee already announces every one of these in the games
|
||||||
|
// room as it happens (announceMischiefContract / Survived / Downed) — a priority
|
||||||
|
// fact would just read Pete's version back to the people who watched it. Bulletin
|
||||||
|
// still carries the story to the site and the daily digest, where a roundup is
|
||||||
|
// what it is. Same call 1cbd68a made for death and zone_first.
|
||||||
|
|
||||||
func emitMischiefContractNews(c *mischiefContract, tier mischiefTier) {
|
func emitMischiefContractNews(c *mischiefContract, tier mischiefTier) {
|
||||||
target := charName(c.TargetID)
|
target := charName(c.TargetID)
|
||||||
@@ -702,7 +709,7 @@ func emitMischiefContractNews(c *mischiefContract, tier mischiefTier) {
|
|||||||
emitFact(peteclient.Fact{
|
emitFact(peteclient.Fact{
|
||||||
GUID: fmt.Sprintf("mischief_contract:%s:%d", eventToken(c.TargetID, "mischief:"+c.ID), ts),
|
GUID: fmt.Sprintf("mischief_contract:%s:%d", eventToken(c.TargetID, "mischief:"+c.ID), ts),
|
||||||
EventType: "mischief_contract",
|
EventType: "mischief_contract",
|
||||||
Tier: "priority",
|
Tier: "bulletin",
|
||||||
Subject: target,
|
Subject: target,
|
||||||
Opponent: buyer,
|
Opponent: buyer,
|
||||||
Boss: tier.Display,
|
Boss: tier.Display,
|
||||||
@@ -733,7 +740,7 @@ func emitMischiefResolvedNews(c *mischiefContract, monsterName, outcome string,
|
|||||||
emitFact(peteclient.Fact{
|
emitFact(peteclient.Fact{
|
||||||
GUID: fmt.Sprintf("%s:%s:%d", eventType, eventToken(c.TargetID, "mischief:"+c.ID), ts),
|
GUID: fmt.Sprintf("%s:%s:%d", eventType, eventToken(c.TargetID, "mischief:"+c.ID), ts),
|
||||||
EventType: eventType,
|
EventType: eventType,
|
||||||
Tier: "priority",
|
Tier: "bulletin",
|
||||||
Subject: target,
|
Subject: target,
|
||||||
Opponent: buyer,
|
Opponent: buyer,
|
||||||
Boss: monsterName,
|
Boss: monsterName,
|
||||||
|
|||||||
Reference in New Issue
Block a user