awlite

POSIX AWK port of Text Elite game
git clone git://git.luxferre.top/awlite.git
Log | Files | Refs | README

commit a981a3a310de1a8745cc739fb8d69add3a0f5e84
parent 2a5474522b7a8951f28ebfa4871a7c57e291cadf
Author: Luxferre <lux@ferre>
Date:   Mon, 22 Jan 2024 22:07:11 +0200

Bump to v1.6.1: Raxxla hint

Diffstat:
MREADME | 5+++--
Mawlite.awk | 7+++++--
2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/README b/README @@ -56,7 +56,7 @@ Fuel price is fixed at 0.2 CR/LY, you can hold 7LY of fuel at most. == Gameplay differences from the original TE 1.5 C version == -As of the current version, 1.6: +As of the current version, 1.6.1: * multiple typos corrected in text strings * the "cash" and "sneak" commands were removed since v1.6 @@ -72,6 +72,7 @@ As of the current version, 1.6: "Liquor/Wines" to "Liquors", "Gem-Strones" to "Gem-stones" * market and local info tables are better aligned * state saving/loading functionality introduced with "save"/"load" commands +* since v1.6.1, the game gives you a hint if you might have found Raxxla To be continued. This list is expected to grow in the future. @@ -131,7 +132,7 @@ In version 1.5.8, the commands "sneak" and "cash" were there in a special "cheat mode" to preserve backward compatibilty with some trading scripts written for the original Text Elite versions. Once it was proven the scripts won't work correctly anyway, the cheat mode was removed starting with awlite -1.6. You can manipulate the savefiles to achieve the same functionality if +v1.6. You can manipulate the savefiles to achieve the same functionality if you really need to cheat. - Why don't the scripts give the same results as for the original TE.EXE? diff --git a/awlite.awk b/awlite.awk @@ -1,5 +1,5 @@ # awlite: POSIX AWK port of Text Elite -# Version 1.6.0 +# Version 1.6.1 # Original high-level algorithms from Text Elite 1.5 by Ian Bell, 1999, 2015 # Porting, corrections, improvements and optimizations by Luxferre, 2024 # @@ -18,6 +18,7 @@ # - market and local info tables are better aligned # - the "cash" and "sneak" commands are removed since v1.6 (use saves to cheat) # - state saving functionality since v1.6 with "save" and "load" commands +# - since 1.6.1, the game gives you a hint if you might have found Raxxla # ... to be continued ... # utility functions @@ -309,6 +310,8 @@ function prisys(sinfo, compressed) { printf("\nRadius: %u", sinfo["radius"]) printf("\nPopulation: %u billion\n", int(sinfo["population"]/8)) goat_soup("\217 is \227.", sinfo) # generate and print the description + if(match(sinfo["name"], /RA..LA/)) # found Raxxla? + printf("\n%s", "Wait a sec... Is this the legendary Raxxla?\nWe'll never know for sure...") } } @@ -611,7 +614,7 @@ BEGIN { split("", globalseeds) # init galaxy seeds buildgalaxy(player["galaxynum"], globalseeds) # build the current galaxy genmarket(0, economies[player["currentplanet"]]) # build local market - printf("\nWelcome to awlite 1.6.0\n") + printf("\nWelcome to awlite 1.6.1\n") dohelp() # start the REPL printf("\n\nCash: %.1f> ", player["cash"]/10)