changeset 14:b7fe2e0e4b86

Added #defines which hold the chance of nebulous terrain affecting your weapons systems.
author darius
date Sat, 06 Dec 1997 06:27:50 +0000
parents ed82a42ba89d
children d28f3d01043c
files src/defs.h
diffstat 1 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/defs.h	Sat Dec 06 06:27:03 1997 +0000
+++ b/src/defs.h	Sat Dec 06 06:27:50 1997 +0000
@@ -96,26 +96,31 @@
 #define SCALE 40		/* Window will be one pixel for 20 spaces */
 #define SHIPDAMDIST 3000	/* At this range, an exploding ship does
 				 * damage */
-#define DETDIST 1800		/* At this range a torp can be detonated */
-/* was 1600. 6/29/92 TC */
-/* was 1800 8/1/92 TC */
+#define DETDIST 1800		/* At this range a torp can be detonated
+													 was 1600. 6/29/92 TC
+													 was 1800 8/1/92 TC */
 #define NEWDETDIST 1800
 
 #define PHASEDIST 6000		/* At this range a player can do damage with
-				 * phasers -- outdated */
+													 * phasers -- outdated */
 #define ENTORBDIST 900		/* At this range a player can orbit a planet */
 #define ORBDIST 800		/* A player will orbit at this radius */
 #define FORBDIST 7500		/* The radius at which fighters patrol */
 #define ORBSPEED 2		/* This is the fastest a person can go into
-				 * orbit */
+											 * orbit */
 #define PFIREDIST 1500		/* At this range a planet will shoot at a
-				 * player */
+													 * player */
 
 #define MIN_AST_DAMAGE    10	/* the minimum damage caused by an asteroid */
 #define VAR_AST_DAMAGE    5	/* the max additional damage caused by an
-				 * asteroid per speed factor */
+														 * asteroid per speed factor */
 #define MIN_AST_HIT 2		/* the minimum chance of hitting an asteroid */
 
+#define TORP_NEB_EFF      40 /* percent for nebulous terrain to screw up tracking */
+#define PLASMA_NEB_EFF    30
+#define FIGHTER_NEB_EFF   20
+#define MISSILE_NEB_EFF   30
+
 #define TORP_HIT_AST      8
 #define PLASMA_HIT_AST    12	/* percent for asteroid collisions. */
 #define FIGHTER_HIT_AST   3