Symbol: Param
games/trek/abandon.c
100
Param.shield = Ship.shield = 1250;
games/trek/abandon.c
115
i = Param.damprob[SHUTTLE] + Param.damprob[CLOAK];
games/trek/abandon.c
116
Param.damprob[SHUTTLE] = Param.damprob[CLOAK] = 0;
games/trek/abandon.c
119
if (Param.damprob[j] != 0) {
games/trek/abandon.c
120
Param.damprob[j] += 1;
games/trek/abandon.c
98
Param.energy = Ship.energy = 3000;
games/trek/abandon.c
99
Param.torped = Ship.torped = 6;
games/trek/attack.c
113
hit = Etc.klingon[i].power * pow(dustfac, tothe) * Param.hitfac;
games/trek/attack.c
116
Etc.klingon[i].power = dustfac * Param.phasfac *
games/trek/attack.c
122
propor /= Param.shield;
games/trek/attack.c
150
cas -= Param.damprob[l];
games/trek/attack.c
153
extradm = (hit * Param.damfac[l]) /
games/trek/capture.c
82
x = Param.klingpwr;
games/trek/capture.c
85
x *= Param.srndrprob;
games/trek/capture.c
94
i = ranf(Param.klingcrew);
games/trek/capture.c
97
"taken captive\n", Param.klingcrew - i);
games/trek/checkcond.c
90
if (Ship.energy < Param.energylow) {
games/trek/computer.c
233
time = Param.warptime * dist / (warpfact * warpfact);
games/trek/damage.c
69
dam *= Param.dockfac;
games/trek/dcrept.c
59
m1 = 1.0 / Param.dockfac;
games/trek/dcrept.c
63
m2 = Param.dockfac;
games/trek/dock.c
108
reschedule(e, (e->date - Now.date) * Param.dockfac);
games/trek/dock.c
140
reschedule(e, (e->date - Now.date) / Param.dockfac);
games/trek/dock.c
84
Ship.energy = Param.energy;
games/trek/dock.c
85
Ship.torped = Param.torped;
games/trek/dock.c
86
Ship.shield = Param.shield;
games/trek/dock.c
87
Ship.crew = Param.crew;
games/trek/dock.c
88
Game.captives += Param.brigfree - Ship.brigfree;
games/trek/dock.c
89
Ship.brigfree = Param.brigfree;
games/trek/dock.c
95
Ship.reserves = Param.reserves;
games/trek/dumpgame.c
53
{ (char *)&Param, sizeof (Param) },
games/trek/events.c
315
e = schedule(E_REPRO, Param.eventdly[E_REPRO] * franf(),
games/trek/events.c
382
k->power = Param.klingpwr;
games/trek/events.c
424
Ship.reserves = Param.reserves;
games/trek/events.c
462
Ship.energy -= Param.cloakenergy * Move.time;
games/trek/events.c
465
rtime = 1.0 - exp(-Param.regenfac * Move.time);
games/trek/events.c
466
Ship.shield += (Param.shield - Ship.shield) * rtime;
games/trek/events.c
467
Ship.energy += (Param.energy - Ship.energy) * rtime;
games/trek/externs.c
104
struct Param_struct Param;
games/trek/initquad.c
94
Etc.klingon[i].power = Param.klingpwr;
games/trek/klmove.c
81
i = 100.0 * k->power / Param.klingpwr;
games/trek/klmove.c
82
if (ranf(i) >= Param.moveprob[2 * Move.newquad + fl])
games/trek/klmove.c
86
motion *= k->avgdist * Param.movefac[2 * Move.newquad + fl];
games/trek/move.c
193
Ship.energy -= Param.stopengy * speed;
games/trek/move.c
96
angle += Param.navigcrud[1] * (franf() - 0.5);
games/trek/move.c
99
angle += Param.navigcrud[0] * (franf() - 0.5);
games/trek/ram.c
92
damage(i, (2.5 * (franf() + franf()) + 1.0) * Param.damfac[i]);
games/trek/schedule.c
145
when = -Param.eventdly[ev] * Param.time * log(franf()) / factor;
games/trek/schedule.c
166
when = -Param.eventdly[ev] * Param.time * log(franf()) / factor;
games/trek/score.c
71
s = t = Param.klingpwr / 4 * (u = Game.killk);
games/trek/score.c
74
r = Now.date - Param.date;
games/trek/setup.c
106
Param.bases = Now.bases = ranf(6 - Game.skill) + 2;
games/trek/setup.c
108
Param.bases = Now.bases = 1;
games/trek/setup.c
109
Param.time = Now.time = 6.0 * Game.length + 2.0;
games/trek/setup.c
112
Param.klings = Now.klings = i * j * 3.5 * (franf() + 0.75);
games/trek/setup.c
113
if (Param.klings < i * j * 5)
games/trek/setup.c
114
Param.klings = Now.klings = i * j * 5;
games/trek/setup.c
115
if (Param.klings <= i) /* numerical overflow problems */
games/trek/setup.c
116
Param.klings = Now.klings = 127;
games/trek/setup.c
117
Param.energy = Ship.energy = 5000;
games/trek/setup.c
118
Param.torped = Ship.torped = 10;
games/trek/setup.c
121
Param.shield = Ship.shield = 1500;
games/trek/setup.c
122
Param.resource = Now.resource = Param.klings * Param.time;
games/trek/setup.c
123
Param.reserves = Ship.reserves = (6 - Game.skill) * 2.0;
games/trek/setup.c
124
Param.crew = Ship.crew = 387;
games/trek/setup.c
125
Param.brigfree = Ship.brigfree = 400;
games/trek/setup.c
133
Param.date = Now.date = (ranf(20) + 20) * 100;
games/trek/setup.c
138
Param.damfac[i] = 0;
games/trek/setup.c
140
Param.damfac[i] = f;
games/trek/setup.c
142
Param.damprob[WARP] = 70; /* warp drive 7.0% */
games/trek/setup.c
143
Param.damprob[SRSCAN] = 110; /* short range scanners 11.0% */
games/trek/setup.c
144
Param.damprob[LRSCAN] = 110; /* long range scanners 11.0% */
games/trek/setup.c
145
Param.damprob[PHASER] = 125; /* phasers 12.5% */
games/trek/setup.c
146
Param.damprob[TORPED] = 125; /* photon torpedoes 12.5% */
games/trek/setup.c
147
Param.damprob[IMPULSE] = 75; /* impulse engines 7.5% */
games/trek/setup.c
148
Param.damprob[SHIELD] = 150; /* shield control 15.0% */
games/trek/setup.c
149
Param.damprob[COMPUTER] = 20; /* computer 2.0% */
games/trek/setup.c
150
Param.damprob[SSRADIO] = 35; /* subspace radio 3.5% */
games/trek/setup.c
151
Param.damprob[LIFESUP] = 30; /* life support 3.0% */
games/trek/setup.c
152
Param.damprob[SINS] = 20; /* navigation system 2.0% */
games/trek/setup.c
153
Param.damprob[CLOAK] = 50; /* cloaking device 5.0% */
games/trek/setup.c
154
Param.damprob[XPORTER] = 80; /* transporter 8.0% */
games/trek/setup.c
157
j += Param.damprob[i];
games/trek/setup.c
160
Param.dockfac = 0.5;
games/trek/setup.c
161
Param.regenfac = (5 - Game.skill) * 0.05;
games/trek/setup.c
162
if (Param.regenfac < 0.0)
games/trek/setup.c
163
Param.regenfac = 0.0;
games/trek/setup.c
164
Param.warptime = 10;
games/trek/setup.c
165
Param.stopengy = 50;
games/trek/setup.c
166
Param.shupengy = 40;
games/trek/setup.c
168
Param.klingpwr = 100 + 150 * i;
games/trek/setup.c
170
Param.klingpwr += 150;
games/trek/setup.c
171
Param.phasfac = 0.8;
games/trek/setup.c
172
Param.hitfac = 0.5;
games/trek/setup.c
173
Param.klingcrew = 200;
games/trek/setup.c
174
Param.srndrprob = 0.0035;
games/trek/setup.c
175
Param.moveprob[KM_OB] = 45;
games/trek/setup.c
176
Param.movefac[KM_OB] = .09;
games/trek/setup.c
177
Param.moveprob[KM_OA] = 40;
games/trek/setup.c
178
Param.movefac[KM_OA] = -0.05;
games/trek/setup.c
179
Param.moveprob[KM_EB] = 40;
games/trek/setup.c
180
Param.movefac[KM_EB] = 0.075;
games/trek/setup.c
181
Param.moveprob[KM_EA] = 25 + 5 * Game.skill;
games/trek/setup.c
182
Param.movefac[KM_EA] = -0.06 * Game.skill;
games/trek/setup.c
183
Param.moveprob[KM_LB] = 0;
games/trek/setup.c
184
Param.movefac[KM_LB] = 0.0;
games/trek/setup.c
185
Param.moveprob[KM_LA] = 10 + 10 * Game.skill;
games/trek/setup.c
186
Param.movefac[KM_LA] = 0.25;
games/trek/setup.c
187
Param.eventdly[E_SNOVA] = 0.5;
games/trek/setup.c
188
Param.eventdly[E_LRTB] = 25.0;
games/trek/setup.c
189
Param.eventdly[E_KATSB] = 1.0;
games/trek/setup.c
190
Param.eventdly[E_KDESB] = 3.0;
games/trek/setup.c
191
Param.eventdly[E_ISSUE] = 1.0;
games/trek/setup.c
192
Param.eventdly[E_SNAP] = 0.5;
games/trek/setup.c
193
Param.eventdly[E_ENSLV] = 0.5;
games/trek/setup.c
194
Param.eventdly[E_REPRO] = 2.0;
games/trek/setup.c
195
Param.navigcrud[0] = 1.50;
games/trek/setup.c
196
Param.navigcrud[1] = 0.75;
games/trek/setup.c
197
Param.cloakenergy = 1000;
games/trek/setup.c
198
Param.energylow = 1000;
games/trek/setup.c
205
xsched(E_LRTB, Param.klings, 0, 0, 0);
games/trek/setup.c
246
for (i = 0; i < Param.bases; i++) {
games/trek/setup.c
267
for (i = Param.klings; i > 0; ) {
games/trek/setup.c
284
printf("%d Klingons\n%d starbase", Param.klings, Param.bases);
games/trek/setup.c
285
if (Param.bases > 1)
games/trek/setup.c
288
for (i = 1; i < Param.bases; i++)
games/trek/setup.c
290
printf("\nIt takes %d units to kill a Klingon\n", Param.klingpwr);
games/trek/shield.c
127
Ship.energy -= Param.shupengy;
games/trek/srscan.c
133
percent = 100.0 * Ship.shield / Param.shield;
games/trek/srscan.c
157
printf("Klingon power %d\n", Param.klingpwr);
games/trek/torped.c
236
r = 1.0 + r / Param.shield;
games/trek/trek.h
307
extern struct Param_struct Param;
games/trek/warp.c
105
speed = Ship.warp2 / Param.warptime;
games/trek/warp.c
189
damage(i, (3.0 * (franf() + franf()) + 1.0) * Param.damfac[i]);
sbin/natd/natd.c
851
enum Param parm;