Spooky Doors house ads: an empty street serves one of Marty's programs instead of "Nobody's home"
When a door finds no visit pack and no video, /api/door/open serves a house ad from rates.doorHouseAds (RM Circle, Drip Runner, Gem Kingdom, PolHunter by default; ref templates carry the player's IAP username where the program takes a share link). Rotation: never the same program twice in a row, else the one least recently shown to that member today. Same dwell + Halloween icon check. No advertiser charge and no campaign imps, but it counts toward doorCapPerDay (visit_repeat row with campaign 0). Callback and receipt add house: true and program, with credits 0, host null, campaignId 0. doorHouseAds = [] restores none=1. Admin rates table keeps text columns as text so the list survives a save. qa/door.mjs covers it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -511,6 +511,6 @@
|
||||
</div>
|
||||
|
||||
<script src="/assets/common.js?v=20260929b"></script><script src="/assets/welcome.js?v=20260923b"></script>
|
||||
<script src="/assets/admin.js?v=20260928c"></script>
|
||||
<script src="/assets/admin.js?v=20261002h"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user