# CivClicker local edition

Copyright (C) 2014 David Holley (now Katherine Stark), Scott A. Colcord and Luke Nickerson. Original names and credits are retained in README.md and original-source documents. GPL-3.0-or-later; full license in LICENSE. No warranty.

Source: https://github.com/deathraygames/civ-clicker, stable v1.3.3, 53ffef0378dff2b764ec55812fc097a48fbd6ead, March 11, 2017. Unmodified preferred source files: source/original/ and upstream-source.zip; SHA256 hashes: source/ORIGINAL-SHA256.json. These omit only five JPEG files because the upstream FAQ's public-domain statement identifies a PREVIOUS background, not every currently shipped background. All program source, original notices, docs, icons and fonts remain. Omitted: images/achLocked.jpg, images/constableLandscapeRetouched.jpg, images/constable_original.jpg, images/constable_wivenhoe_park_essex.jpg, images/constable_wivenhoe_park_essex_faded.jpg. No claim is made that those JPEGs are licensed for redistribution. None is present in the delivered package or archive.

Modified preferred source is the unminified runtime index.html, scripts/, styles/, faq.html and updates.html. package-civclicker.ts is the exact deterministic recipe: run with Node 24, from the arcade repository, node --experimental-strip-types scripts/package-civclicker.ts. Rebuilding performs no network request and installs no dependencies. The original archive together with source/edition/local-edition.js contains all inputs for the modified program.

Modified October 21, 2026 by PlayDo's Arcade: remove Google Analytics, Google font fallback URLs and the GitHub API updater; use only local fonts; replace background and locked-achievement images with solid CSS; retain default civilization/ruler names without startup prompts; isolate localStorage keys to playdo.civclicker.v1 and playdo.civclicker.v1.settings; remove legacy cookie migration; report denied storage visibly while preserving text export/import; reject malformed import text; add Load Save, save guidance, viewport and a source/credits page. Existing copies of the game on other origins are unaffected. No core resource or civilization rule changes.

Icons: all 14 PNGs are unchanged copies of upstream's recolored/rasterized Game-icons.net originals, under CC-BY-3.0. Exact titles, original authors (Lorc, Delapouite, Willdabeast, Faithtoken), source URLs, modification statement and license links are in ART-CREDITS.json and source.html. Full CC-BY-3.0 license in LICENSE-CC-BY-3.0.txt.

Fonts: Lato copyright 2010-2014 tyPoland Lukasz Dziedzic, Reserved Font Name Lato, OFL-1.1; Suez One copyright 2016 Michal Sahar, OFL-1.1. Both are unmodified. Their full license texts are in fonts/*/OFL.txt. Suez One's upstream license lacked a textual copyright header; supplied per official Google Fonts ofl/suezone/OFL.txt and retained binary metadata. All original bundled Lato TTFs remain in corresponding source; only regular Lato and Suez One load in gameplay.

Dependencies: LZ-String 1.3.3, copyright (c) 2013 Pieroxy <pieroxy@pieroxy.net>, WTFPL version 2 (LICENSE-WTFPL.txt); full preferred source scripts/lz-string.js. classList.js 2014-01-31, Eli Grey, Public Domain, no warranty (declaration retained in scripts/classList.js). No other third-party runtime library and no runtime package install. Original ajax.js is retained only as preferred original source and an unused local script; live updates.html is static.

Additional October 21, 2026 review fixes: replace every native prompt/confirm/alert with bounded in-page name and confirmation dialogs. Explicit buttons and Enter handling work under the unchanged allow-scripts allow-same-origin iframe sandbox, which permits neither native modals nor form submission. Cancel returns to gameplay, including on the first Worship purchase with an empty deity name. Reset and browser-save deletion use local confirmations; deleting a save disables autosave. Names remain editable in Settings. Validate the complete nested current-edition save schema before replacing state; reject invalid syntax, unsupported versions, missing records and invalid compressed save shapes without altering current progress or deleting stored bytes. Invalid saves disable autosave and display a warning. Invalid settings JSON, null, primitives and wrong-typed fields are ignored. The new preferred helper source is source/edition/local-edition.js, copied unchanged to scripts/local-edition.js by the recipe. Imports accept this edition's complete current-format exports, rather than invoking upstream legacy migration. No resource costs, production rules or progression balance changes.
