Bumped version to 1.5.8 and added readme

This commit is contained in:
Luxferre
2024-01-22 11:36:52 +02:00
parent dc9753a562
commit 9bf5a3eef0
2 changed files with 131 additions and 8 deletions
+8 -8
View File
@@ -1,6 +1,6 @@
# awlite: POSIX AWK port of Text Elite 1.5
# Version 1.5.2
# Original C version by Ian Bell, 1999, 2015
# awlite: POSIX AWK port of Text Elite
# Version 1.5.8
# Original high-level algorithms from Text Elite 1.5 by Ian Bell, 1999, 2015
# Porting, corrections, improvements and optimizations by Luxferre, 2024
#
# Tested on: nawk/one-true-awk, busybox awk, gawk --posix, mawk -W posix
@@ -11,7 +11,7 @@
# - multiple typos corrected in text strings
# - the "cash" and "sneak" commands are only available to the REPL if running with -v CHEAT=1
# - galaxy jumps are no longer free and cost 5000 credits each (like in classic Elite and Oolite)
# - cargo hold expansion also is non-free (400 credits) and can only be done once from 20t to 35t
# - cargo hold expansion also is non-free (400 credits) and can only be done once from 20t to 35t (like in classic Elite)
# - alien items are available by default, can be overridden with -v NO_ALIEN_ITEMS=1
# - economy names are no longer shortened
# - the "politically correct" goods names are turned on with -v CENSORED=1
@@ -509,8 +509,8 @@ function dohelp() {
printf("\nGalhyp (jumps to next galaxy)")
printf("\nInfo planetname (prints info on system)")
printf("\nMkt (shows market prices)")
printf("\nLocal (lists systems within 7 light years)")
if(CHEAT) printf("\nCash number (alters cash - cheating!)")
printf("\nLocal (lists systems within 7 lightyears)")
if(CHEAT) printf("\nCash number (alters cash)")
printf("\nHold (expand cargo bay to %dt)", game["cargoexpsize"])
printf("\nQuit or ^D (exit)")
printf("\nHelp (display this text)")
@@ -614,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.5.2 (based on Text Elite 1.5)\n")
printf("\nWelcome to awlite 1.5.8 (based on Text Elite 1.5)\n")
dohelp()
# start the REPL
printf("\n\nCash: %.1f> ", player["cash"]/10)
@@ -634,7 +634,7 @@ BEGIN {
else if(action == "s" || action == "sell") dosell(paramstr)
else if(action == "j" || action == "jump") dojump(paramstr)
else if(action == "f" || action == "fuel") dofuel(paramstr)
else if(action == "ho" || action == "hold") dohold(game["cargoexpsize"])
else if(action == "hold") dohold(game["cargoexpsize"])
else if(CHEAT && action == "cash") docash(paramstr)
else if(CHEAT && action == "sneak") dosneak(paramstr)
else printf("Unknown command")