Symbol: Param
games/trek/abandon.c
102
Param.energy = Ship.energy = 3000;
games/trek/abandon.c
103
Param.torped = Ship.torped = 6;
games/trek/abandon.c
104
Param.shield = Ship.shield = 1250;
games/trek/abandon.c
120
i = Param.damprob[SHUTTLE] + Param.damprob[CLOAK];
games/trek/abandon.c
121
Param.damprob[SHUTTLE] = Param.damprob[CLOAK] = 0;
games/trek/abandon.c
125
if (Param.damprob[j] != 0)
games/trek/abandon.c
127
Param.damprob[j] += 1;
games/trek/attack.c
115
hit = Etc.klingon[i].power * pow(dustfac, tothe) * Param.hitfac;
games/trek/attack.c
118
Etc.klingon[i].power = dustfac * Param.phasfac * (1.0 + (franf() - 0.5) * 0.2);
games/trek/attack.c
124
propor /= Param.shield;
games/trek/attack.c
152
cas -= Param.damprob[l];
games/trek/attack.c
155
extradm = (hit * Param.damfac[l]) / (75 + ranf(25)) + 0.5;
games/trek/capture.c
82
x = Param.klingpwr;
games/trek/capture.c
85
x *= Param.srndrprob;
games/trek/capture.c
95
i = ranf(Param.klingcrew);
games/trek/capture.c
97
printf("%d klingons commit suicide rather than be taken captive\n", Param.klingcrew - i);
games/trek/checkcond.c
91
if (Ship.energy < Param.energylow)
games/trek/computer.c
240
time = Param.warptime * dist / (warpfact * warpfact);
games/trek/damage.c
68
dam *= Param.dockfac;
games/trek/dcrept.c
60
m1 = 1.0 / Param.dockfac;
games/trek/dcrept.c
66
m2 = Param.dockfac;
games/trek/dock.c
113
reschedule(e, (e->date - Now.date) * Param.dockfac);
games/trek/dock.c
145
reschedule(e, (e->date - Now.date) / Param.dockfac);
games/trek/dock.c
88
Ship.energy = Param.energy;
games/trek/dock.c
89
Ship.torped = Param.torped;
games/trek/dock.c
90
Ship.shield = Param.shield;
games/trek/dock.c
91
Ship.crew = Param.crew;
games/trek/dock.c
92
Game.captives += Param.brigfree - Ship.brigfree;
games/trek/dock.c
93
Ship.brigfree = Param.brigfree;
games/trek/dock.c
99
Ship.reserves = Param.reserves;
games/trek/events.c
309
e = schedule(E_REPRO, Param.eventdly[E_REPRO] * franf(), e->x, e->y, e->systemname);
games/trek/events.c
375
k->power = Param.klingpwr;
games/trek/events.c
418
Ship.reserves = Param.reserves;
games/trek/events.c
453
Ship.energy -= Param.cloakenergy * Move.time;
games/trek/events.c
456
rtime = 1.0 - exp(-Param.regenfac * Move.time);
games/trek/events.c
457
Ship.shield += (Param.shield - Ship.shield) * rtime;
games/trek/events.c
458
Ship.energy += (Param.energy - Ship.energy) * rtime;
games/trek/initquad.c
97
Etc.klingon[i].power = Param.klingpwr;
games/trek/klmove.c
83
i = 100.0 * k->power / Param.klingpwr;
games/trek/klmove.c
84
if (ranf(i) >= Param.moveprob[2 * Move.newquad + fl])
games/trek/klmove.c
88
motion *= k->avgdist * Param.movefac[2 * Move.newquad + fl];
games/trek/main.c
48
struct Param Param;
games/trek/move.c
188
Ship.energy -= Param.stopengy * speed;
games/trek/move.c
89
angle += Param.navigcrud[1] * (franf() - 0.5);
games/trek/move.c
92
angle += Param.navigcrud[0] * (franf() - 0.5);
games/trek/ram.c
94
damage(i, (2.5 * (franf() + franf()) + 1.0) * Param.damfac[i]);
games/trek/schedule.c
144
return (schedule(ev, -Param.eventdly[ev] * Param.time * log(franf()) / factor, x, y, z));
games/trek/schedule.c
163
reschedule(e, -Param.eventdly[ev] * Param.time * log(franf()) / factor);
games/trek/score.c
50
s = t = Param.klingpwr / 4 * (u = Game.killk);
games/trek/score.c
53
r = Now.date - Param.date;
games/trek/setup.c
101
Param.bases = Now.bases = 1;
games/trek/setup.c
102
Param.time = Now.time = 6.0 * Game.length + 2.0;
games/trek/setup.c
105
Param.klings = Now.klings = i * j * 3.5 * (franf() + 0.75);
games/trek/setup.c
106
if (Param.klings < i * j * 5)
games/trek/setup.c
107
Param.klings = Now.klings = i * j * 5;
games/trek/setup.c
108
if (Param.klings <= i) /* numerical overflow problems */
games/trek/setup.c
109
Param.klings = Now.klings = 127;
games/trek/setup.c
110
Param.energy = Ship.energy = 5000;
games/trek/setup.c
111
Param.torped = Ship.torped = 10;
games/trek/setup.c
114
Param.shield = Ship.shield = 1500;
games/trek/setup.c
115
Param.resource = Now.resource = Param.klings * Param.time;
games/trek/setup.c
116
Param.reserves = Ship.reserves = (6 - Game.skill) * 2.0;
games/trek/setup.c
117
Param.crew = Ship.crew = 387;
games/trek/setup.c
118
Param.brigfree = Ship.brigfree = 400;
games/trek/setup.c
126
Param.date = Now.date = (ranf(20) + 20) * 100;
games/trek/setup.c
131
Param.damfac[i] = 0;
games/trek/setup.c
133
Param.damfac[i] = f;
games/trek/setup.c
135
Param.damprob[WARP] = 70; /* warp drive 7.0% */
games/trek/setup.c
136
Param.damprob[SRSCAN] = 110; /* short range scanners 11.0% */
games/trek/setup.c
137
Param.damprob[LRSCAN] = 110; /* long range scanners 11.0% */
games/trek/setup.c
138
Param.damprob[PHASER] = 125; /* phasers 12.5% */
games/trek/setup.c
139
Param.damprob[TORPED] = 125; /* photon torpedoes 12.5% */
games/trek/setup.c
140
Param.damprob[IMPULSE] = 75; /* impulse engines 7.5% */
games/trek/setup.c
141
Param.damprob[SHIELD] = 150; /* shield control 15.0% */
games/trek/setup.c
142
Param.damprob[COMPUTER] = 20; /* computer 2.0% */
games/trek/setup.c
143
Param.damprob[SSRADIO] = 35; /* subspace radio 3.5% */
games/trek/setup.c
144
Param.damprob[LIFESUP] = 30; /* life support 3.0% */
games/trek/setup.c
145
Param.damprob[SINS] = 20; /* navigation system 2.0% */
games/trek/setup.c
146
Param.damprob[CLOAK] = 50; /* cloaking device 5.0% */
games/trek/setup.c
147
Param.damprob[XPORTER] = 80; /* transporter 8.0% */
games/trek/setup.c
150
j += Param.damprob[i];
games/trek/setup.c
153
Param.dockfac = 0.5;
games/trek/setup.c
154
Param.regenfac = (5 - Game.skill) * 0.05;
games/trek/setup.c
155
if (Param.regenfac < 0.0)
games/trek/setup.c
156
Param.regenfac = 0.0;
games/trek/setup.c
157
Param.warptime = 10;
games/trek/setup.c
158
Param.stopengy = 50;
games/trek/setup.c
159
Param.shupengy = 40;
games/trek/setup.c
161
Param.klingpwr = 100 + 150 * i;
games/trek/setup.c
163
Param.klingpwr += 150;
games/trek/setup.c
164
Param.phasfac = 0.8;
games/trek/setup.c
165
Param.hitfac = 0.5;
games/trek/setup.c
166
Param.klingcrew = 200;
games/trek/setup.c
167
Param.srndrprob = 0.0035;
games/trek/setup.c
168
Param.moveprob[KM_OB] = 45;
games/trek/setup.c
169
Param.movefac[KM_OB] = .09;
games/trek/setup.c
170
Param.moveprob[KM_OA] = 40;
games/trek/setup.c
171
Param.movefac[KM_OA] = -0.05;
games/trek/setup.c
172
Param.moveprob[KM_EB] = 40;
games/trek/setup.c
173
Param.movefac[KM_EB] = 0.075;
games/trek/setup.c
174
Param.moveprob[KM_EA] = 25 + 5 * Game.skill;
games/trek/setup.c
175
Param.movefac[KM_EA] = -0.06 * Game.skill;
games/trek/setup.c
176
Param.moveprob[KM_LB] = 0;
games/trek/setup.c
177
Param.movefac[KM_LB] = 0.0;
games/trek/setup.c
178
Param.moveprob[KM_LA] = 10 + 10 * Game.skill;
games/trek/setup.c
179
Param.movefac[KM_LA] = 0.25;
games/trek/setup.c
180
Param.eventdly[E_SNOVA] = 0.5;
games/trek/setup.c
181
Param.eventdly[E_LRTB] = 25.0;
games/trek/setup.c
182
Param.eventdly[E_KATSB] = 1.0;
games/trek/setup.c
183
Param.eventdly[E_KDESB] = 3.0;
games/trek/setup.c
184
Param.eventdly[E_ISSUE] = 1.0;
games/trek/setup.c
185
Param.eventdly[E_SNAP] = 0.5;
games/trek/setup.c
186
Param.eventdly[E_ENSLV] = 0.5;
games/trek/setup.c
187
Param.eventdly[E_REPRO] = 2.0;
games/trek/setup.c
188
Param.navigcrud[0] = 1.50;
games/trek/setup.c
189
Param.navigcrud[1] = 0.75;
games/trek/setup.c
190
Param.cloakenergy = 1000;
games/trek/setup.c
191
Param.energylow = 1000;
games/trek/setup.c
199
xsched(E_LRTB, Param.klings, 0, 0, 0);
games/trek/setup.c
241
for (i = 0; i < Param.bases; i++)
games/trek/setup.c
265
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/setup.c
99
Param.bases = Now.bases = ranf(6 - Game.skill) + 2;
games/trek/shield.c
137
Ship.energy -= Param.shupengy;
games/trek/srscan.c
136
percent = 100.0 * Ship.shield / Param.shield;
games/trek/srscan.c
161
printf("Klingon power %d\n", Param.klingpwr);
games/trek/torped.c
246
r = 1.0 + r / Param.shield;
games/trek/trek.h
290
} Param;
games/trek/warp.c
100
speed = Ship.warp2 / Param.warptime;
games/trek/warp.c
186
damage(i, (3.0 * (franf() + franf()) + 1.0) * Param.damfac[i]);