DiceModders-Upkeep icon

Upkeep

Lobby rule: guard towers eat food and lighthouses use wood or stone every turn; unpaid ones do not shoot. Each player chooses what to pay, and an offering at the Cathedral doubles its culture.

Last updated 3 hours ago
Total downloads 3
Total rating 0 
Categories Mods Misc AI Generated
Dependency string DiceModders-Upkeep-1.0.3
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_IL2CPP-6.0.788 icon
BepInEx-BepInExPack_IL2CPP

BepInEx pack for IL2CPP x64 Unity games. Preconfigured and ready to use.

Preferred version: 6.0.788
DiceModders-UiKit-1.1.0 icon
DiceModders-UiKit

Shared UI toolkit for Dice Kingdoms mods: windows and widgets in the game's own look, and additions to the game's screens (top bar, Settings tabs and blocks, scoreboard, Rules).

Preferred version: 1.1.0
DiceModders-ModCore-1.3.1 icon
DiceModders-ModCore

Shared game and multiplayer logic for Dice Kingdoms mods: lobby rules the host sets for everybody, per-player choices shared in the match, mod checks, new civilizations, unit and building values, hotkeys, texts in the game's languages.

Preferred version: 1.3.1
DiceModders-ModBridge-1.1.1 icon
DiceModders-ModBridge

Connects ModCore and UiKit: every mod's lobby rules in Settings > Lobby, every mod's keys in Settings > Input, and new civilizations in the Rules screen, in the game's own style.

Preferred version: 1.1.1

README

DiceKingdoms Upkeep

A lobby rule for Dice Kingdoms (off by default): defence buildings cost something to keep.

  • Guard towers eat food every turn (1 each, set in the lobby).
  • Lighthouses use wood or stone every turn (1 each, whichever you have more of).
  • An unpaid guard tower or lighthouse gets the game's hungry state and does not shoot in that turn's combat. An unpaid lighthouse also gives no fish bonus at the next harvest.
  • Cathedral offering: during the build phase you can make an offering (4 gold per Cathedral, set in the lobby). It works like a market purchase: the gold goes at once, and those Cathedrals give double culture at the next harvest (the harvest screen and the tooltips show the doubled culture).

The upkeep is paid in the disasters phase, together with the game's own food upkeep for the houses.

The Upkeep window

While a match with the rule on is running, a button on the top bar opens the Upkeep window:

  • Feed the guard towers / Pay the lighthouses: switch off to keep the resources (those buildings then do not shoot).
  • Guard towers eat before the houses: when food is short, the towers are fed first (otherwise the houses eat first).
  • Make an offering: once per turn, in the build phase; the offering is sent like any of the game's own build actions.

A switch counts from the next turn, so every player's computer knows it before it is used. Computer players pay everything, and the houses eat first.

Lobby rules

Rule Default
Upkeep off
Food per guard tower 1
Wood or stone per lighthouse 1
Cathedral offering (gold) 4

In the lobby's rules list Upkeep is a tick; while it is on, Upkeep: settings opens the three numbers in their own window (ModBridge).

Every player in the match needs this mod (ModCore compares the mods in the lobby).

Install

Needs BepInEx 6 (IL2CPP), ModCore 1.2.0 or newer, UiKit and ModBridge. Put DiceModders.Upkeep.dll into BepInEx\plugins, with the game closed.

Build

.\scripts\build.ps1 -GameDir "<your Dice-Kingdoms folder>"   # first time
.\scripts\build.ps1                                           # afterwards

The script builds the mod and copies it into the game's BepInEx\plugins folder (close the game first).

Texts

texts.json holds the texts in English, German, French, Russian, Ukrainian and Chinese. A DiceModders.Upkeep.texts.json next to the DLL wins line by line.

License

MIT