[PR #130] [MERGED] SMP 0.18.0: travel fees to the Treasury, a daily reward for playing #130

Closed
opened 2026-11-03 04:03:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon-mods/pull/130
Author: @ludovic111
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: feat/smp-sinks


📝 Commits (1)

  • fa61a38 SMP 0.18.0: travel fees to the Treasury, a daily reward for playing

📊 Changes

8 files changed (+228 additions, -22 deletions)

View changed files

📝 native/smp/Cargo.lock (+1 -1)
📝 native/smp/Cargo.toml (+1 -1)
📝 native/smp/README.md (+9 -3)
📝 native/smp/mixins/smp/glue.rs (+36 -6)
📝 native/smp/mixins/smp/horizon-mixin.toml (+1 -1)
📝 native/smp/mixins/smp/smp_places.rs (+113 -4)
📝 native/smp/mixins/smp/smp_presence.rs (+58 -2)
📝 native/smp/proof.py (+9 -4)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Sinks and sources in balance (smp-econ-1, round 2).

What

  • Teleports cost a fee to the Treasury (places.fees): home 5, warp 10, back 10, tpa 10 (paid by the one who moves), spawn free so a lost or new player can always get back. The fee is checked when the command runs ("This teleport costs 10 coins (to the Treasury); you have 3 coins.") and paid only when the teleport happens, logged as travel_fee with what it was for. A teleport called off (moved, hurt, money spent during the warmup, tp failed) costs nothing and puts /back and the cooldown back as they were (Places::call_off).
  • The daily reward (presence.daily_reward, 50) now waits for presence.reward_after_minutes (10) of play that day: only seconds with a move, a turn or a command in the minute before count. An alt that logs in and stands still gets nothing.

Why (measured on the live data, 2026-11-01, read-only copy)

  • Sources ~127k coins/day (market sells ~65k, daily reward ~62k) against ~22k of sinks: the supply (121k) was growing ~+105k/day.
  • On 11-01, 1,242 players got the reward; only 323 of them had ever played 10 minutes (an upper bound for who passes the new gate). Reward: ~62k/day → ≤16k/day.
  • Travel fees: 128 players own homes; at a guess of 2 paid teleports a day each, ~1–3k/day to the Treasury (no teleport counts in the logs: an estimate).
  • Projection: net growth ~+105k/day → ~+50–57k/day. What's left is mostly market sales: smp-market-1's prices and market tax (to the Treasury since #127). Land tax stays small by design (113 owners, 13 taxed chunks: 65 coins/week).
  • Repair and renaming fees: no hook sees an anvil's cost in coins; not done.

Tests: cargo test --lib 82 passed (new: reward after 10 minutes of play, alts get nothing, the count goes on after leaving; a called-off teleport keeps /back and has no cooldown; fees per kind), clippy -D warnings, fmt. Game build: CI's horizon (smp). proof.py: fees and delay set to 0 to keep its sums; adds the auction config key #128 left out. Not run locally (Mac mini disk).

Version: 0.18.0 (#126/#129 also claim 0.18.0: whoever merges second bumps).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon-mods/pull/130 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/smp-sinks` --- ### 📝 Commits (1) - [`fa61a38`](https://github.com/horizon-rust/horizon-mods/commit/fa61a38111a062c713b07f19fb97884458065830) SMP 0.18.0: travel fees to the Treasury, a daily reward for playing ### 📊 Changes **8 files changed** (+228 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `native/smp/Cargo.lock` (+1 -1) 📝 `native/smp/Cargo.toml` (+1 -1) 📝 `native/smp/README.md` (+9 -3) 📝 `native/smp/mixins/smp/glue.rs` (+36 -6) 📝 `native/smp/mixins/smp/horizon-mixin.toml` (+1 -1) 📝 `native/smp/mixins/smp/smp_places.rs` (+113 -4) 📝 `native/smp/mixins/smp/smp_presence.rs` (+58 -2) 📝 `native/smp/proof.py` (+9 -4) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Sinks and sources in balance (smp-econ-1, round 2). **What** - Teleports cost a fee to the Treasury (`places.fees`): home 5, warp 10, back 10, tpa 10 (paid by the one who moves), spawn free so a lost or new player can always get back. The fee is checked when the command runs ("This teleport costs 10 coins (to the Treasury); you have 3 coins.") and paid only when the teleport happens, logged as `travel_fee` with what it was for. A teleport called off (moved, hurt, money spent during the warmup, `tp` failed) costs nothing and puts `/back` and the cooldown back as they were (`Places::call_off`). - The daily reward (`presence.daily_reward`, 50) now waits for `presence.reward_after_minutes` (10) of play that day: only seconds with a move, a turn or a command in the minute before count. An alt that logs in and stands still gets nothing. **Why (measured on the live data, 2026-11-01, read-only copy)** - Sources ~127k coins/day (market sells ~65k, daily reward ~62k) against ~22k of sinks: the supply (121k) was growing ~+105k/day. - On 11-01, 1,242 players got the reward; only 323 of them had *ever* played 10 minutes (an upper bound for who passes the new gate). Reward: ~62k/day → ≤16k/day. - Travel fees: 128 players own homes; at a guess of 2 paid teleports a day each, ~1–3k/day to the Treasury (no teleport counts in the logs: an estimate). - Projection: net growth ~+105k/day → ~+50–57k/day. What's left is mostly market sales: smp-market-1's prices and market tax (to the Treasury since #127). Land tax stays small by design (113 owners, 13 taxed chunks: 65 coins/week). - Repair and renaming fees: no hook sees an anvil's cost in coins; not done. **Tests**: `cargo test --lib` 82 passed (new: reward after 10 minutes of play, alts get nothing, the count goes on after leaving; a called-off teleport keeps /back and has no cooldown; fees per kind), clippy -D warnings, fmt. Game build: CI's `horizon (smp)`. proof.py: fees and delay set to 0 to keep its sums; adds the `auction` config key #128 left out. Not run locally (Mac mini disk). Version: 0.18.0 (#126/#129 also claim 0.18.0: whoever merges second bumps). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:03:30 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-mods#130
No description provided.