Skip to content
Tech News
← Back to articles

Seedship – Text-Based Game

read original get Google Nest Mini → more articles

<<widget damageSystem>>

\t/* Silently apply damage to a system */

\t/* args[0] should be the name of the system */

\t/* args[1] should be the amount of damage */

\t<<switch $args[0]>>

\t\t<<case "atmosphere scanner">>

\t\t\t<<set $scanner_atmosphere -= Math.min($args[1],$scanner_atmosphere)>>

\t\t\t<<set $new_integrity = $scanner_atmosphere>>

\t\t<<case "gravity scanner">>

\t\t\t<<set $scanner_gravity -= Math.min($args[1],$scanner_gravity)>>

... continue reading