revert to default game settings

This commit is contained in:
creme 2020-02-12 13:38:51 +01:00
parent 9b40f1080d
commit 0b19f36306
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
7 changed files with 20 additions and 21 deletions

3
README
View File

@ -8,7 +8,8 @@ I removed the AI, at least for now
(feel free to add it back if you figure out how to properly fix it)
I also changed the company names slightly, and adjusted the stats for no reason
most importantly, after experiencing troubles where someone accidentally closed
the final stats screen, I modified it to only close when pressing Y (doesn't matter if lower or uppercase)
the final stats screen, I modified it to only close when pressing Y (doesn't
matter if lower or uppercase)
there are still plenty of warnings left to fix,
but they don't affect the gameplay

1
ai.c
View File

@ -22,7 +22,6 @@
#include "common.h"
/*
int move;
char map[120]; */

View File

@ -1,9 +1,9 @@
Version 1.4.0 released 2020 by ~jan6
Version 1.4.1 released 2020 by ~jan6
jan6@tilde.ninja and jan6@envs.net
Removed AI (crashes when trying to use it)
Changed some stats and company names slightly
Changed company names slightly
Modified final stats screen to not exit unless player presses "Y"

View File

@ -13,24 +13,24 @@
** along with this program;
*/
#define OFFMAP '-' /* space character */
#define OFFMAP '-' /* space character */
#define SPACE '.' /* space character */
#define NEWCO '+' /* new company character */
#define STAR '*' /* star character */
#define BLACKHOLE '@' /* black hole character */
#define NUMCO 5 /* number of companies (don't change) */
#define INIT_CO_COST 90 /* initial company start cost */
#define FOUNDER_BONUS 10 /* founder gets this much stock */
#define NUMMOVES 6 /* number of moves options a player gets */
#define INIT_CO_COST 100 /* initial company start cost */
#define FOUNDER_BONUS 5 /* founder gets this much stock */
#define NUMMOVES 5 /* number of moves options a player gets */
#define MAXPLAYERS 4 /* total number of players a game can have */
#define STARCOST 251 /* company's price increase near star */
#define BLACKHOLECOST -250 /* price increase near black hole */
#define NEWCOCOST 101 /* company's price increase near new co */
#define STARCOST 500 /* company's price increase near star */
#define BLACKHOLECOST -500 /* price increase near black hole */
#define NEWCOCOST 100 /* company's price increase near new co */
#define Mx 12 /* x dimension of map */
#define My 10 /* y dimension of map */
#define Mx 12 /* x dimension of map */
#define My 10 /* y dimension of map */
/* macros to look at surrounding spaces on the map: */
@ -42,8 +42,6 @@
/* player and company structures: */
typedef struct {
@ -62,3 +60,4 @@ typedef struct {
int risk; /* value related to chance of being swallowed by Black Hole */
int netpot; /* potential - risk */
} COMPANY;
MPANY;

View File

@ -1,4 +1,4 @@
.TH STARLANES 6 "11 February 2020" "Starlanes V1.4.0"
.TH STARLANES 6 "12 February 2020" "Starlanes V1.4.1"
.SH NAME
starlanes \- the game of starlanes
.SH SYNOPSIS

View File

@ -1,5 +1,5 @@
/*
** starlanes v1.4.0 (11-Feb-2020) -- a space-age stock trading game
** starlanes v1.4.1 (12-Feb-2020) -- a space-age stock trading game
**
** Copyright (C) 1997 Brian "Beej" Hall
** with modifications by David Barnsdale 2004 and by ~jan6 2020
@ -101,7 +101,7 @@
/* #define NUMMOVES 5 number of different moves a player gets */
#define END_PERCENT 55 /* end when this much of the map is full */
#define END_PERCENT 54 /* end when this much of the map is full */
#define DEF_LINES 25 /* default number of lines on screen */
#define DEF_COLUMNS 80 /* default number of columns on screen */
@ -161,8 +161,8 @@ void usage(void);
char placemove(); */
/* global variables */
char *VERSION = "1.4.0";
char *VERSION_DATE = "11-February-2020";
char *VERSION = "1.4.1";
char *VERSION_DATE = "12-February-2020";
char *ident = "$Id: starlanes.c 1.2.2 29-Mar-1997 beej@ecst.csuchico.edu $";

View File

@ -391,6 +391,6 @@ BUGS
Starlanes V1.4.0 11 February 2020 6
Starlanes V1.4.1 12 February 2020 6