| 1 |
program makealiencontacts; |
| 2 |
(******************************************************************** |
| 3 |
This file is part of Ironseed. |
| 4 |
|
| 5 |
Ironseed is free software: you can redistribute it and/or modify |
| 6 |
it under the terms of the GNU General Public License as published by |
| 7 |
the Free Software Foundation, either version 3 of the License, or |
| 8 |
(at your option) any later version. |
| 9 |
|
| 10 |
Ironseed is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
GNU General Public License for more details. |
| 14 |
|
| 15 |
You should have received a copy of the GNU General Public License |
| 16 |
along with Ironseed. If not, see <https://www.gnu.org/licenses/>. |
| 17 |
********************************************************************) |
| 18 |
|
| 19 |
{********************************************* |
| 20 |
Data Generator: Aliens |
| 21 |
|
| 22 |
Copyright: |
| 23 |
1994 Channel 7, Destiny: Virtual |
| 24 |
2020 Matija Nalis <[email protected]> |
| 25 |
**********************************************} |
| 26 |
|
| 27 |
{$PACKRECORDS 1} |
| 28 |
|
| 29 |
type |
| 30 |
alientype= |
| 31 |
record |
| 32 |
name: string[15]; |
| 33 |
techmin,techmax,anger,congeniality,victory,id,conindex: integer; |
| 34 |
war: boolean; |
| 35 |
end; |
| 36 |
var |
| 37 |
alien: alientype; |
| 38 |
i,j: integer; |
| 39 |
ft: text; |
| 40 |
f: file of alientype; |
| 41 |
|
| 42 |
begin |
| 43 |
assign(f,'data/contact0.dta'); |
| 44 |
rewrite(f); |
| 45 |
assign(ft,'Data_Generators/makedata/contact.txt'); |
| 46 |
reset(ft); |
| 47 |
readln(ft); |
| 48 |
for j:=1 to 11 do |
| 49 |
begin |
| 50 |
read(ft,alien.name); |
| 51 |
read(ft,i); |
| 52 |
alien.techmin:=i*256; |
| 53 |
read(ft,i); |
| 54 |
alien.techmin:=alien.techmin+i; |
| 55 |
read(ft,i); |
| 56 |
alien.techmax:=i*256; |
| 57 |
read(ft,i); |
| 58 |
alien.techmax:=alien.techmax+i; |
| 59 |
read(ft,alien.anger); |
| 60 |
read(ft,alien.congeniality); |
| 61 |
read(ft,alien.victory); |
| 62 |
read(ft,i); |
| 63 |
readln(ft,i); |
| 64 |
if i=0 then alien.war:=false else alien.war:=true; |
| 65 |
alien.id:=0; |
| 66 |
alien.conindex:=j; |
| 67 |
write(f,alien); |
| 68 |
writeln(alien.name); |
| 69 |
end; |
| 70 |
close(f); |
| 71 |
close(ft); |
| 72 |
end. |