window.calculateFinalScore = function (hiscore) {\n\t/* hiscore is a partly-completed hiscore object */\n\t/* Function returns the hiscore object with all the scores filled in */\n\n\tif (hiscore.planet)\n\t{\n\t\t/* Add score for planet attributes */\n\t\tswitch (hiscore.planet.atmosphere)\n\t\t{\n\t\t\tcase "Marginal":\t\thiscore.score_atmosphere = constants.max_score_per_planet_attribute/2; break;\n\t\t\tcase "Breathable":\thiscore.score_atmosphere = constants.max_score_per_planet_attribute; break;\n\t\t\tdefault:\t\t\t\t\t\thiscore.score_atmosphere = 0;\n\t\t}\n\n\t\tswitch (hiscore.planet.gravity)\n\t\t{\n\t\t\tcase "Low": case "High":\thiscore.score_gravity = constants.max_score_per_planet_attribute/2; break;\n\t\t\tcase "Moderate":\t\t\t\t\thiscore.score_gravity = constants.max_score_per_planet_attribute; break;\n\t\t\tdefault:\t\t\t\t\t\t\t\t\thiscore.score_gravity = 0;\n\t\t}\n\n\t\tswitch (hiscore.planet.temperature)\n\t\t{\n\t\t\tcase "Hot": case "Cold":\thiscore.score_temperature = constants.max_score_per_planet_attribute/2; break;\n\t\t\tcase "Moderate":\t\t\t\t\thiscore.score_temperature = constants.max_score_per_planet_attribute; break;\n\t\t\tdefault:\t\t\t\t\t\t\t\t\thiscore.score_temperature = 0;\n\t\t}\n\n\t\tswitch (hiscore.planet.water)\n\t\t{\n\t\t\tcase "Ice-covered surface":\n\t\t\tcase "Planet-wide ocean":\n\t\t\t\thiscore.score_water = constants.max_score_per_planet_attribute/2; break;\n\t\t\tcase "Ice caps":\n\t\t\tcase "Oceans":\n\t\t\t\thiscore.score_water = constants.max_score_per_planet_attribute; break;\n\t\t\tdefault:\n\t\t\t\thiscore.score_water = 0;\n\t\t}\n\n\t\tswitch (hiscore.planet.resources)\n\t\t{\n\t\t\tcase "Poor":\t\t\t\thiscore.score_resources = constants.max_score_per_planet_attribute/2; break;\n\t\t\tcase "Rich":\t\t\t\thiscore.score_resources = constants.max_score_per_planet_attribute; break;\n\t\t\tdefault:\t\t\t\t\t\thiscore.score_resources = 0;\n\t\t}\n\n\n\t\t/* Add score for tech and culture levels */\n\t\tswitch (hiscore.final_tech_level)\n\t\t{\n\t\t\tcase 10:\thiscore.score_technology = 3000; break;\n\t\t\tcase 9:\t\thiscore.score_technology = 2000; break;\n\t\t\tcase 8:\t\thiscore.score_technology = 1750; break;\n\t\t\tcase 7:\t\thiscore.score_technology = 1500; break;\n\t\t\tcase 6:\t\thiscore.score_technology = 1250; break;\n\t\t\tcase 5:\t\thiscore.score_technology = 1000; break;\n\t\t\tcase 4:\t\thiscore.score_technology = 800; break;\n\t\t\tcase 3:\t\thiscore.score_technology = 600; break;\n\t\t\tcase 2:\t\thiscore.score_technology = 400; break;\n\t\t\tcase 1:\t\thiscore.score_technology = 200; break;\n\t\t\tdefault:\thiscore.score_technology = 0; break;\n\t\t}\n\n\t\tswitch (hiscore.final_culture)\n\t\t{\n\t\t\tcase 17:\thiscore.score_culture = 3000; break;\n\t\t\tcase 16:\thiscore.score_culture = 2500; break;\n\t\t\tcase 15:\thiscore.score_culture = 2000; break;\n\t\t\tcase 14:\thiscore.score_culture = 1500; break;\n\t\t\tcase 13:\thiscore.score_culture = 1000; break;\n\t\t\tcase 12:\thiscore.score_culture = 500; break\n\t\t\tcase 11:\thiscore.score_culture = 250; break;\n\t\t\tcase 10:\thiscore.score_culture = 0; break;\n\t\t\tcase 9:\t\thiscore.score_culture = 2000; break;\n\t\t\tcase 8:\t\thiscore.score_culture = 1500; break;\n\t\t\tcase 7:\t\thiscore.score_culture = 1000; break;\n\t\t\tcase 6:\t\thiscore.score_culture = 500; break;\n\t\t\tcase 5:\t\thiscore.score_culture = 0; break;\n\t\t\tcase 4:\t\thiscore.score_culture = 2000; break;\n\t\t\tcase 3:\t\thiscore.score_culture = 1500; break;\n\t\t\tcase 2:\t\thiscore.score_culture = 1000; break;\n\t\t\tcase 1:\t\thiscore.score_culture = 500; break;\n\t\t\tdefault:\thiscore.score_culture = 0; break;\n\t\t}\n\n\t\tswitch (hiscore.native_relations)\n\t\t{\n\t\t\tcase 9:\t\thiscore.score_native_relations = 1000; break;\n\t\t\tcase 8:\t\thiscore.score_native_relations = 0; break;\n\t\t\tcase 7:\t\thiscore.score_native_relations = -1000; break;\n\t\t\tcase 6:\t\thiscore.score_native_relations = 2000; break;\n\t\t\tcase 5:\t\thiscore.score_native_relations = 1000; break;\n\t\t\tcase 4:\t\thiscore.score_native_relations = 0; break;\n\t\t\tcase 3:\t\thiscore.score_native_relations = -1000; break;\n\t\t\tcase 2:\t\thiscore.score_native_relations = -1000; break;\n\t\t\tcase 1:\t\thiscore.score_native_relations = -2000; break;\n\t\t\tcase 0:\t\thiscore.score_native_relations = -2000; break;\n\t\t\tcase -1:\thiscore.score_native_relations = 0; break;\n\t\t\tdefault: hiscore.score_native_relations = 0; break;\n\t\t}\n\t}\n\n\t/* Add up final score */\n\thiscore.final_score = \n\t\thiscore.score_landing +\n\t\thiscore.score_construction +\n\t\thiscore.score_native_relations +\n\t\thiscore.score_culture +\n\t\thiscore.score_technology +\n\t\thiscore.score_scientific_database +\n\t\thiscore.score_cultural_database +\n\t\thiscore.score_atmosphere +\n\t\thiscore.score_gravity +\n\t\thiscore.score_temperature +\n\t\thiscore.score_water +\n\t\thiscore.score_resources;\n\t\n\treturn hiscore;\n}
/* Display planet attribute, as if in the planet diplay table */\n/* In all cases $args[0] is whether we should display as if the scan succeeded or a surface probe was used. */\n\n<<widget displayPlanetAtmosphere>>\n\t<<if $args[0]>>\n\t\t<<switch $planet.atmosphere>>\n\t\t\t<<case "Corrosive" "Toxic" "None" "Non-breathable">>@@.bad;$planet.atmosphere@@\n\t\t\t<<case "Marginal">>@@.mediocre;$planet.atmosphere@@\n\t\t\t<<case "Breathable">>@@.good;$planet.atmosphere@@\n\t\t\t<<default>>@@.error;$planet.atmosphere@@\n\t\t<</switch>>\n\t<<else>>\n\t\t@@.destroyed;Scan failed@@\n\t<</if>>\n<</widget>>\n\n<<widget displayPlanetTemperature>>\n\t<<if $args[0]>>\n\t\t<<switch $planet.temperature>>\n\t\t\t<<case "Very hot" "Very cold">>@@.bad;$planet.temperature@@\n\t\t\t<<case "Cold" "Hot">>@@.mediocre;$planet.temperature@@\n\t\t\t<<case "Moderate">>@@.good;$planet.temperature@@\n\t\t\t<<default>>@@.error;$planet.temperature@@\n\t\t<</switch>>\n\t<<else>>\n\t\t@@.destroyed;Scan failed@@\n\t<</if>>\n<</widget>>\n\n<<widget displayPlanetGravity>>\n\t<<if $args[0]>>\n\t\t<<switch $planet.gravity>>\n\t\t\t<<case "Very high" "Very low">>@@.bad;$planet.gravity@@\n\t\t\t<<case "Low" "High">>@@.mediocre;$planet.gravity@@\n\t\t\t<<case "Moderate">>@@.good;$planet.gravity@@\n\t\t\t<<default>>@@.error;$planet.gravity@@\n\t\t<</switch>>\n\t<<else>>\n\t\t@@.destroyed;Scan failed@@\n\t<</if>>\n<</widget>>\n\n<<widget displayPlanetWater>>\n\t<<if $args[0]>>\n\t\t<<switch $planet.water>>\n\t\t\t<<case "None" "Trace">>@@.bad;$planet.water@@\n\t\t\t<<case "Ice-covered surface" "Planet-wide ocean">>@@.mediocre;$planet.water@@\n\t\t\t<<case "Ice caps" "Oceans">>@@.good;$planet.water@@\n\t\t\t<<default>>@@.error;$planet.water@@\n\t\t<</switch>>\n\t<<else>>\n\t\t@@.destroyed;Scan failed@@\n\t<</if>>\n<</widget>>\n\n<<widget displayPlanetResources>>\n\t<<if $args[0]>>\n\t\t<<switch $planet.resources>>\n\t\t\t<<case "None">>@@.bad;$planet.resources@@\n\t\t\t<<case "Poor">>@@.mediocre;$planet.resources@@\n\t\t\t<<case "Rich">>@@.good;$planet.resources@@\n\t\t\t<<default>>@@.error;$planet.resources@@\n\t\t<</switch>>\n\t<<else>>\n\t\t@@.destroyed;Scan failed@@\n\t<</if>>\n<</widget>>\n\n\n<<widget displayPlanetFeatures>>\n\t<<if !$args[0]>>\n\t\t<<if $planet.anomalies.length == 0>>\n\t\t\tNone\n\t\t<<else>>\n\t\t\t<<for _n = 0; _n < $planet.anomalies.length; _n++>>\n\t\t\t\t$planet.anomalies[_n]<br>\n\t\t\t<</for>>\n\t\t<</if>>\n\t<<else>>\n\t\t<<if $planet.surface_features.length == 0>>\n\t\t\tNone\n\t\t<<else>>\n\t\t\t<<for _n = 0; _n < $planet.surface_features.length; _n++>>\n\t\t\t\t<<displayPlanetFeature $planet.surface_features[_n]>><br>\n\t\t\t\t/*$planet.surface_features[_n]<br>*/\n\t\t\t<</for>>\n\t\t<</if>>\n\t<</if>>\n<</widget>>\n\n\n<<widget displayPlanetFeature>>\n\t/* args[0] is a string containing the name of a surface feature */\n\t/* This macro prints it in the appropriate colour */\n\t<<set _quality = "error">>\n\t<<switch $args[0]>>\n\t\t\t\t/* Moon */\n\t\t<<case "Barren moon">>\t\t\t\t<<set _quality = "mediocre">>\n\t\t<<case "Metal-rich moon">>\t\t\t<<set _quality = "good">>\n\t\t<<case "Unstable moon">>\t\t\t<<set _quality = "bad">>\n\n\t\t\t\t/* Beauty/ugliness */\n\t\t<<case "Outstanding beauty">>\t\t<<set _quality = "good">>\n\t\t<<case "Outstanding ugliness">>\t\t<<set _quality = "bad">>\n\n\t\t\t\t/* Caves */\n\t\t<<case "Airtight caves">>\t\t\t<<set _quality = "good">>\n\t\t<<case "Insulated caves">>\t\t\t<<set _quality = "good">>\n\t\t<<case "Unstable geology">>\t\t\t<<set _quality = "bad">>\n\n\t\t\t\t/* Plants */\n\t\t<<case "Plant life">>\t\t\t\t<<set _quality = "mediocre">>\n\t\t<<case "Edible plants">>\t\t\t<<set _quality = "good">>\n\t\t<<case "Poisonous plants">>\t\t\t<<set _quality = "bad">>\n\t\t<<case "Quasi-organic crystals">>\t<<set _quality = "mediocre">>\n\n\t\t\t\t/* Animals */\n\t\t<<case "Animal life">>\t\t\t\t<<set _quality = "mediocre">>\n\t\t<<case "Useful animals">>\t\t\t<<set _quality = "good">>\n\t\t<<case "Dangerous animals">>\t\t<<set _quality = "bad">>\n\n\t\t\t\t/* Intelligent life */\n\t\t<<case "Intelligent life">>\t\t\t\t\t<<set _quality = "mediocre">>\n\t\t<<case "Planet-spanning civilisation">>\t\t<<set _quality = "mediocre">>\n\n\t\t\t\t/* Ruins */\n\t\t<<case "Monumental ruins">>\t\t\t\t\t<<set _quality = "good">>\n\t\t<<case "High-tech ruins">>\t\t\t\t\t<<set _quality = "good">>\n\t\t<<case "Dangerous ruins">>\t\t\t\t\t<<set _quality = "bad">>\n\t\t<<case "Regular geological formations">>\t<<set _quality = "mediocre">>\n\n\t\t\t\t/* Special features from events */\n\t\t<<case "Welcoming">>\t\t\t\t<<set _quality = "good">>\n\t\t<<case "Unwelcoming">>\t\t\t\t<<set _quality = "bad">>\n\t\t<<case "Simulation">>\t\t\t\t<<set _quality = "mediocre">>\n\t\t<<case "Alien observers">>\t\t\t<<set _quality = "mediocre">>\n\n\t\t<<default>>\n\t\t\t@@.error;Unexpected surface feature <<print $args[0]>>.@@\n\t<</switch>>\n\n\t/* Special case for intelligent life: output tech level too */\n\t<<if $args[0] == "Intelligent life">>\n\t\t<<if $planet.native_culture == -1>>\n\t\t\t\t/% Legacy code for games saves before version 1.3.0 %/\n\t\t\t<<print "@@.mediocre;" + constants.tech_level_names[$planet.native_tech_level].toUpperFirst() + " civilisation@@">>\n\t\t<<else>>\n\t\t\t<<print "@@.mediocre;Civilisation: " + constants.tech_level_names[$planet.native_tech_level].toUpperFirst() + " " + constants.culture_names[$planet.native_culture] + "@@">>\n\t\t<</if>>\n\t<<else>>\n\t\t<<print "@@." + _quality + ";" + $args[0] + "@@">>\n\t<</if>>\n<</widget>>\n\n
<<widget displayPlanet>>\n\t\t/* $args[0] is whether to ignore scanner success/failure and show everything anyway */\n\t\t/* $args[1] is whether to have things pop up on a timer rather than all display at once */\n\t\t/* $args[2] is whether to allow launching of a surface probe (assuming we have one and haven't already used one) */\n\n\t<<set _show_atmosphere = $scanner_atmosphere_success | $args[0]>>\n\t<<set _show_temperature = $scanner_temperature_success | $args[0]>>\n\t<<set _show_gravity = $scanner_gravity_success | $args[0]>>\n\t<<set _show_water = $scanner_water_success | $args[0]>>\n\t<<set _show_resources = $scanner_resources_success | $args[0]>>\n\t<<set _show_features = $scanner_features_success | $args[0]>>\n\n\t<<if $planet.name>>Planet ''$planet.name''<br><</if>>\n\n\t<div class="planet-display-table-area">\n\n\t\t<div class="planet-display-table-section">\n\t\t\t<table>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col style="width:50%">\n\t\t\t\t\t<col style="width:50%">\n\t\t\t\t</colgroup>\n\t\t\t\t<tr style="height:1em"><td>Atmosphere:</td><td><span id="atmosphere_text">\n\t\t\t\t\t<<displayPlanetAtmosphere _show_atmosphere>>\n\t\t\t\t</span></td></tr>\n\n\t\t\t\t<tr style="height:1em"><td>Gravity:</td><td><span id="gravity_text">\n\t\t\t\t\t<<displayPlanetGravity _show_gravity>>\n\t\t\t\t</span></td></tr>\n\t\t\t\t<tr style="height:1em"><td>Temperature:</td><td><span id="temperature_text">\n\t\t\t\t\t<<displayPlanetTemperature _show_temperature>>\n\t\t\t\t</span></td></tr>\n\t\t\t\t<tr style="height:1em"><td>Water:</td><td><span id="water_text">\n\t\t\t\t\t<<displayPlanetWater _show_water>>\n\t\t\t\t</span></td></tr>\n\t\t\t\t<tr style="min-height:1em"><td>Resources:</td><td><span id="resources_text">\n\t\t\t\t\t<<displayPlanetResources _show_resources>>\n\t\t\t\t</span></td></tr>\n\t\t\t</table>\n\t\t</div>\n\n\t\t<div class="planet-display-table-section">\n\t\t\t<table>\n\t\t\t\t<colgroup>\n\t\t\t\t\t<col style="width:50%">\n\t\t\t\t\t<col style="width:50%">\n\t\t\t\t</colgroup>\n\t\t\t\t<tr><td><span id="anomalies_title_text">\n\t\t\t\t\t<<if _show_features>>Features:<<else>>Anomalies:<</if>>\n\t\t\t\t\t<br>\n\n\t\t\t\t</span></td>\n\t\t\t\t<td><span id="anomalies_text">\n\t\t\t\t\t<<displayPlanetFeatures _show_features>>\n\t\t\t\t</span></td></tr>\n\t\t\t</table>\n\t\t</div>\n\n\t</div>\n\n\t<<if $args[1]>>\n\t\t<<set _t1 = (1000 + (3000-$scanner_atmosphere*30) + random(2000)) + "ms">>\n\t\t<<timed _t1>>\n\t\t\t<<if !$surface_probe_used>><<replace '#atmosphere_text'>><<displayPlanetAtmosphere _show_atmosphere>><</replace>><</if>>\n\t\t<</timed>>\n\t\t<<set _t2 = (1000 + (3000-$scanner_gravity*30) + random(2000)) + "ms">>\n\t\t<<timed _t2>>\n\t\t\t<<if !$surface_probe_used>><<replace '#gravity_text'>><<displayPlanetGravity _show_gravity>><</replace>><</if>>\n\t\t<</timed>>\n\t\t<<set _t3 = (1000 + (3000-$scanner_temperature*30) + random(2000)) + "ms">>\n\t\t<<timed _t3>>\n\t\t\t<<if !$surface_probe_used>><<replace '#temperature_text'>><<displayPlanetTemperature _show_temperature>><</replace>><</if>>\n\t\t<</timed>>\n\t\t<<set _t4 = (1000 + (3000-$scanner_water*30) + random(2000)) + "ms">>\n\t\t<<timed _t4>>\n\t\t\t<<if !$surface_probe_used>><<replace '#water_text'>><<displayPlanetWater _show_water>><</replace>><</if>>\n\t\t<</timed>>\n\t\t<<set _t5 = (1000 + (3000-$scanner_resources*30) + random(2000)) + "ms">>\n\t\t<<timed _t5>>\n\t\t\t<<if !$surface_probe_used>><<replace '#resources_text'>><<displayPlanetResources _show_resources>><</replace>><</if>>\n\t\t<</timed>>\n\t\t<<set _t6 = (1000 + random(2000)) + "ms">>\n\t\t<<timed _t6>>\n\t\t\t<<if !$surface_probe_used>>\n\t\t\t\t<<replace '#anomalies_text'>><<displayPlanetFeatures _show_features>><</replace>>\n\t\t\t\t<<if _show_features>>\n\t\t\t\t\t<<replace '#anomalies_title_text'>>Surface features:<</replace>>\n\t\t\t\t<</if>>\n\t\t\t<</if>>\n\t\t<</timed>>\n\t<</if>>\n\n<</widget>>\n
window.decodeHiscore = function (hiscoreString) {\n\t/* Takes an encoded hiscore string */\n\t/* Returns a hiscore object */\n\t\n\t/* Set up score variables */\n\tvar hiscore = {\n\t\tfinal_tech_level: -1,\n\t\tfinal_culture: -1,\n\t\tnative_relations: -1,\n\t\tfinal_score: 0,\n\t\tscore_landing: 0,\n\t\tscore_construction: 0,\n\t\tscore_native_relations: 0,\n\t\tscore_technology: 0,\n\t\tscore_culture: 0,\n\t\tscore_scientific_database: 0,\n\t\tscore_cultural_database: 0,\n\t\tscore_atmosphere: 0,\n\t\tscore_gravity: 0,\n\t\tscore_temperature: 0,\n\t\tscore_water: 0,\n\t\tscore_resources: 0,\n\t\tsummary: "" };\n\n\tvar strings = hiscoreString.split(".");\n\n\t/* Planet string */\n\tvar planet_string = strings[0];\n\n\t/* _planet_string[0] is always "?" so ignore and start with _planet_string[1] */\n\n\tif (planet_string[1] == "X")\n\t{\n\t\t/* No planet - destroyed in space */\n\t}\n\telse\n\t{\n\t\t/* Set up planet variable */\n\t\tvar planet = {\n\t\t\ttemperature: "",\n\t\t\tgravity: "",\n\t\t\tresources: "",\n\t\t\tatmosphere: "",\n\t\t\twater: "",\n\t\t\tsurface_features: [],\n\t\t\tanomalies: [],\n\t\t\tnative_tech_level: 0\n\t\t};\n\n\t\t\t/* PLANET ATTRIBUTES */\n\t\tswitch (planet_string[1])\n\t\t{\n\t\t\tcase "b":\t\tplanet.atmosphere = "Breathable"; break;\n\t\t\tcase "m":\t\tplanet.atmosphere = "Marginal"; break;\n\t\t\tcase "v":\t\tplanet.atmosphere = "None"; break;\n\t\t\tcase "n":\t\tplanet.atmosphere = "Non-breathable"; break;\n\t\t\tcase "t":\t\tplanet.atmosphere = "Toxic"; break;\n\t\t\tcase "c":\t\tplanet.atmosphere = "Corrosive"; break;\n\t\t\tdefault:\t\tplanet.atmosphere = "ERROR: " + planet_string[1];\n\t\t}\n\n\t\tswitch (planet_string[2])\n\t\t{\n\t\t\tcase "H":\t\tplanet.gravity = "Very high"; break;\n\t\t\tcase "h":\t\tplanet.gravity = "High"; break;\n\t\t\tcase "m":\t\tplanet.gravity = "Moderate"; break;\n\t\t\tcase "l":\t\tplanet.gravity = "Low"; break;\n\t\t\tcase "L":\t\tplanet.gravity = "Very low"; break;\n\t\t\tdefault:\t\tplanet.gravity = "ERROR: " + planet_string[2];\n\t\t}\n\n\t\tswitch (planet_string[3])\n\t\t{\n\t\t\tcase "H":\t\tplanet.temperature = "Very hot"; break;\n\t\t\tcase "h":\t\tplanet.temperature = "Hot"; break;\n\t\t\tcase "m":\t\tplanet.temperature = "Moderate"; break;\n\t\t\tcase "c":\t\tplanet.temperature = "Cold"; break;\n\t\t\tcase "C":\t\tplanet.temperature = "Very cold"; break;\n\t\t\tdefault:\t\tplanet.temperature = "ERROR: " + planet_string[3];\n\t\t}\n\n\t\tswitch (planet_string[4])\n\t\t{\n\t\t\tcase "o":\t\tplanet.water = "Oceans"; break;\n\t\t\tcase "O":\t\tplanet.water = "Planet-wide ocean"; break;\n\t\t\tcase "i":\t\tplanet.water = "Ice caps"; break;\n\t\t\tcase "I":\t\tplanet.water = "Ice-covered surface"; break;\n\t\t\tcase "t":\t\tplanet.water = "Trace"; break;\n\t\t\tcase "n":\t\tplanet.water = "None"; break;\n\t\t\tdefault:\t\tplanet.water = "ERROR: " + planet_string[4];\n\t\t}\n\n\t\tswitch (planet_string[5])\n\t\t{\n\t\t\tcase "r":\t\tplanet.resources = "Rich"; break;\n\t\t\tcase "p":\t\tplanet.resources = "Poor"; break;\n\t\t\tcase "n":\t\tplanet.resources = "None"; break;\n\t\t\tdefault:\t\tplanet.resources = "ERROR: " + planet_string[5];\n\t\t}\n\n\t\t/* Any remaining characters are planet features */\n\t\tfor (var n = 6; n < planet_string.length; n++)\n\t\t{\n\t\t\tswitch (planet_string[n])\n\t\t\t{\n\t\t\t\t\t\t/* Moon */\n\t\t\t\tcase "a":\tplanet.surface_features.push("Barren moon"); break;\n\t\t\t\tcase "b":\tplanet.surface_features.push("Metal-rich moon"); break;\n\t\t\t\tcase "c":\tplanet.surface_features.push("Unstable moon"); break;\n\n\t\t\t\t\t\t/* Beauty/ugliness */\n\t\t\t\tcase "d":\tplanet.surface_features.push("Outstanding beauty"); break;\n\t\t\t\tcase "e":\tplanet.surface_features.push("Outstanding ugliness"); break;\n\n\t\t\t\t\t\t/* Caves */\n\t\t\t\tcase "f":\tplanet.surface_features.push("Airtight caves"); break;\n\t\t\t\tcase "g":\tplanet.surface_features.push("Insulated caves"); break;\n\t\t\t\tcase "h":\tplanet.surface_features.push("Unstable geology"); break;\n\n\t\t\t\t\t\t/* Plants */\n\t\t\t\tcase "i":\tplanet.surface_features.push("Plant life"); break;\n\t\t\t\tcase "j":\tplanet.surface_features.push("Edible plants"); break;\n\t\t\t\tcase "k":\tplanet.surface_features.push("Poisonous plants"); break;\n\t\t\t\tcase "l":\tplanet.surface_features.push("Quasi-organic crystals"); break;\n\n\t\t\t\t\t\t/* Animals */\n\t\t\t\tcase "m":\tplanet.surface_features.push("Animal life"); break;\n\t\t\t\tcase "n":\tplanet.surface_features.push("Useful animals"); break;\n\t\t\t\tcase "o":\tplanet.surface_features.push("Dangerous animals"); break;\n\n\t\t\t\t\t\t/* Intelligent life */\n\t\t\t\tcase "p":\tplanet.surface_features.push("Intelligent life"); break;\n\n\t\t\t\t\t\t/* Ruins */\n\t\t\t\tcase "q":\tplanet.surface_features.push("Monumental ruins"); break;\n\t\t\t\tcase "r":\tplanet.surface_features.push("High-tech ruins"); break;\n\t\t\t\tcase "s":\tplanet.surface_features.push("Dangerous ruins"); break;\n\t\t\t\tcase "t":\tplanet.surface_features.push("Regular geological formations"); break;\n\n\t\t\t\t\t\t/* Special event features */\n\t\t\t\tcase "u":\tplanet.surface_features.push("Welcoming"); break;\n\t\t\t\tcase "v":\tplanet.surface_features.push("Unwelcoming"); break;\n\t\t\t\tcase "w":\tplanet.surface_features.push("Simulation"); break;\n\t\t\t\tcase "x":\tplanet.surface_features.push("Alien observers"); break;\n\n\t\t\t\t\t\t/* Planet-spanning civilisation */\n\t\t\t\tcase "y":\tplanet.surface_features.push("Planet-spanning civilisation"); break;\n\n\t\t\t\tdefault:\tplanet.surface_features.push("ERROR: " + planet_string[n]);\n\t\t\t}\n\t\t}\n\n\t\t/* Native tech level */\n\t\tvar nativeProperties = strings[1].split("-");\n\t\tplanet.native_tech_level = Number(nativeProperties[0]);\n\t\tif (nativeProperties.length > 1) {\n\t\t\tplanet.native_culture = Number(nativeProperties[1]);\n\t\t} else {\n\t\t\tplanet.native_culture = -1;\n\t\t}\n\n\n\t\t/* Planet name */\n\t\tplanet.name = decodeURIComponent(strings[2]);\n\t\tplanet.name = planet.name.replace("%2E",".");\n\t\tplanet.name = planet.name.replace("%27","'");\n\n\t\thiscore.planet = planet;\n\t}\n\n\t/* Landing score */\n\thiscore.score_landing = Number(strings[3]);\n\n\t/* Construction score */\n\thiscore.score_construction = Number(strings[4]);\n\n\t/* Natives result */\n\thiscore.native_relations = Number(strings[5]);\n\n\t/* Technology result */\n\thiscore.final_tech_level = Number(strings[6]);\n\n\t/* Culture result */\n\thiscore.final_culture = Number(strings[7]);\n\n\t/* Scientific database */\n\thiscore.score_scientific_database = Number(strings[8]);\n\n\t/* Cultural database */\n\thiscore.score_cultural_database = Number(strings[9]);\n\n\t/* Number of planets visited -- will only be part of string for games played in version 1.2.0+ */\n\tif (strings[10])\n\t{\n\t\thiscore.planets_visited = Number(strings[10]);\n\t}\n\n\t/* Date -- will only be part of string for games played in version 1.2.2+ */\n\tif (strings[11])\n\t{\n\t\tvar dateString = strings[11].split("-");\n\t\tvar year = Number(dateString[0]);\n\t\tvar month = Number(dateString[1]) - 1;\t/* January is zero etc. */\n\t\tvar day = Number(dateString[2]);\n\t\thiscore.date = new Date(year, month, day, 0, 0, 0, 0);\n\t}\n\n\t/* Extra colonists -- will only be part of string for games played in version 1.3.0+ */\n\tif (strings[12])\n\t{\n\t\thiscore.score_extra_colonists = Number(strings[12]);\n\t}\n\n\thiscore = calculateFinalScore(hiscore);\n\t\n\treturn hiscore;\n}\n
/* args[0] should be a hiscore object */\n/* If args[1] is true, display the date, otherwise don't */\n<<widget displayScore>>\n\t<<if $args[0].planets_visited>>\n\t\t/% planets_visited property will only exist in scores saved with version 1.2.0 or higher %/\n\t\tPlanets visited: <<print $args[0].planets_visited>>\n\t\t<br><br>\n\t<</if>>\n\n\t<table class="score-table">\n\t\t<colgroup>\n\t\t\t<col>\n\t\t\t<col style="width:4em">\n\t\t</colgroup>\n\n\t\t<tr><td colspan=2>''Score''</td></tr>\n\n<<if $args[0].planet>>\n\t\t<tr><td>Planet atmosphere:</td><td style="text-align:right"><<displayColouredScore $args[0].score_atmosphere 1000>></td></tr>\n\t\t<tr><td>Planet gravity:</td><td style="text-align:right"><<displayColouredScore $args[0].score_gravity 1000>></td></tr>\n\t\t<tr><td>Planet temperature:</td><td style="text-align:right"><<displayColouredScore $args[0].score_temperature 1000>></td></tr>\n\t\t<tr><td>Planet water:</td><td style="text-align:right"><<displayColouredScore $args[0].score_water 1000>></td></tr>\n\t\t<tr><td>Planet resources:</td><td style="text-align:right"><<displayColouredScore $args[0].score_resources 1000>></td></tr>\n<</if>>\n\t\t<<if $args[0].score_landing != 0>><tr><td>Survivors after landing:</td><td style="text-align:right"><<displayColouredScore $args[0].score_landing 1000>></td></tr><</if>>\n\t\t<<if $args[0].score_construction != 0>><tr><td>Survivors after settlement construction:</td><td style="text-align:right"><<displayColouredScore $args[0].score_construction 1000>></td></tr><</if>>\n\t\t<<if $args[0].final_tech_level != -1>><tr><td>Final technology level (<<print constants.tech_level_names[$args[0].final_tech_level].toUpperFirst()>>):</td><td style="text-align:right"><<displayColouredScore $args[0].score_technology 2000>></td></tr><</if>>\n\t\t<<if $args[0].native_relations != -1>><tr><td>Native relations (<<print constants.native_relations_names[$args[0].native_relations]>>):</td><td style="text-align:right"><<displayColouredScore $args[0].score_native_relations 2000>></td></tr><</if>>\n\t\t<<if $args[0].final_culture != -1>><tr><td>Final culture (<<print constants.culture_names[$args[0].final_culture]>>):</td><td style="text-align:right"><<displayColouredScore $args[0].score_culture 2000>></td></tr><</if>>\n\t\t<<if $args[0].score_scientific_database != 0>><tr><td>Surviving scientific database × 10:</td><td style="text-align:right"><<displayColouredScore $args[0].score_scientific_database 1000>></td></tr><</if>>\n\t\t<<if $args[0].score_cultural_database != 0>><tr><td>Surviving cultural database × 10:</td><td style="text-align:right"><<displayColouredScore $args[0].score_cultural_database 1000>></td></tr><</if>>\n\t\t<tr><td>Total:</td><td style="text-align:right">''$args[0].final_score''</td></tr>\n\t</table>\n\n<</widget>>\n\n/* args[0] should be a hiscore object */\n<<widget displayHiscoreDate>>\n\t<<set _dateString = "">>\n\t<<script>>\n\t\tvar d = new Date(State.variables.args[0].date);\n\t\tTempVariables.dateString = d.toDateString();\n\t<</script>>\n\t<<print _dateString>>\n<</widget>>\n\n<<widget displayColouredScore>>\n\t/* Display $args[0] in an appropriate colour. */\n\t/* $args[0] is the number to display. */\n\t/* $args[1] is the max value for the colour scheme. */\n\t/* <<if $args[0] >= $args[1]>>\n\t\t@@.good;$args[0]@@\n\t<<elseif $args[0] > 0>>\n\t\t@@.mediocre;$args[0]@@\n\t<<else>>\n\t\t@@.bad;$args[0]@@\n\t<</if>> */\n\n\t$args[0]\n\n<</widget>>
<div id="starfield"></div>\n<div id="passages"></div>\n
/* $query_string has already been set to the string */\n\n/* Example string: ?nHHtnd.0.Arid.1000.490.-1.3.8.300.1000.1.2018-3-26 */\n\n<<set $hiscore = decodeHiscore($query_string)>>\n<<set $planet = $hiscore.planet>>\n\n\n<br><br>\n\n/* Display */\n<h1 style="text-align:center">Seedship Mission Report</h1>\n<<if $planet>>\n\t<<displayPlanet true false>><br>\n<</if>>\n<<display "Endgame Summary">><br><br>\n<<displayScore $hiscore true>>\n\n<div style="text-align:center; font-size:150%; font-weight:bold">\n<a href="https://johnayliff.itch.io/seedship">Play Seedship</a>\n</div>\n\n/% Set up background stars %/\n<<script>>\n\tfor (var n = 0; n < 200; n++)\n\t{\n\t\tvar x = randomFloat(0.0,100.0);\n\t\tvar y = randomFloat(0.0,100.0);\n\t\tvar c = random(50,200);\n\t\tvar s = random(25, 75) + "%";\n\t\tvar string = "<div style='font-size: " + s + "; position: fixed; top: " + y + "%; left: " + x + "%; color: rgb(" + c + ", " + c + ", " + c + "); text-shadow: 0px 0px 2px rgb(" + c + ", " + c + ", " + c + "); z-index:-10;'>•</div>";\n\t\tdocument.getElementById("starfield").innerHTML += string;\n\t}\n<</script>>
window.constants =\n{\n\tmobileVersion: false,\t/* Change when compiling, and also change StoryInterface */\n\tiOSVersion : false,\t\t\n\tversion: "1.3.3",\n\n\tmax_hiscores: 100,\n\n\tcontinue_text: "Continue",\n\n\tsystem_names: \n\t\t[ \t"atmosphere scanner",\n\t\t\t"gravity scanner",\n\t\t\t"temperature scanner",\n\t\t\t"resources scanner",\n\t\t\t"water scanner",\n\t\t\t"landing system",\n\t\t\t"construction system",\n\t\t\t"scientific database",\n\t\t\t"cultural database",\n\t\t\t"surface probes",\n\t\t\t"sleep chambers" ] ,\n\n\tMO_encounters_first_two:\n\t\t[\t"MO Impact Choice",\n\t\t\t"MO Comet Choice",\n\t\t\t"MO Micrometeorite",\n\t\t\t"MO Radiation Burst",\n\t\t\t"MO Overheating",\n\t\t\t"MO Black Hole",\n\t\t\t"MO Stellar Nursery"] ,\n\n\tMO_encounters_uneventful:\n\t\t[\t"MO Uneventful 1",\n\t\t\t"MO Uneventful 2",\n\t\t\t"MO Uneventful 3",\n\t\t\t"MO Uneventful 4",\n\t\t\t"MO Uneventful 5" ] ,\n\n\tMO_encounters_common:\n\t\t[\t"MO Impact Choice",\n\t\t\t"MO Comet Choice",\n\t\t\t"MO Micrometeorite",\n\t\t\t"MO Protoplanetary Disc",\n\t\t\t"MO Avoid Dust",\n\t\t\t"MO Radiation Burst",\n\t\t\t"MO Sensor Anomaly",\n\t\t\t"MO Overheating",\n\t\t\t"MO Black Hole",\n\t\t\t"MO Stellar Nursery"] ,\n\n\tMO_encounters_rare:\n\t\t[\t"MO Racist Program",\n\t\t\t"MO Trailing Drone",\n\t\t\t"MO Alien Signal",\n\t\t\t"MO Alien Derelict",\n\t\t\t"MO Alien Probe",\n\t\t\t"MO Read Databases",\n\t\t\t"MO Alien Miners",\n\t\t\t"MO Nanotech Plague",\n\t\t\t"MO Stowaways",\n\t\t\t"MO Revisionist Program",\n\t\t\t"MO Ruined Planet",\n\t\t\t"MO Crewed Ship",\n\t\t\t"MO Destination Signal",\n\t\t\t"MO Dictator",\n\t\t\t"MO Dyson Sphere",\n\t\t\t"MO Premature Awakening",\n\t\t\t"MO Reservation"],\n\n\tMO_encounters_malfunction:\n\t\t[\t"MO Probe Malfunction",\n\t\t\t"MO Computer Failure",\n\t\t\t"MO Stasis Failure",\n\t\t\t"MO System Failure",\n\t\t\t"MO Scanner Failure",\n\t\t\t"MO Power Failure",\n\t\t\t"MO Structural Weakness"] ,\n\t\t\n\n\n\ttech_level_names: \n\t\t[\t"Pre-Stone Age",\n\t\t\t"Paleolithic",\n\t\t\t"Mesolithic",\n\t\t\t"Neolithic",\n\t\t\t"Bronze Age",\n\t\t\t"Iron Age",\n\t\t\t"Medieval",\n\t\t\t"Industrial",\n\t\t\t"Atomic Age",\n\t\t\t"Information Age",\n\t\t\t"Post-Singularity"],\n\n\tculture_names: \n\t\t[\t"Savagery",\n\t\t\t"Warring Tribes",\n\t\t\t"Brutal Chieftains",\n\t\t\t"Benevolent Chieftains",\n\t\t\t"Collective Rule",\n\t\t\t"Warring States",\n\t\t\t"Slave-Based Empire",\n\t\t\t"Oppressive Theocracy",\n\t\t\t"Benevolent Monarchy",\n\t\t\t"Egalitarian Republic",\n\t\t\t"Post-Nuclear Wasteland",\n\t\t\t"Warring Superpowers",\n\t\t\t"Dystopian Police State",\n\t\t\t"Rule by Corporations",\n\t\t\t"Corrupt Democracy",\n\t\t\t"Engaged Democracy",\n\t\t\t"Post-Scarcity Utopia",\n\t\t\t"Cosmic Enlightenment"],\n\n\tnative_relations_names: \n\t\t[\t"Genocide of Colonists",\n\t\t\t"Genocide of Natives",\n\t\t\t"Colonists Enslaved",\n\t\t\t"Natives Enslaved",\n\t\t\t"Isolationism",\n\t\t\t"Friendly",\n\t\t\t"Integrated Societies",\n\t\t\t"Immigrants, Earth forgotten",\n\t\t\t"Immigrants, Earth remembered",\n\t\t\t"Immigrants, rich hybrid culture"],\n\n\talien_planet_names:\n\t\t[\t"Bartan",\n\t\t\t"Cenron",\n\t\t\t"Nalarar",\n\t\t\t"Bondal",\n\t\t\t"Ballor",\n\t\t\t"Van-Karal",\n\t\t\t"Valtane",\n\t\t\t"Vantos",\n\t\t\t"Malalas",\n\t\t\t"Mateot",\n\t\t\t"Tiris",\n\t\t\t"Kanan",\n\t\t\t"Montaan",\n\t\t\t"Tardor",\n\t\t\t"Nananon",\n\t\t\t"Moridia",\n\t\t\t"Tatloor",\n\t\t\t"La Vok",\n\t\t\t"Slorrug",\n\t\t\t"Sakani",\n\t\t\t"Vaszalu",\n\t\t\t"Varkena",\n\t\t\t"Baro",\n\t\t\t"Toran",\n\t\t\t"Hatnlant",\n\t\t\t"Uluunna",\n\t\t\t"Baroa",\n\t\t\t"Duperda",\n\t\t\t"Bantak",\n\t\t\t"Barkaan",\n\t\t\t"Ban Beraou",\n\t\t\t"Baxuor",\n\t\t\t"Rrarar",\n\t\t\t"Tina",\n\t\t\t"Zo"\n],\n\n\n\tmax_colonists: 1000,\n\tmax_probes: 10,\n\n\tplanets_visited: 0,\n\n\tscanner_atmosphere: 100,\n\tscanner_gravity: 100,\n\tscanner_temperature: 100,\n\tscanner_resources: 100,\n\tscanner_water: 100,\n\n\tsystem_landing: 100,\n\tsystem_constructors: 100,\n\tsystem_scientific_database: 100,\n\tsystem_cultural_database: 100,\n\tcolonists: 1000,\n\tsurface_probes: 10,\n\n\tscanner_atmosphere_level: 0,\n\tscanner_gravity_level: 0,\n\tscanner_temperature_level: 0,\n\tscanner_resources_level: 0,\n\tscanner_water_level: 0,\n\n\tmax_score_per_planet_attribute: 500\n}\n\nSetting.addList("stylesheet", {\n\tlabel : "Colour scheme:",\n\tlist : [0, 1, 2],\n\tdefault : 0\n});
<<set $query_string = location.search>>\n\n<<if $query_string.length == 0>>\n\t/%<<set $query_string = "?bmmorajn.9-14.Earth.1000.1000.-1.9.14.1000.1000.1.2019-6-30.0">>%/\n\t<<run window.location.replace("https://johnayliff.itch.io/seedship")>>\n<<else>>\n\t<<include [[Sharer]]>>\n<</if>>
/* Small-screen (mobile) formatting is default. Then changed for big screens. */\n\n.debug-text {\n\t/* Un-comment display:none for release */\n\tdisplay: none;\n\tpadding: 0.25em;\n\tbackground-color: #003300;\n\tborder-left: 0.5em solid #00FF00;\n}\n\n\n/* Small screens: status bar at the top with 80% text size, planet scan in one vertical table */\n#status-display {\n\tbox-sizing: border-box;\n\tbackground-color: #111;\n\tborder: solid 1px #333;\n\tposition: fixed;\n\tleft: 0;\n\ttop: 0;\n\twidth: 100%;\n\theight: 8em;\n\tpadding: 0.5em 0.5em 0em 0.5em;\t/* Top, right, bottom, left */\n\tdisplay: none;\t/* Initially hidden */\n}\n\n.status-display-colonists {\n\tdisplay: block;\n\tbox-sizing: border-box;\n\twidth: 98%;\n\tmargin-bottom: 0.5em;\n}\n\n.status-display-block {\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tbox-sizing: border-box;\n\twidth: 49%;\n}\n\n#status-display table {\n\tfont-size: 0.7em;\n\twidth: 100%;\n}\n\n#status-display td {\n\tpadding-bottom: 0.2em;\n\ttext-align: left;\n}\n\n.status-display-number-column {\n\twidth: 2em;\n}\n\n.status-display-change-column {\n\twidth: 2em;\n}\n\n#passages {\n\tmargin: 8em 0em 0em 0em;\t/* Top, right, bottom, left */\n\tpadding: 1em 0.5em;\n\tfont-size: 0.9em;\n}\n\n.front-matter #passages {\n\tmargin: 0em 0em 0em 0em;\t/* Top, right, bottom, left */\n}\n\n.skip-intro-link {\n\tposition:fixed;\n\tbottom: 20px;\n\tright: 30px;\n\tfont-size: 75%;\n\tbackground-color: #000;\n}\n\n.skip-intro-link a {\n\tfont-size: 1.0em !important;\n}\n\n#sidebar-status-display td {\n\tpadding: 0.3em 0;\n}\n\n.planet-display-table-area {\n\tdisplay: block;\n\twidth: 100%;\n\ttext-align: center;\n}\n\n.planet-display-table-section {\n\tdisplay: block;\n\tvertical-align: top;\n\twidth: 100%;\n\tmargin: 0em;\n\ttext-align: left;\n\t/*min-width: 12em;*/\n}\n\n.planet-display-table-section table {\n\twidth: 100%;\n}\n\n.main-loop-links {\n\twidth: 100%;\n\ttext-align: center;\n}\n\n.main-loop-links a {\n\tfont-size: initial;\t/* Full size font regardless of screen size, to make links easily clickable */\n\tdisplay: inline-block;\n\twidth: 40%;\n\tpadding: 0.1em 0.2em;\n\tmargin-bottom: 0.5em;\n}\n\na {\n\tdisplay: inline-block;\n\tborder: solid 1px #8af;\n\tbackground-color: #001;\n\tpadding: 0.1em 0.2em;\n\tmargin-bottom: 0.5em;\n}\n\n.disabled-hiscore-link {\n\tdisplay: inline-block;\n\tborder: solid 1px grey;\n\tcolor: grey;\n\tbackground-color: #050505;\n\tpadding: 0.1em 0.2em;\n\tmargin-bottom: 0.5em;\n}\n\n.surface-probe-link {\n\tfont-size: 0.8em;\n}\n\n.main-loop-link-spacer {\n\tdisplay: none;\n}\n\n.inline-link {\n\tpadding: initial;\n\tmargin-bottom: initial;\n}\n\n.inline-link a {\n\tpadding: initial;\n\tmargin-bottom: initial;\n}\n\n.score-table {\n\twidth: 100%;\n}\n\n.score-table td {\n\tfont-size: 0.8em;\n}\n\n.hiscore-table {\n\twidth: 100%;\n}\n\n.hiscore-table td {\n\tfont-size: 0.8em;\n}\n\n#title-screen-block {\n\ttext-align:center;\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 50%;\n\ttransform: translate(-50%, -50%);\n}\n\n\n/* Medium screens: status bar at the left with 80% text size, planet scan in one vertical table */\n@media screen and (min-width: 30em) {\n\t#status-display {\n\t\twidth: 12em;\n\t\theight: 100%;\n\t\tpadding-top: 0.5em;\n\t\tpadding-bottom: 0em;\n\t\tpadding-left: 0.5em;\n\t\tpadding-right: 0.5em;\n\t}\n\n\t#status-display table {\n\t\tfont-size: 0.8em;\n\t}\n\n\t.status-display-block {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\tmargin-bottom: 1em;\n\t}\n\n\t.status-display-colonists {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\tmargin-bottom: 1em;\n\t}\n\n\t#passages {\n\t\tmargin: 0em 0em 0em 12em;\t/* Top, right, bottom, left. */\n\t\tpadding-top: 1em;\n\t\tpadding-bottom: 1em;\n\t\tpadding-left: 4em;\n\t\tpadding-right: 4em;\n\t}\n\n\n\t.score-table {\n\t\twidth: 90%;\n\t}\n\n\t/* Big screens: status bar at the left with 100% text size, planet scan in two side-by-side tables */\n\t@media screen and (min-width: 50em) {\n\t\t#status-display {\n\t\t\twidth: 17.5em;\n\t\t\theight: 100%;\n\t\t\tpadding-left: 1.5em;\n\t\t}\n\n\t\t#passages {\n\t\t\tmargin: 0em 0em 0em 17.5em;\t/* Top, right, bottom, left. */\n\t\t\tfont-size: 1.0em;\n\t\t}\n\n\t\t.planet-display-table-section {\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: top;\n\t\t\twidth: 48%;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\n\t\t/* Normal link appearance, not buttons */\n\t\t.main-loop-links {\n\t\t\twidth: auto;\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t.main-loop-links a {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t.score-table td {\n\t\t\tfont-size: initial;\n\t\t}\n\n\t\t.hiscore-table td {\n\t\t\tfont-size: initial;\n\t\t}\n\n\t\t/* In the app version, links are always buttons, do not become text on larger screens. Link spacer is always hidden. */\n\t\t/* If this is _not_ the app version, the html element will have the web-version class */\n\t\t.web-version a {\n\t\t\tfont-size: initial;\t/* Full size font regardless of screen size, to make links easily clickable */\n\t\t\tdisplay: initial;\n\t\t\tborder: initial;\n\t\t\tpadding: initial;\n\t\t\tmargin-bottom: initial;\n\t\t\tbackground-color: initial;\n\t\t}\n\n\t\t.web-version .disabled-hiscore-link {\n\t\t\tfont-size: initial;\t/* Full size font regardless of screen size, to make links easily clickable */\n\t\t\tdisplay: initial;\n\t\t\tborder: initial;\n\t\t\tpadding: initial;\n\t\t\tmargin-bottom: initial;\n\t\t\tbackground-color: initial;\n\t\t\tcolor: grey;\n\t\t}\n\n\t\t.web-version .main-loop-link-spacer {\n\t\t\tdisplay: initial;\n\t\t}\n\t}\n\n\t/* Tall enough screens: add padding to passages and status display. */\n\t@media screen and (min-height: 20em) {\n\t\t#status-display {\n\t\t\tpadding-top: 4em;\n\t\t}\n\n\t\t#passages {\n\t\t\tpadding-top: 4em;\n\t\t\tpadding-bottom: 4em;\n\t\t}\n\n\t}\n\n\t/* Tall screens: space out lines in status display if there's enough space for it. */\n\t@media screen and (min-height: 30em) {\n\t\t#status-display td {\n\t\t\tpadding-bottom: 0.5em;\n\t\t}\n\n\t\t/* Status bar has full size text only if screen is wide and tall. */\n\t\t@media screen and (min-width: 50em) {\n\t\t\t#status-display table {\n\t\t\t\tfont-size: 1.0em;\n\t\t\t}\n\t\t}\n\t}\n}\n\n\n\nbody {\n\tbackground-color: #000;\n}\n\n\n.credits-small-text {\n\tfont-size: 0.75em;\n}\n\n.credits-small-text a {\n\tfont-size: 1.0em;\n}\n\n\n#title, #menu, #ui-bar-tray {\n\tdisplay: none;\n}\n\n.passage table {\n\tmargin: 0em 0;\n\tborder-collapse: collapse;\n\tfont-size: 100%;\n}\n.passage tr, .passage th, .passage td, .passage caption {\n\tpadding: 0px 5px;\n\tvertical-align: top;\n}\n\na:hover {\n\tcolor: #8af;\n\ttext-decoration: none;\n\ttext-shadow: 0px 0px 5px #8af;\n}\n\nh1 {\n\ttext-shadow: 0px 0px 50px #8af;\n}\n\n.scanning {\n\tcolor: grey;\n}\n\n.good {\n\tcolor: lime;\n}\n\n.mediocre {\n\tcolor: yellow;\n}\n\n.bad {\n\tcolor: red;\n}\n\n.destroyed {\n\tcolor: darkred;\n}\n\n.continue-text {\n\tfont-weight: bold;\n}\n\n.placeholder {\n\tpadding: 0.25em;\n\tbackground-color: #003333;\n\tborder-left: 0.5em solid #00FF00;\n}\n\n.fade-in {\n\ttransition: opacity 400ms ease-in;\n}\n\n#passages a.link-external:after {\n\tcontent: normal;\n}\n\n\n\n/* Style all font awesome icons */\n.fa a {\n\tdisplay: inline-block;\n\tpadding: 0.55em 0.5em 0.45em;\n\twidth: 1em;\n\theight: 1em;\n\ttext-align: center;\n\ttext-decoration: none;\n\tmargin: 5px 2px;\n\tborder-radius: 50%;\n color: white;\n\tbackground: #404040;\n\tborder: none;\n}\n\n/* Add a hover effect */\n.fa a:hover {\n\tcolor: white;\n\ttext-decoration: none;\n}\n\n/* Not using font awesome stylesheet to style these: putting the character code in the page explicitly */\n.icon-facebook a:hover {\n background: #3B5998;\n}\n\n.icon-facebook a:before {\n content: "\sf09a";\n}\n\n.icon-twitter a:hover {\n background: #55ACEE;\n}\n\n.icon-twitter a:before {\n content: "\sf099";\n}\n\n.icon-home a:hover {\n background: green;\n}\n\n.icon-home a:before {\n content: "\sf015";\n}\n\n.icon-chain a:hover {\n background: green;\n}\n\n.icon-chain a:before {\n content: "\sf0c1";\n}\n\n\n#starfield {\n -webkit-user-select: none; /* Chrome, Opera, Safari */\n -moz-user-select: none; /* Firefox 2+ */\n -ms-user-select: none; /* IE 10+ */\n user-select: none; /* Standard syntax */\n\toverflow:hidden;\n\tcursor:default;\n\tz-index:-10;\n}\n\n.title-screen-patreon-button {\n\tposition: absolute;\n\tbottom: 20px;\n\tleft: 20px;\n\topacity: 0.15;\n\twidth: 100px;\n\tmax-width: 25%;\n\theight: auto;\n}\n\n.title-screen-patreon-button img {\n\twidth: 100%;\n\theight: auto;\n}\n\n.title-screen-patreon-button:hover {\n\topacity: 0.3;\n}\n\n.title-screen-patreon-button a {\n\tborder: 0px none transparent;\n}\n\n\n.title-screen-support-area {\n\tposition: absolute;\n\tbottom: 20px;\n\tleft: 20px;\n\theight: auto;\n\tmargin-bottom: 0.5em;\n\topacity: 0.8;\n}\n\n.title-screen-version-number {\n\ttext-align:center;\n\tposition: absolute;\n\ttop: 5px;\n\tright: 5px;\n\tfont-size: 60%;\n\topacity: 0.8;\n}\n\n.title-screen-app-store-area {\n\tposition: absolute;\n\tbottom: 20px;\n\tright: 20px;\n\twidth: 150px;\n\tmax-width: 25%;\n\theight: auto;\n\ttext-align: center;\n}\n\n/* Google play image has padding in the image, whereas the app store one has to have it added in css */\n#google-play-image {\n\twidth: 150px;\n\tmax-width: 100%;\n\theight: auto;\n\tbox-sizing: border-box;\n}\n\n#app-store-image {\n\twidth: 150px;\n\tmax-width: 100%;\n\theight: auto;\n\tbox-sizing: border-box;\n\tpadding: 0% 6.5%;\n}\n\n.title-screen-app-store-area a {\n\tborder: none;\n\tbackground-color: transparent;\n\tpadding: 0em;\n\tmargin-bottom: 0em;\n}\n\n.title-screen-lod-toggle-area {\n\tposition: absolute;\n\tbottom: 20px;\n\tleft: 50%;\n\ttransform: translate(-50%, 0);\n\theight: auto;\n\tmargin-bottom: 0.5em;\n}\n\n.title-screen-toggle-dol {\n\tdisplay: none;\n}\n\n.dark-on-light .title-screen-toggle-dol {\n\tdisplay: initial;\n}\n\n.title-screen-toggle-lod {\n\tdisplay: initial;\n}\n\n.dark-on-light .title-screen-toggle-lod {\n\tdisplay: none;\n}\n\n\n.end-game-patreon-button {\n\tdisplay: inline-block;\n\tvertical-align: -32%;\n\topacity: 0.5;\n\twidth: 80px;\n\theight: auto;\n}\n\n.end-game-patreon-button img {\n\twidth: 100%;\n\theight: auto;\n}\n\n.end-game-patreon-button a {\n\tborder: 0px none transparent;\n}\n\n.end-game-patreon-button:hover {\n\topacity: 1.0;\n}\n\n\n\n/* Dark-on-light style -- toggleable from options */\n.dark-on-light {\n\tcolor: #000000;\n}\n\n.dark-on-light body {\n\tbackground: #FFFFFF;\n}\n\n.dark-on-light #status-display {\n\tbackground-color: #CCC;\n\tborder: solid 1px #333;\n}\n\n.dark-on-light a {\n\tcolor: #000099;\n\tbackground: none;\n}\n\n.dark-on-light .disabled-hiscore-link {\n\tbackground: none;\n}\n\n.dark-on-light .scanning {\n\tcolor: grey;\n}\n\n.dark-on-light .good {\n\tcolor: #009900;\n}\n\n.dark-on-light .mediocre {\n\tcolor: #333300;\n}\n\n.dark-on-light .bad {\n\tcolor: #990000;\n}\n\n.dark-on-light .destroyed {\n\tcolor: #993333;\n}\n\n.dark-on-light .fa a {\n color: white;\n\tbackground: #404040;\n}\n\n\n.dark-on-light .icon-facebook a:hover {\n background: #3B5998;\n}\n\n.dark-on-light .icon-twitter a:hover {\n background: #55ACEE;\n}\n\n.dark-on-light .icon-home a:hover {\n background: green;\n}\n\n\n.dark-on-light .skip-intro-link {\n\tbackground-color: #FFF;\n}\n\n.dark-on-light .title-screen-patreon-button img {\n\tbackground: #000;\n\tpadding: 0.1em;\n}\n\n.dark-on-light .title-screen-patreon-button {\n\topacity: 0.75;\n}\n\n.dark-on-light .title-screen-patreon-button:hover {\n\topacity: 1.0;\n}\n\n.dark-on-light .end-game-patreon-button img {\n\tbackground: #000;\n\tpadding: 0.1em;\n}\n\n.dark-on-light .end-game-patreon-button {\n\topacity: 0.75;\n}\n\n.dark-on-light .end-game-patreon-button:hover {\n\topacity: 1.0;\n}\n\n\n.dark-on-light h1 {\n\ttext-shadow: 0px 0px 50px #000;\n}\n\n\n\n.colourblind .good {\n\tcolor: cyan;\n}
<<if !$planet>>\n\tThe wreck of the seedship drifts dead and inert in interstellar space.\n\n<<else>>\n\t<<if $hiscore.score_landing > 0>>\n\t\t<<set _planet_name = $planet.name>>\n\t<<else>>\n\t\t<<set _planet_name = "The unnamed planet">>\n\t<</if>>\n\t/* Landscape */\n\t<<if $planet.water == "Planet-wide ocean">>\n\t\t<<switch $planet.gravity>>\n\t\t\t<<case "Very low">>_planet_name's ocean tosses with slow, kilometres-high waves, beneath\n\t\t\t<<case "Low">>_planet_name's ocean tosses with slow, tall waves, beneath\n\t\t\t<<case "Moderate">>_planet_name's ocean stretches to the horizon\n\t\t\t<<case "High">>_planet_name's calm ocean stretches to the horizon\n\t\t\t<<case "Very high">>_planet_name's mirror-flat ocean beneath\n\t\t\t<<default>>@@.error;Unexpected gravity value $gravity.@@\n\t\t<</switch>>\n\t<<elseif $planet.surface_features.includes("Plant life")\n\t\t\t| $planet.surface_features.includes("Edible plants")\n\t\t\t| $planet.surface_features.includes("Poisonous plants")>>\n\t\t<<switch $planet.gravity>>\n\t\t\t<<case "Very low">>_planet_name's impossibly slender alien plants reach kilometres into\n\t\t\t<<case "Low">>_planet_name's tall alien plants reach hundreds of metres into\n\t\t\t<<case "Moderate">>_planet_name's alien forests stretch away beneath\n\t\t\t<<case "High">>_planet_name's squat, thick-limbed alien plants stretch away beneath\n\t\t\t<<case "Very high">>_planet_name's level fields of alien moss stretch away beneath\n\t\t\t<<default>>@@.error;Unexpected gravity value $gravity.@@\n\t\t<</switch>>\n\t<<elseif $planet.water == "Ice-covered surface">>\n\t\t<<switch $planet.gravity>>\n\t\t\t<<case "Very low">>\n\t\t\t\t<<if $planet.name>>\n\t\t\t\t\tKilometres-high spires of ice reach from _planet_name's ice sheet into\n\t\t\t\t<<else>>\n\t\t\t\t\tKilometres-high spires of ice reach from the unnamed planet's ice sheet into\n\t\t\t\t<</if>>\n\t\t\t<<case "Low">>\n\t\t\t\t<<if $planet.name>>\n\t\t\t\t\tTall, jagged spires of ice reach from _planet_name's ice sheet into\n\t\t\t\t<<else>>\n\t\t\t\t\tTall, jagged spires of ice reach from the unnamed planet's ice sheet into\n\t\t\t\t<</if>>\n\t\t\t<<case "Moderate">>_planet_name's landscape of jagged shards of ice stretches away beneath\n\t\t\t<<case "High">>_planet_name's crumpled plain of ice stretches away beneath\n\t\t\t<<case "Very high">>_planet_name's perfectly flat ice sheet stretches away beneath\n\t\t\t<<default>>@@.error;Unexpected gravity value $gravity.@@\n\t\t<</switch>>\n\t<<elseif $planet.atmosphere == "None">>\n\t\t<<switch $planet.gravity>>\n\t\t\t<<case "Very low">>_planet_name's jagged landscape of high crater walls and towering shards of rock stretches away beneath\n\t\t\t<<case "Low">>_planet_name's jagged, cratered landscape stretches away beneath\n\t\t\t<<case "Moderate">>_planet_name's perfectly still, cratered landscape stretches away beneath\n\t\t\t<<case "High">>_planet_name's perfectly still landscape, flat except for a few shallow craters, stretches away beneath\n\t\t\t<<case "Very high">>_planet_name's perfectly still, flat landscape stretches away beneath\n\t\t\t<<default>>@@.error;Unexpected gravity value $gravity.@@\n\t\t<</switch>>\n\t<<else>>\n\t\t<<switch $planet.gravity>>\n\t\t\t<<case "Very low">>_planet_name's landscape of spindly rock outcroppings and impossibly tall mountains stretches away beneath\n\t\t\t<<case "Low">>_planet_name's landscape of huge boulders and towering mountains stretches away beneath\n\t\t\t<<case "Moderate">>_planet_name's barren, rocky landscape stretches away beneath\n\t\t\t<<case "High">>_planet_name's flat, rocky landscape stretches away beneath\n\t\t\t<<case "Very high">>_planet_name's perfectly flat, barren landscape stretches away beneath\n\t\t\t<<default>>@@.error;Unexpected gravity value $gravity.@@\n\t\t<</switch>>\n\t<</if>>\n\n\t/* Sky */\n\t<<switch $planet.atmosphere>>\n\t\t<<case "Breathable">>\n\t\t\ta blue sky.\n\t\t<<case "Marginal">>\n\t\t\ta pale blue sky.\n\t\t<<case "None">>\n\t\t\ta black, star-studded sky.\n\t\t<<case "Non-breathable">>\n\t\t\tan alien sky.\n\t\t<<case "Toxic">>\n\t\t\ta poisonous sky.\n\t\t<<case "Corrosive">>\n\t\t\ta sky filled with corrosive clouds.\n\t\t<<default>>\n\t\t\t@@.error;Unexpected atmosphere $planet.atmosphere@@\n\t<</switch>>\n\n\t/% Alien observation posts for the Reservation feature %/\n\t<<if $planet.surface_features.includes("Alien observers")>>\n\t\tAt night, the orbiting alien structures are visible as a glittering band across the stars.\n\t<</if>>\n\n\t<<if $hiscore.final_culture == -1>>\n\t\t<<if $hiscore.summary == "Crash">>\n\t\t\tThe fragments of the crashed seedship\n\t\t<<else>>\n\t\t\tThe ruins of the colony\n\t\t<</if>>\n\t\t\n\t\t<<if $planet.water == "Planet-wide ocean">>\n\t\t\tdecay at the bottom of the planet-wide ocean.\n\t\t<<elseif $planet.water == "Ice-covered surface">>\n\t\t\tlie embedded in the planet-wide ice sheet.\n\t\t<<elseif $planet.surface_features.includes("Animal life")\n\t\t\t\t| $planet.surface_features.includes("Useful animals")\n\t\t\t\t| $planet.surface_features.includes("Dangerous animals")>>\n\t\t\tare overgrown with alien plants and overrun by alien animals.\n\t\t<<elseif $planet.surface_features.includes("Plant life")\n\t\t\t\t| $planet.surface_features.includes("Edible plants")\n\t\t\t\t| $planet.surface_features.includes("Poisonous plants")>>\n\t\t\tare overgrown with alien plants.\n\t\t<<else>>\n\t\t\tlie on the rocky surface.\n\t\t<</if>>\n\t\t\n\t\t<<if $hiscore.native_relations == 2>>\n\t\t\tThe colonists' descendants live on as slaves to the intelligent natives, but they have lost all knowledge of Earth.\n\t\t<<elseif $hiscore.native_relations == 0>>\n\t\t\tNearby stand monuments built by the planet's native inhabitants to celebrate their victory over the invaders.\n\t\t<<elseif $planet.surface_features.includes("Intelligent life")>>\n\t\t\tThe planet's intelligent natives explore the ruins, but not enough remains for them to learn anything about the extinct human race.\n\t\t<</if>>\n\t\t\n\t<<else>>\n\t\tThe colonists live in \n\t\t<<if $planet.surface_features.includes("Planet-spanning civilisation")>>\n\t\t\ttheir own communities within the natives'\n\t\t<</if>>\n\n\n\t\t<<if $hiscore.final_tech_level > 2>>\n\t\t\t<<switch $planet.gravity>>\n\t\t\t\t<<case "Very low">>towering\n\t\t\t\t<<case "Low">>tall\n\t\t\t\t<<case "High">>squat\n\t\t\t\t<<case "Very high">>low, sprawling\n\t\t\t<</switch>>\n\t\t<</if>>\n\n\t\t<<switch $hiscore.final_tech_level>>\n\t\t\t<<case 10>>\thigh-tech cities\n\t\t\t<<case 9>>\tcities of steel and glass\n\t\t\t<<case 8>>\tcities of steel and concrete\n\t\t\t<<case 7>>\tsmog-filled Industrial cities\n\t\t\t<<case 6 5 4 3>>stone-walled cities\n\t\t\t<<case 2>>\tfarming villages\n\t\t\t<<case 1 0>>wandering hunter-gatherer tribes\n\t\t\t<<default>>@@.error;Unexpected final tech level $hiscore.final_tech_level@@\n\t\t<</switch>>\n\n\t\t<<if $planet.atmosphere == "Breathable"\n\t\t\t\t& $planet.temperature == "Moderate">>\n\t\t\tbeneath the planet's open sky,\n\t\t<<elseif ($planet.atmosphere == "Breathable" | $planet.atmosphere == "Marginal")\n\t\t\t\t& ($planet.temperature == "Cold" | $planet.temperature == "Moderate" | $planet.temperature == "Hot")>>\n\t\t\twith buildings sealed against the planet's harsh environment,\n\t\t<<elseif $planet.surface_features.includes("Airtight caves") | $planet.surface_features.includes("Insulated caves") >>\n\t\t\tinside airtight caves,\n\t\t<<else>>\n\t\t\tunder airtight domes,\n\t\t<</if>>\n\n\t\t<<switch $planet.water>>\n\t\t\t<<case "Planet-wide ocean">>\n\t\t\t\ton platforms floating on the planet-wide ocean.\n\t\t\t<<case "Ice-covered surface">>\n\t\t\t\ton top of the planet-wide ice sheet.\n\t\t\t<<case "None" "Trace">>\n\t\t\t\tgathered around water production plants.\n\t\t\t<<case "Ice caps">>\n\t\t\t\tby lakes of water melted from the planet's ice caps.\n\t\t\t<<case "Oceans">>\n\t\t\t\tbeside rivers that flow into the planet's oceans.\n\t\t\t<<default>>\n\t\t\t\t@@.error;Unexpected water value $planet.water@@\n\t\t<</switch>>\n\n\t\t<<switch constants.culture_names[$hiscore.final_culture]>>\n\t\t\t<<case "Cosmic Enlightenment">>\n\t\t\t\tThey live lives of peace and spiritual fulfilment beyond the dreams of their ancestors on Earth, guided by a combination of human and alien philosophy.\n\n\t\t\t<<case "Post-Scarcity Utopia">>\n\t\t\t\tThey spend their time pursuing art, leisure, and spiritual fulfilment, while automatic machines take care of their material needs.\n\t\t\t<<case "Engaged Democracy">>\n\t\t\t\tThey live happy and fulfilled lives under the guidance of selfless elected officials.\n\t\t\t<<case "Corrupt Democracy">>\n\t\t\t\tPoverty, exploitation and crime are rife, and the corrupt elected government does little to alleviate them.\n\t\t\t<<case "Rule by Corporations">>\n\t\t\t\tThe cities are dominated by the headquarters of wealthy corporations that rule the population for their owners' enrichment.\n\t\t\t<<case "Dystopian Police State">>\n\t\t\t\tThe streets are filled with security cameras and patrolled by armed police who violently put down any hint of dissent.\n\t\t\t<<case "Warring Superpowers">>\n\t\t\t\tThe cities are surrounded by military bases and nuclear missile silos, and the population lives in fear of both the other nations' armies and their own nation's secret police.\n\t\t\t<<case "Post-Nuclear Wasteland">>\n\t\t\t\tThe cities are in ruins, and the survivors of the nuclear war survive as best they can in the wreckage of human civilisation.\n\n\t\t\t<<case "Egalitarian Republic">>\n\t\t\t\tThe cities are built around parliament buildings, where assemblies of citizens rule for the good of all.\n\t\t\t<<case "Benevolent Monarchy">>\n\t\t\t\tThe cities are built around royal palaces, from which beloved monarchs rule the population wisely.\n\t\t\t<<case "Oppressive Theocracy">>\n\t\t\t\tThe cities are dominated by temples to the state religion which controls every aspect of people's lives.\n\t\t\t<<case "Slave-Based Empire">>\n\t\t\t\tThe cities are dominated by the palaces of the emperors, who live in luxury while the population toils to support them.\n\t\t\t<<case "Warring States">>\n\t\t\t\tThe cities are dominated by barracks housing their vast armies, which regularly attack other cities.\n\n\t\t\t<<case "Collective Rule">>\n\t\t\t\tThe tribes are ruled collectively by their members, and each member is afforded equal status.\n\t\t\t<<case "Benevolent Chieftains">>\n\t\t\t\tEach tribe is ruled by a chieftain, who guides the people as wisely as he or she is able.\n\t\t\t<<case "Brutal Chieftains">>\n\t\t\t\tEach tribe lives in fear of its brutal chieftain.\n\t\t\t<<case "Warring Tribes">>\n\t\t\t\tMuch of the tribes' resources are devoted to fighting continual wars with one another.\n\t\t\t<<case "Savagery">>\n\t\t\t\tThe people live like animals, having forgotten almost all of their language and culture.\n\t\t\t<<default>>\n\t\t\t\t@@.error;Unexpected final culture $hiscore.final_culture@@\n\t\t<</switch>>\n\n\t\t<<switch constants.native_relations_names[$hiscore.native_relations]>>\n\t\t\t<<case "Immigrants, Earth remembered">>\n\t\t\t\tThe humans live as immigrants inside the alien society, with a strong memory of Earth's cultural heritage that enhances the native culture.\n\t\t\t<<case "Immigrants, Earth forgotten">>\n\t\t\t\tThe humans live as immigrants inside the alien society, and have forgotten most of the cultural heritage of Earth.\n\t\t\t\t\n\t\t\t<<case "Integrated Societies">>\n\t\t\t\tMany of the planet's native inhabitants live in the human communities, and the colonists' culture has been enriched by alien influences.\n\t\t\t<<case "Friendly">>\n\t\t\t\tTraders and diplomats from the planet's native nations are occasionally seen in the colonists' communities.\n\t\t\t<<case "Isolationism">>\n\t\t\t\tThe colonists' culture mostly ignores the native inhabitants, who live in their own communities in other parts of the planet.\n\t\t\t<<case "Natives Enslaved">>\n\t\t\t\tMuch of the labour in human communities is performed by a downtrodden alien slave caste that is all that remains of the planet's native civilisation.\n\t\t\t<<case "Genocide of Natives">>\n\t\t\t\tRuins and mass graves are all that remains of the planet's native civilisation.\n\t\t<</switch>>\n\n\t\t\n\t\t<<if $planet.surface_features.includes("Planet-spanning civilisation")>>\n\t\t\tAt the seedship's landing site\n\t\t<<else>>\n\t\t\tIn the\n\t\t\t<<if constants.culture_names[$hiscore.final_culture] == "Post-Nuclear Wasteland" | $hiscore.final_tech_level < 2>>\n\t\t\t\truins of the\n\t\t\t<</if>>\n\t\t\tfirst city\n\t\t<</if>>\n\t\t<<set _journey_deaths = (constants.max_colonists+$hiscore.score_extra_colonists)-$hiscore.score_landing>>\n\t\t<<set _construction_deaths = $hiscore.score_landing-$hiscore.score_construction>>\n\t\t<<if _journey_deaths > 0 & _construction_deaths > 0>>\n\t\t\tstand monuments to the _journey_deaths colonists who did not survive the journey,\n\t\t\tthe _construction_deaths more who died building the first settlement, and\n\t\t<<elseif _journey_deaths > 0>>\n\t\t\tstand monuments to the _journey_deaths colonists who did not survive the journey and\n\t\t<<elseif _construction_deaths > 0>>\n\t\t\tstand monuments to the _construction_deaths colonists who died building the first settlement and\n\t\t<<else>>\n\t\t\tstands a monument to\n\t\t<</if>>\n\t\tthe seedship AI that guided humanity to its new home.\n\t<</if>>\n<</if>>\n\n\n\n
John Ayliff
window.getHiscoreShareText = function(hiscore) {\n\tvar planet = hiscore.planet;\n\n\tif ( !planet) {\n\t\treturn "Destroyed in space.";\n\t} else if ( hiscore.score_landing <= 0) {\n\t\treturn "Crash!";\n\t} else if ( hiscore.score_construction <= 0) {\n\t\treturn "Construction failure on planet " + planet.name + ".";\n\t} else if ( hiscore.final_tech_level == -1) {\n\t\treturn "Long-term technological failure on planet " + planet.name + ".";\n\t} else if ( hiscore.native_relations == 2) {\n\t\treturn "Enslaved by the natives of planet " + planet.name + ".";\n\t} else if ( hiscore.native_relations == 0) {\n\t\treturn "Wiped out by the natives of planet " + planet.name + ".";\n\t} else {\n\t\tswitch ( constants.culture_names[hiscore.final_culture])\n\t\t{\n\t\t\tcase "Cosmic Enlightenment":\n\t\t\t\treturn "Cosmically enlightened " + constants.tech_level_names[hiscore.final_tech_level] + " civilisation on planet " + planet.name + "."; break;\n\n\t\t\tcase "Post-Scarcity Utopia":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " post-scarcity utopia on planet " + planet.name + "."; break;\n\t\t\tcase "Engaged Democracy":\n\t\t\t\treturn "Engaged " + constants.tech_level_names[hiscore.final_tech_level] + " democracy on planet " + planet.name + "."; break;\n\t\t\tcase "Corrupt Democracy":\n\t\t\t\treturn "Corrupt " + constants.tech_level_names[hiscore.final_tech_level] + " democracy on planet " + planet.name + "."; break;; break;\n\t\t\tcase "Rule by Corporations":\n\t\t\t\treturn "Ruled by " + constants.tech_level_names[hiscore.final_tech_level] + " corporations on planet " + planet.name + "."; break;\n\t\t\tcase "Dystopian Police State":\n\t\t\t\treturn "Dystopian " + constants.tech_level_names[hiscore.final_tech_level] + " police state on planet " + planet.name + "."; break;\n\t\t\tcase "Warring Superpowers":\n\t\t\t\treturn "Warring " + constants.tech_level_names[hiscore.final_tech_level] + " superpowers on planet " + planet.name + "."; break;\n\t\t\tcase "Post-Nuclear Wasteland":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " civilisation destroyed by nuclear war on planet " + planet.name + "."; break;\n\n\t\t\tcase "Egalitarian Republic":\n\t\t\t\treturn "Egalitarian " + constants.tech_level_names[hiscore.final_tech_level] + " republic on planet " + planet.name + "."; break;\n\t\t\tcase "Benevolent Monarchy":\n\t\t\t\treturn "Benevolent " + constants.tech_level_names[hiscore.final_tech_level] + " monarchy on planet " + planet.name + "."; break;\n\t\t\tcase "Oppressive Theocracy":\n\t\t\t\treturn "Oppressive " + constants.tech_level_names[hiscore.final_tech_level] + " theocracy on planet " + planet.name + "."; break;\n\t\t\tcase "Slave-Based Empire":\n\t\t\t\treturn "Slave-based " + constants.tech_level_names[hiscore.final_tech_level] + " empire on planet " + planet.name + "."; break;\n\t\t\tcase "Warring States":\n\t\t\t\treturn "Warring " + constants.tech_level_names[hiscore.final_tech_level] + " states on planet " + planet.name + "."; break;\n\n\t\t\tcase "Collective Rule":\n\t\t\t\treturn "Communal " + constants.tech_level_names[hiscore.final_tech_level] + " tribes on planet " + planet.name + "."; break;\n\t\t\tcase "Benevolent Chieftains":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " tribes ruled by benevolent chieftains on planet " + planet.name + "."; break;\n\t\t\tcase "Brutal Chieftains":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " tribes ruled by brutal chieftains on planet " + planet.name + "."; break;\n\t\t\tcase "Warring Tribes":\n\t\t\t\treturn "Warring " + constants.tech_level_names[hiscore.final_tech_level] + " tribes on planet " + planet.name + "."; break;\n\t\t\tcase "Savagery":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst + " savagery on planet " + planet.name + "."; break;\n\t\t\tdefault:\n\t\t\t\treturn "ERROR: Unexpected values culture:" + hiscore.final_culture + ", tech: " + hiscore.final_tech_level;\n\t\t}\n\t}\n\n}\n
Seedship Mission Report
window.getHiscoreSummary = function(hiscore) {\n\tvar planet = hiscore.planet;\n\n\tif ( !planet) {\n\t\treturn "Destroyed in space";\n\t} else if ( hiscore.score_landing <= 0) {\n\t\treturn "Crash";\n\t} else if ( hiscore.score_construction <= 0) {\n\t\treturn "Construction Failure";\n\t} else if ( hiscore.final_tech_level == -1) {\n\t\treturn "Long-term Technological Failure";\n\t} else if ( hiscore.native_relations == 2) {\n\t\treturn "Enslaved by Natives";\n\t} else if ( hiscore.native_relations == 0) {\n\t\treturn "Killed by Natives";\n\t} else {\n\t\tswitch ( constants.culture_names[hiscore.final_culture])\n\t\t{\n\t\t\tcase "Cosmic Enlightenment":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " Cosmic Enlightenment"; break;\n\n\t\t\tcase "Post-Scarcity Utopia":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " Post-Scarcity Utopia"; break;\n\t\t\tcase "Engaged Democracy":\n\t\t\t\treturn "Engaged " + constants.tech_level_names[hiscore.final_tech_level] + " Democracy"; break;\n\t\t\tcase "Corrupt Democracy":\n\t\t\t\treturn "Corrupt " + constants.tech_level_names[hiscore.final_tech_level] + " Democracy"; break;\n\t\t\tcase "Rule by Corporations":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " Corporate Rule"; break;\n\t\t\tcase "Dystopian Police State":\n\t\t\t\treturn "Dystopian " + constants.tech_level_names[hiscore.final_tech_level] + " Police State"; break;\n\t\t\tcase "Warring Superpowers":\n\t\t\t\treturn "Warring " + constants.tech_level_names[hiscore.final_tech_level] + " Superpowers"; break;\n\t\t\tcase "Post-Nuclear Wasteland":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " Post-Nuclear Wasteland"; break;\n\n\t\t\tcase "Egalitarian Republic":\n\t\t\t\treturn "Egalitarian " + constants.tech_level_names[hiscore.final_tech_level] + " Republic"; break;\n\t\t\tcase "Benevolent Monarchy":\n\t\t\t\treturn "Benevolent " + constants.tech_level_names[hiscore.final_tech_level] + " Monarchy"; break;\n\t\t\tcase "Oppressive Theocracy":\n\t\t\t\treturn "Oppressive " + constants.tech_level_names[hiscore.final_tech_level] + " Theocracy"; break;\n\t\t\tcase "Slave-Based Empire":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " Slave Empire"; break;\n\t\t\tcase "Warring States":\n\t\t\t\treturn "Warring " + constants.tech_level_names[hiscore.final_tech_level] + " States"; break;\n\n\t\t\tcase "Collective Rule":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " Collective Rule"; break;\n\t\t\tcase "Benevolent Chieftains":\n\t\t\t\treturn "Benevolent " + constants.tech_level_names[hiscore.final_tech_level] + " Chieftains"; break;\n\t\t\tcase "Brutal Chieftains":\n\t\t\t\treturn "Brutal " + constants.tech_level_names[hiscore.final_tech_level] + " Chieftains"; break;\n\t\t\tcase "Warring Tribes":\n\t\t\t\treturn "Warring " + constants.tech_level_names[hiscore.final_tech_level] + " Tribes"; break;\n\t\t\tcase "Savagery":\n\t\t\t\treturn constants.tech_level_names[hiscore.final_tech_level].toUpperFirst() + " Savagery"; break;\n\t\t\tdefault:\n\t\t\t\treturn "ERROR: Unexpected values culture:" + hiscore.final_culture + ", tech: " + hiscore.final_tech_level;\n\t\t}\n\t}\n\n}\n