Skip to content

feat(kbve-mod,agones-factorio): v0.0.6 tree+jackpot coins + shim portal version-compare (HOLD MERGE)#11734

Open
h0lybyte wants to merge 5 commits into
devfrom
trunk/kbve-mod-exchange-fixes-1780390747
Open

feat(kbve-mod,agones-factorio): v0.0.6 tree+jackpot coins + shim portal version-compare (HOLD MERGE)#11734
h0lybyte wants to merge 5 commits into
devfrom
trunk/kbve-mod-exchange-fixes-1780390747

Conversation

@h0lybyte

@h0lybyte h0lybyte commented Jun 3, 2026

Copy link
Copy Markdown
Member

Summary

Do not merge yet — user asked to roll out updates without publishing v0.0.6 to the mod portal. PR is staged for review only.

  • Tree chop = 2 coins per tree, granted in `Coins.handle_pre_player_mined` whenever `entity.type == 'tree'` (covers vanilla and modded tree prototypes). Sits before the existing MINE_DROP probabilistic ore drops.
  • Enemy kill jackpot bonus — every successful kill that already pays via `KILL_REWARD` now rolls a 10% chance for an extra `ceil(reward * 1.5)` jackpot stacked onto the base payout. Reason on grant becomes `kill_jackpot` when it fires so the stats log distinguishes them.
  • Unlisted enemy roll — any death of an entity on `force.name == 'enemy'` that is NOT in `KILL_REWARD` (modded biters, demolishers, etc.) now rolls a 20% chance for 1 coin. Keeps mod-content kills from feeling like dead weight.

Test plan

  • `luac -p apps/agones/factorio/mods-local/kbve/modules/coins.lua` clean
  • Local Factorio: chopped a tree → console `[STATS] reason=chop amount=2`
  • Local Factorio: killed a few biters until jackpot fires → `[STATS] reason=kill_jackpot`
  • Local Factorio: killed an entity on enemy force not in KILL_REWARD → occasional `reason=kill amount=1`
  • Hold merge until ready to release v0.0.6 to the mod portal

h0lybyte added 4 commits June 2, 2026 21:29
…ut fix

KBVE mod v0.0.4
- KBVE Exchange anchors to the right of the screen instead of grabbing
  player.opened, so the vanilla inventory can stay open while transferring
  items into the personal vault.
- Market Buy tab now sorts by ascending price; affordable items keep
  their Buy buttons enabled, unaffordable items are disabled.
- Buying refreshes only the balance label + per-row enabled state in
  place, so scroll position survives purchases.
- Trigger keys toggle both Exchange and Fleet Commander GUIs (open/close).
- New 3-tile range gate on every Buy click and every Fleet Commander
  click, plus a 30-tick proximity sweep that auto-closes either GUI when
  the player wanders beyond range.
- Starter kit on first join: 2 spider eggs (when kbve-spider is loaded),
  1 pistol, 100 firearm-magazines — granted alongside the existing
  250 coin welcome bonus.

kbve-kubectl
- Add kubectl_output_with_timeout helper; rotate-gameserver delete now
  uses delete_timeout + 30s slack instead of the global 30s wrapper, so
  long --timeout=180s deletes no longer report "kubectl timed out" while
  the delete itself was already submitted.
@h0lybyte h0lybyte changed the title feat(kbve-mod): v0.0.6 tree-chop coins + enemy-kill jackpot rolls (HOLD MERGE) feat(kbve-mod,agones-factorio): v0.0.6 tree+jackpot coins + shim portal version-compare (HOLD MERGE) Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant