From e32bf4982bda88833e5f38e1d502dbc04d9a64bc Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 16 Nov 2026 02:44:11 +0000 Subject: [PATCH] docs: specify Alpha 1.0.0.9 Clans & Pillage Update --- .../design/alpha-1.0.0.9-clans-and-pillage.md | 218 ++++++++++++++++++ 1 file changed, 218 insertions(+) create mode 100644 docs/design/alpha-1.0.0.9-clans-and-pillage.md diff --git a/docs/design/alpha-1.0.0.9-clans-and-pillage.md b/docs/design/alpha-1.0.0.9-clans-and-pillage.md new file mode 100644 index 00000000..477f8606 --- /dev/null +++ b/docs/design/alpha-1.0.0.9-clans-and-pillage.md @@ -0,0 +1,218 @@ +# Alpha 1.0.0.9 — Clans & Pillage Update + +Status: Accepted for development by the owner. Design specification, not implemented functionality. +Release: When it's done. No promised date. +Repository, branch, milestone, PR and development ticket must consistently use Alpha 1.0.0.9. +This document is the handoff to the coding thread; creating it does not deploy or restart anything. + +## 1. Product direction and scope +Website-first politics, decisions, territorial claims, war, quests and Dune-specific player skills. Reuse the existing elections, identity, clans, companies, Exchange, kits, Imperial Postbank, travel and WorldGuard. Inspect current main/live contracts before implementation; the earlier local scan is evidence of source capabilities, not proof of live enforcement. + +Political CP: one central workspace, no tab/subtab navigation, always-expanded left menus, Economic / Political / Communal categories. Burgundy/dark readable backgrounds, gold borders, extensive Imperial/governmental/Dune/Minecraft artwork. EU4-style illustrated decision rows: requirements, target, effect, budget, preparation, expiry, cooldown, enact confirmation and unavailable reasons. Right panel: active decrees, ongoing schemes, commitments and alerts. Available/Active/History are filters, not a second tab hierarchy. + +In-game management must be minimal: place anchor, optional boundary preview, concise alerts, quest gameplay and combat/capture. Right-click anchor shows owner/name/tier/war status and a safe website link. /faction gives affiliation and website link. No full inventory faction-management GUI. Membership, permissions, upgrades, capital designation, decisions, diplomacy, war schedules, treasury and quest management live on the website. + +## 2. Government +Two chambers: Imperial Senate (Emperor and House leaders forming the Landsraad), Small Council (Bene Gesserit leader, Spacing Guild leader, Clan Delegate). Terms: four weeks. Clan Delegate electorate: one vote per active clan, cast by its leader. Bene and Guild leaders: all verified citizens. Preserve the functioning election engine; do not invent an Emperor/House electorate without checking existing rules. +Playable Bene/Guild membership and slot counts are undecided. Separate membership, personal ability progression and elected office authority. + +## 3. Decision contract +Decision = public policy. Scheme = confidential preparation/operation with success, exposure, evidence and counterplay. Categories remain Economic / Political / Communal. +Canonical server-side scope, issuer/current office, target entity, parameters, jurisdiction, budget/source, notice, start/end, renewal/cooldown, exemptions, repeal path, audit and idempotency. Restriction checks belong at actual checkout, transfer, listing, travel and capture operations, not only UI. +Leadership changes do not silently erase active orders. Duration and successor repeal rules are explicit. +No political XP, governance levels or automatic personal DM rewards for clicking/completing a decree. Real programme funding, grants, tariffs and contracts remain real ledger transactions. + +## 4. Action catalogue — 12 per office +The following concrete powers supersede vague announcements in the earlier 75-action brainstorming. Preserve earlier programme ideas as backlog templates (section 5). Authority assignments and balance values below are proposals until constitutional rules are finalised. + +### Emperor +| Category | Action | Effect | +|---|---|---| +| Economic | Imperial Tariff | Add capped Exchange charges by item/category; credit Imperial Treasury. | +| Economic | Declare Contraband | Ban named goods from legal listings/purchases empire-wide, without deleting possession. | +| Economic | Imperial Asset Freeze | Block outgoing payments/withdrawals for named clan/House/world/company entity accounts. | +| Economic | Commercial Embargo | Block named entity from legal Exchange buying/selling. | +| Political | Suspend Arms and Kit Sales | Block new purchases of selected kits/sellers temporarily; paid receipts remain valid. | +| Political | Imperial Travel Interdict | Restrict specified interworld routes through game/proxy enforcement. | +| Political | Grant Resource Monopoly | Appoint/replace legal spice/water trading House, extending existing appointments. | +| Communal | Emergency Exemption | Permit specified relief goods, suppliers or journeys through restrictions. | +| Political | Sanction a House War | Recognise a House/world conflict with objectives and preparation. | +| Political | Demand Imperial Ceasefire | Issue ultimatum; refusal enables defined sanctions; compulsory power requires constitution. | +| Economic | Wartime Sanctions | Apply targeted freezes, embargoes or kit restrictions to belligerents. | +| Communal | Protected World | Designate agreed neutral ground, enforced through explicit war rules. | + +### House leaders / Landsraad +| Category | Action | Effect | +|---|---|---| +| Economic | World Import Duty | Tax qualifying purchases from another origin into own jurisdiction. | +| Economic | Local Contraband Order | Ban specified legal imports/exports within own jurisdiction. | +| Economic | World Export Embargo | Stop selected local-origin exports while allowing domestic trade. | +| Economic | Freeze Local Corporate Assets | Target locally registered company accounts under defined authority. | +| Economic | Suspend Local Trading Licence | Temporarily exclude a local company from legal Exchange. | +| Political | Close World Entry | Block ordinary arrivals; departure/exemptions explicitly defined. | +| Political | Restrict Military Kit Sales | Restrict new designated kit sales in jurisdiction. | +| Communal | Essential Supplies Exemption | Exempt necessities from own tariffs/bans temporarily. | +| Political | Declare House War | Publish target, objective and notice period. | +| Political | Encourage Clan Hostilities | Offer funded support; clan independently accepts and declares. | +| Political | Military Alliance | Invite another House to join a conflict voluntarily. | +| Political | Offer Peace / Ceasefire | Propose explicit temporary truce or final settlement. | + +### Bene Gesserit +| Category | Action | Effect | +|---|---|---| +| Economic | Financial Investigation | Restricted scoped view of recorded organisational transactions. | +| Economic | Preservation Hold | Request short asset hold requiring independent authorised confirmation. | +| Economic | Investigate Sanctions Evasion | Examine recorded legal trades; do not pretend physical cash is visible. | +| Political | Inspection Warrant | Authorise limited contraband checkpoint operation; inspection system is new work. | +| Political | Expose Covert Operation | Investigate scheme sponsor using genuine evidence records. | +| Political | Protect Institution | Temporary counterintelligence for named organisation/institution. | +| Political | Review Emergency Sanction | Trigger review; repeal belongs to designated deciding authority. | +| Communal | Humanitarian Passage Petition | Seek beneficiary-specific exceptions from responsible authority. | +| Political | Peace Conference | Negotiate ceasefire, reparations, restrictions and guarantees. | +| Political/Scheme | Incite Clan Rivalry | Secretly sponsor a conflict proposal; never force a clan to fight. | +| Political/Scheme | Expose War Sponsor | Investigate and disclose verified covert funding evidence. | +| Communal | Humanitarian Truce | Seek agreement for relief/evacuation protection. | + +### Spacing Guild +| Category | Action | Effect | +|---|---|---| +| Economic | Route Surcharge | Temporarily increase specified Guild fare. | +| Economic | Preferential Passage | Accepted fare concessions for named organisations. | +| Economic | Carrier Embargo | Deny Guild transport to named organisation members. | +| Political | Close Route | Close a specified pair of world connections. | +| Political | Isolate World | Suspend normal arrivals/departures with emergency exceptions. | +| Political | Permit-Only Passage | Require active permit for chosen route/world. | +| Political | Revoke Passage Privileges | Suspend special concessions, not personal identity. | +| Communal | Evacuation Corridor | Allow one-way departures during restrictions. | +| Economic | Wartime Blockade | Close specified routes to belligerents. | +| Political | Military Passage | Permit named forces on routes; destination sovereignty still checked. | +| Communal | Neutral Evacuation Routes | Protected civilian journeys in conflict. | +| Economic | Peace Concessions | Offer fare reductions conditional on accepted ceasefire. | + +### Clan Delegate +| Category | Action | Effect | +|---|---|---| +| Economic | Clan Trade Pact | Participating-clan concessions; taxing office confirms exemptions. | +| Economic | Collective Procurement Embargo | Restrict participating official procurement, not involuntary personal trading. | +| Economic | Clan Treasury Safeguard | Short hold for authenticated leadership dispute with independent approval. | +| Economic | Suspend Collective Funding | Stop future discretionary programme payments; preserve completed obligations. | +| Political | Clan Sanctions Motion | Clan ballot requesting council sanction. | +| Political | Withdraw Shared Kit Sales | Pause programme-owned kit sales only. | +| Communal | Emergency Supply Compact | Pool committed funds for permitted relief supplies. | +| Communal | Sponsor Relief Passage | Fund Guild permits/evacuation for eligible members. | +| Political | Recognise Clan Feud | Register valid clan war and objectives. | +| Political | Rally Clan Coalition | Invite clan leaders to accept participation. | +| Political | Broker Clan Ceasefire | Present truce for belligerents to accept. | +| Communal | Peace Assembly | Negotiate settlement and reconstruction. | + +## 5. Earlier programme backlog retained +Emperor: commerce week, company charters/startup grants, independently reviewed credit guarantees, relief, Great Works, starter-kit vouchers, Imperial quest season/festival. +House: industry subsidies, company procurement, enterprise grants, reciprocal trade accords, published mandate, faction stillsuit/banner commissions, reconstruction and community quests. +Bene: aggregate economic surveys, artisan scholarships, research contracts, financial-literacy quests, mediation/advisory opinions, informants, lore archives, ceremonial kits, mentoring/culture. +Guild: preferred routes, freight holidays/rebates, company freight contracts, independently approved loan-interest rebates, commercial intelligence, caravan quests, courier kits, frontier supplies/trade fairs. +Clan Delegate: development grants, joint procurement, enterprise support, independently reviewed credit guarantees, petitions/assembly/cooperation charter, voluntary boycott, interclan quests, clan banners, shared landmarks, welcome programmes/festivals. +These are ideas, not a promise to implement both overlapping catalogues in one release. + +## 6. Economy, contraband and enforcement +Exchange source exposes material/category/origin/seller; source also has tagged spice/water smuggling, levy and legal-resource appointments. General contraband, cargo checkpoints and alternative illicit trade are extensions, not already proven functionality. +Define trusted origin (production/listing/faction change rules) before tariffs. All purchase paths recheck decree version at commit, disclose all charges and ledger destinations, and never retroactively tax settled trades. +Entity freezes preserve ownership and statements; default stop discretionary debits/withdrawals, permit incoming funds. Define treatment of loan dues, upkeep, reserved funds and paid obligations explicitly; do not blindly reuse collateral account state. +No automatic freeze of employees' or clan members' personal accounts. World freeze targets defined government accounts, not every resident. +Owner intends physical in-game cash as a way to circulate previously withdrawn funds outside frozen accounts. Its current implementation must be inspected. If absent, specify separately an anti-duplication cash issuance/redemption ledger; don't equate Vault balances with banknotes or create free currency. +Kit embargoes block new sales only; immutable paid receipt snapshots, redemption and owned equipment remain intact. +Travel checks cover commands, menus, proxy/direct-server transitions, reconnect and existing arrival paths. Preserve safe login/spawn and emergency evacuation so policy cannot strand players. +No secret artificial accusation or unrestricted private-message visibility. + +## 7. War authorisation and peace +Add decisions: open war mandate, Imperial Peace, World Peace, authorise/refuse specific clan war, enforce ceasefire (constitutional power pending), non-aggression pact, named exception. +Conflict lifecycle: proposed -> declared -> preparation -> active -> ceasefire -> ended; cancellation/invalid states explicit. +Support clan wars, voluntary coalitions and House/world wars. Incentives cannot force another entity to join. +Peace order blocks new declarations. Existing wars continue unless explicitly included in ceasefire. +Ceasefire pauses capture/siege timers; expiry does not skip preparation windows. Mandatory postwar truce, renewal limits and cooldowns prevent permanent immunity. +Suggested emergency peace 24–72h; final numbers and chamber approval rules undecided. +War scope does not automatically enable global griefing/theft or alter ordinary PvP. Publish objectives, eligible estates, windows, victory, occupation, reparations and settlement before acceptance/declaration. + +## 8. WorldGuard-backed land and anchors +WorldGuard already installed. Inspect actual version, WorldEdit dependency and existing regions. Prefer reuse directly with custom Dune Claims integration; no need to automatically install Lands/Towny/ProtectionStones. Do not overwrite existing regions. +Ownership is entity-based, not elected leader's personal UUID. Synchronise clan membership/company permissions to protection backend. Names are labels; stable IDs govern ownership. + +| Entity | Anchor | Designator | Capture | +|---|---|---|---| +| Clan | Home Standard | Clan leader | Clan defeat in named conflict. | +| Clan outpost | Outpost Standard | Authorised clan officer | Outpost loss, not full clan defeat. | +| Company | Charter Beacon | Authorised company officer | Estate occupation only if eligible belligerent target. | +| House/world | Capital Seat | Elected House leader | House defeat under declared rules, not world-wide confiscation. | +| Bene Gesserit | Chapterhouse Sanctum | Elected leader | Temporary institutional disruption; no deletion of faction/personal skills. | +| Spacing Guild | Guild Nexus | Elected leader | Temporary discretionary service disruption; essential travel survives. | + +One capital/main HQ per entity, persistent through elections. House capital in own world on government land. Bene/Guild may own or hold treaty-backed estates without their own world; host-leader changes cannot instantly invalidate concessions. +Place custom authenticated beacon on valid unclaimed land -> register estate via website. Right-click is status+link only. +Proposed size progression: 3x3 -> 5x5 -> 7x7 -> 9x9 chunks; earlier 11x11 Great Estate is optional, not final. Spatial convention must be explicit: beacon's chunk is centre. Full-height/buffer rules require design. +Website upgrade previews boundary, one-off organisation payment, materials and upkeep; verify overlap/world bounds/reserved routes, atomically charge+expand or recover/refund. No area shrink exposing buildings due to failed upkeep/freeze; notify+grace. +No upgrades/relocation/dismantling during pending/active war. Capital designation separate from buying tier. +WorldGuard protects outsider block changes, interaction, containers, explosions, pistons and anchor movement; explicitly test indirect grief paths and priority overlap. +Server registry binds anchor ID/entity/world/position. Fake/copied item metadata doesn't create ownership. +Members can edit permitted buildings; only authorised officers can manage anchor. + +## 9. Siege design +Anchor capture, not block destruction. Scheduled windows and notice; buildings remain protected. +Attackers occupy marked zone; uncontested presence advances progress, defenders contest. Persist progress/outcomes across restart with one-shot defeat. +Accessible chamber/approach and clear entry rules essential; boxed-in inaccessible beacon cannot be valid objective. Decide doors/breach mechanics without general destruction. +Home Standard capture defeats that clan. Capital capture determines House result. Company premises neutral unless explicitly eligible. Never infer House defeat from one member clan. +Default occupation before permanent ownership transfer; final settlement determines return, transfer, reparations or withdrawal. Protect occupants' items from automatic wipe. +Few-member Bene/Guild get longer notice and suitable windows; exact roster/windows pending. HQ loss cannot remove essential access. +Test disconnects, logout/alt presence, spectators, allies, participant changes, simultaneous captures, ceasefire mid-capture and expired war. + +## 10. Quests +Rebuild poor current experience; inspect/preserve accepted progress and paid claims. Candidate reusable engines: BetonQuest for objectives/conditions/events, Citizens for NPCs, PlaceholderAPI for display. Version/API/license/current installation checks before dependency selection. No automatic plugin adoption. +Website journal: objectives, prerequisites, tracking, branches, active/history, personal/cooperative contributions. NPC/game provides physical objectives and concise feedback. +Economic: procurement/delivery/company/bank tutorial. +Political: dispatch/evidence/investigation/war service. +Communal: reconstruction/mentoring/clan events. +Exploration/story and crafting/equipment commissions also supported. +Political programmes instantiate bounded funded templates, not arbitrary console commands. +Durable completion events, dedupe, per-player contribution credit, restart recovery and safe migration. No fabricated live paid transactions for QA. + +## 11. Dune-specific player skills +Owner chose custom Dune progression instead of mcMMO. No political levelling; player quest/gameplay XP is separate and was explicitly reintroduced later. No automatic personal DM completion rewards. +Shared six disciplines; proposed cap50, first ability10, branch20, branch ability30, signature improvement40, mastery/title/cosmetic50. Overall rank display only; no extra multiplier. + +| Discipline | Branch A | Branch B | +|---|---|---| +| Bladecraft | Duelist: precision/counters | Guardian: defence/allies | +| Desert Survival | Pathfinder: travel | Conservationist/Stillsuit Specialist: water/endurance | +| Extraction | Prospector: surveys | Harvester: sustained gathering | +| Artifice | Armourer: repair | Artisan: recipes/banners/commissions | +| Commerce | Merchant: information/contracts | Quartermaster: logistics | +| Statecraft | Diplomat: mediation missions | Investigator: evidence/counterintelligence | + +Small bounded improvements; exact XP/stat curves not accepted yet. Caps include kit/stillsuit/shield bonuses. Anti-farming for staged kills, placed blocks, self-trading, collusion and replay. +Shared skills persist after faction/office change. One active affiliation specialisation; old affiliation powers inactive on leaving, switch cooldown, no silent loss of earned shared progress. +House flavour examples (map actual renamed factions before implementation): Atreides cooperation/rally, Harkonnen extraction surge, Corrino defence/resolve, Fremen conservation/desert stride. +Planet mastery is discovery/routes/contracts/story access, not another permanent combat multiplier. + +Bene tree: Prana-Bindu recovery, NPC/quest evidence Truthsense, quest-clue/hostile-NPC perception, Voice interrupt/control with boss resistance, Ancestral Insight alternative clue. Branches Reverend Mother / Voice Adept. No mind-reading players, wallhack, or unapproved PvP control. +Guild tree: navigation awareness, scripted-hazard prescient warning, party safe passage, consenting registered-point transport, scheduled Heighliner convoy. Branches Navigator / Guild Agent. Resource/capacity/cooldown, combat and destination rules. Essential public services remain when scarce player members offline. +Player slots, dual House/organisation membership and final balance remain undecided. + +## 12. Implementation order and acceptance +- [ ] Audit live/current main contracts, plugins, existing claims and all mutation paths; preserve existing elections and kit/loan history. +- [ ] Confirm constitutional authority matrix, jurisdictions, peace powers, policy precedence, cooldowns and exemptions. +- [ ] Implement canonical decision lifecycle, durable audit, expiry worker and website EU4 interface. +- [ ] Implement initial five mechanisms: tariff, contraband, entity freeze, kit-sale suspension, travel restriction. +- [ ] Add WorldGuard ownership/anchor registry, website claims/upgrades, role synchronisation and recoverable bank transaction workflow. +- [ ] Add war declarations, peace/truce, scheduled capture, occupation/settlement and HQ distinctions. +- [ ] Integrate extended programme templates/quests; migrate progress safely. +- [ ] Implement custom player disciplines and affiliation abilities in staged increments. +- [ ] Verify server-side authorisation, stale sessions, idempotent replay, restart/expiry recovery, indirect protection bypasses and every affected finance/travel path. +- [ ] Separate configs, immutable paid obligations and per-release migration/rollback; no restore from stale backups. +- [ ] Commit/push batches, CI, isolated staging and then verified deployment. No deploy/restart merely to publish this specification. + +Definition of done: website and game agree on authority/policy/claims/war; no bypass through alternate paths; no duplicated money/items/rewards; existing paid receipts and loan contracts preserved; restrictions expire reliably; siege outcomes apply once; accessible website controls and documented rollback. + +## 13. Open design decisions +Final numeric rates/costs/claim limits/upkeep; province/jurisdiction and goods origin; exact seizure/peace constitutional powers; war consent/preparation/windows/victory/reparations; company belligerency; physical cash implementation; siege accessibility/breach; Bene/Guild playable slots/membership; quest engine and XP/abilities balance. Do not present proposals as implemented functionality. + +## 14. Source evidence from initial local scan +website/control-panel/exchange.mjs (material/category/origin/seller); website/node/postbank-service.mjs and postbank-credit-engine.mjs (entity accounts/state checks); website/node/company-registry.mjs and company-admin.mjs; website/control-panel/kit-market.mjs and network/server-control/kit_commerce.py; DuneEss DuneEss.java (travel/fares/arrival); DuneCore Politics.java (levy/resource appointments), ArrakisWater.java (water trading/smuggling). +Re-read authoritative current source before implementation; other coding work may have advanced since this scan.