home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / BBS_GAME / LOD400E.ZIP / PROGRAMR.ZIP / MAKEDEV.PAS < prev    next >
Pascal/Delphi Source File  |  1994-03-01  |  130KB  |  4,805 lines

  1. uses gtscott, globals,crt,setgen,make0;
  2.  
  3. const
  4.  numquest=16;         { number of predefined quests }
  5.  numdev=264;          { number of devices defined here }
  6.  devfilesize=350;     { total number of records to be in devdef file }
  7.  devicedef: array[0..numdev] of devdeftype= (
  8.              (num: 0;
  9.  
  10.               var1: 0;
  11.               var2: 0;
  12.               x: 0;
  13.               y: 0;
  14.               z: 0;
  15.               devapp: radio;
  16.               useleft: 0;
  17.               maxuse: 0;
  18.               decuse: false;
  19.               name: 'Nil';
  20.               store: [];
  21.               cost: 0;
  22.               usable: false;
  23.               pic: 'NIL';
  24.               picnum: 0),
  25.  
  26.              (num: 0;
  27.               var1: 0;
  28.               var2: 0;
  29.               x: 0;
  30.               y: 0;
  31.               z: 0;
  32.               devapp: radio;
  33.               useleft: 1;
  34.               maxuse: 1;
  35.               decuse: false;
  36.               name: 'Radio';
  37.               store: [supp];
  38.               cost: 1000;
  39.               usable: true;
  40.               pic: 'RADIO';
  41.               picnum: 15),
  42.  
  43.              (num: 0;
  44.               var1: 0;
  45.               var2: 0;
  46.               x: 0;
  47.               y: 0;
  48.               z: 0;
  49.               devapp: lrscan;
  50.               useleft: 1;
  51.               maxuse: 1;
  52.               decuse: false;
  53.               name: 'LR Scan';
  54.               store: [supp,town2];
  55.               cost: 32000;
  56.               usable: true;
  57.               pic: 'LRSCAN';
  58.               picnum: 2),
  59.  
  60.              (num: 0;
  61.               var1: 0;
  62.               var2: 0;
  63.               x: 0;
  64.               y: 0;
  65.               z: 0;
  66.               devapp: medkit;
  67.               useleft: 10;
  68.               maxuse: 10;
  69.               decuse: true;
  70.               name: 'MedKit';
  71.               store: [supp,basemed];
  72.               cost: 750;
  73.               usable: true;
  74.               pic: 'MEDKIT10';
  75.               picnum: 17),
  76.  
  77.              (num: 0;
  78.               var1: 0;
  79.               var2: 0;
  80.               x: 0;
  81.               y: 0;
  82.               z: 0;
  83.               devapp: medkit;
  84.               useleft: 15;
  85.               maxuse: 15;
  86.               decuse: true;
  87.               name: 'MedKit';
  88.               store: [supp,basemed];
  89.               cost: 1500;
  90.               usable: true;
  91.               pic: 'MEDKIT15';
  92.               picnum: 17),
  93.  
  94.              (num: 0;
  95.               var1: 0;
  96.               var2: 0;
  97.               x: 0;
  98.               y: 0;
  99.               z: 0;
  100.               devapp: medkit;
  101.               useleft: 25;
  102.               maxuse: 25;
  103.               decuse: true;
  104.               name: 'MedKit';
  105.               store: [supp,town2,town3,town4,town7,basemed];
  106.               cost: 5000;
  107.               usable: true;
  108.               pic: 'MEDKIT25';
  109.               picnum: 17),
  110.  
  111.              (num: 0;
  112.               var1: 0;
  113.               var2: 0;
  114.               x: 0;
  115.               y: 0;
  116.               z: 0;
  117.               devapp: medkit;
  118.               useleft: 50;
  119.               maxuse: 50;
  120.               decuse: true;
  121.               name: 'MedKit';
  122.               store: [supp,town2,town3,town4,town7,basemed];
  123.               cost: 10000;
  124.               usable: true;
  125.               pic: 'MEDKIT50';
  126.               picnum: 17),
  127.  
  128.              (num: 0;
  129.               var1: 001003; {*** 0103}
  130.               var2: 0;
  131.               x: 0;
  132.               y: 0;
  133.               z: 0;
  134.               devapp: weapon;
  135.               useleft: 0;
  136.               maxuse: 0;
  137.               decuse: false;
  138.               name: 'Rolling Pin';
  139.               store: [];
  140.               cost: 350;
  141.               usable: false;
  142.               pic: 'RPIN';
  143.               picnum: 64),
  144.  
  145.              (num: 0;
  146.               var1: 001003; {*** 0103}
  147.               var2: 0;
  148.               x: 0;
  149.               y: 0;
  150.               z: 0;
  151.               devapp: weapon;
  152.               useleft: 0;
  153.               maxuse: 0;
  154.               decuse: false;
  155.               name: 'Knife';
  156.               store: [weap];
  157.               cost: 350;
  158.               usable: false;
  159.               pic: 'KNIFE';
  160.               picnum: 4),
  161.  
  162.              (num: 0;
  163.               var1: 002003; {*** 0203}
  164.               var2: 0;
  165.               x: 0;
  166.               y: 0;
  167.               z: 0;
  168.               devapp: weapon;
  169.               useleft: 0;
  170.               maxuse: 0;
  171.               decuse: false;
  172.               name: 'Dagger';
  173.               store: [weap];
  174.               cost: 500;
  175.               usable: false;
  176.               pic: 'DAGGER';
  177.               picnum: 28),
  178.  
  179.              (num: 0;
  180.               var1: 002005; {*** 0205}
  181.               var2: 0;
  182.               x: 0;
  183.               y: 0;
  184.               z: 0;
  185.               devapp: weapon;
  186.               useleft: 0;
  187.               maxuse: 0;
  188.               decuse: false;
  189.               name: 'Sword';
  190.               store: [weap];
  191.               cost: 1000;
  192.               usable: false;
  193.               pic: 'SWORD';
  194.               picnum: 19),
  195.  
  196.              (num: 0;
  197.               var1: 003007; {*** 0307}
  198.               var2: 0;
  199.               x: 0;
  200.               y: 0;
  201.               z: 0;
  202.               devapp: weapon;
  203.               useleft: 0;
  204.               maxuse: 0;
  205.               decuse: false;
  206.               name: 'RazorLance';
  207.               store: [weap];
  208.               cost: 2100;
  209.               usable: false;
  210.               pic: 'LANCE';
  211.               picnum: 12),
  212.  
  213.              (num: 0;
  214.               var1: 03004008; {*** 030408}
  215.               var2: 0;
  216.               x: 0;
  217.               y: 0;
  218.               z: 0;
  219.               devapp: weapon;
  220.               useleft: 0;
  221.               maxuse: 0;
  222.               decuse: false;
  223.               name: 'ElectroBlade';
  224.               store: [weap];
  225.               cost: 7500;
  226.               usable: false;
  227.               pic: 'EBLADE';
  228.               picnum: 27),
  229.  
  230.              (num: 0;
  231.               var1: 03005010; {*** 030510}
  232.               var2: 0;
  233.               x: 0;
  234.               y: 0;
  235.               z: 0;
  236.               devapp: weapon;
  237.               useleft: 0;
  238.               maxuse: 0;
  239.               decuse: false;
  240.               name: 'ElectroSword';
  241.               store: [weap,town2,town3];
  242.               cost: 20000;
  243.               usable: false;
  244.               pic: 'ESWORD';
  245.               picnum: 20),
  246.  
  247.              (num: 0;
  248.               var1: 03006012; {*** 030612}
  249.               var2: 0;
  250.               x: 0;
  251.               y: 0;
  252.               z: 0;
  253.               devapp: weapon;
  254.               useleft: 0;
  255.               maxuse: 0;
  256.               decuse: false;
  257.               name: 'ElectroLance';
  258.               store: [weap,town3,town3];
  259.               cost: 40000;
  260.               usable: false;
  261.               pic: 'ELANCE';
  262.               picnum: 9),
  263.  
  264.              (num: 0;
  265.               var1: 008016; {*** 0816}
  266.               var2: 0;
  267.               x: 0;
  268.               y: 0;
  269.               z: 0;
  270.               devapp: weapon;
  271.               useleft: 0;
  272.               maxuse: 0;
  273.               decuse: false;
  274.               name: 'Slicer-Dicer';
  275.               store: [town3];
  276.               cost: 50000;
  277.               usable: false;
  278.               pic: 'SDICER';
  279.               picnum: 33),
  280.  
  281.              (num: 0;
  282.               var1: 04009018; {*** 040918}
  283.               var2: 0;
  284.               x: 0;
  285.               y: 0;
  286.               z: 0;
  287.               devapp: weapon;
  288.               useleft: 0;
  289.               maxuse: 0;
  290.               decuse: false;
  291.               name: 'GravSword';
  292.               store: [town3];
  293.               cost: 100000;
  294.               usable: false;
  295.               pic: 'GSWORD';
  296.               picnum: 67),
  297.  
  298.              (num: 0;
  299.               var1: 06010020; {*** 061020}
  300.               var2: 0;
  301.               x: 0;
  302.               y: 0;
  303.               z: 0;
  304.               devapp: weapon;
  305.               useleft: 0;
  306.               maxuse: 0;
  307.               decuse: false;
  308.               name: 'WidowLance';
  309.               store: [town4];
  310.               cost: 125000;
  311.               usable: false;
  312.               pic: 'WLANCE';
  313.               picnum: 41),
  314.  
  315.              (num: 0;
  316.               var1: 07014022; {*** 071422}
  317.               var2: 0;
  318.               x: 0;
  319.               y: 0;
  320.               z: 0;
  321.               devapp: weapon;
  322.               useleft: 0;
  323.               maxuse: 0;
  324.               decuse: false;
  325.               name: 'Neutron Sabre';
  326.               store: [weap,town2,town3];
  327.               cost: 250000;
  328.               usable: false;
  329.               pic: 'NSABRE';
  330.               picnum: 59),
  331.  
  332.              (num: 0;
  333.               var1: 004007; {*** 0407}
  334.               var2: 0;
  335.               x: 0;
  336.               y: 0;
  337.               z: 0;
  338.               devapp: rangeweapon;
  339.               useleft: 0;
  340.               maxuse: 0;
  341.               decuse: false;
  342.               name: 'SlingShot';
  343.               store: [];
  344.               cost: 500;
  345.               usable: false;
  346.               pic: 'SLING';
  347.               picnum: 43),
  348.  
  349.              (num: 0;
  350.               var1: 01006009; {*** 010609}
  351.               var2: 0;
  352.               x: 0;
  353.               y: 0;
  354.               z: 0;
  355.               devapp: rangeweapon;
  356.               useleft: 0;
  357.               maxuse: 0;
  358.               decuse: false;
  359.               name: 'Crossbow';
  360.               store: [weaplr];
  361.               cost: 2100;
  362.               usable: false;
  363.               pic: 'CROSSBOW';
  364.               picnum: 30),
  365.  
  366.              (num: 0;
  367.               var1: 02008011; {*** 020811}
  368.               var2: 0;
  369.               x: 0;
  370.               y: 0;
  371.               z: 0;
  372.               devapp: rangeweapon;
  373.               useleft: 0;
  374.               maxuse: 0;
  375.               decuse: false;
  376.               name: 'Clip Pistol';
  377.               store: [weaplr,town2];
  378.               cost: 5000;
  379.               usable: false;
  380.               pic: 'PISTOL';
  381.               picnum: 32),
  382.  
  383.              (num: 0;
  384.               var1: 02008011; {was 9-13}
  385.               var2: 8;
  386.               x: 0;
  387.               y: 0;
  388.               z: 0;
  389.               devapp: rangeweapon;
  390.               useleft: 0;
  391.               maxuse: 0;
  392.               decuse: false;
  393.               name: 'Uzi SMG';
  394.               store: [town2];
  395.               cost: 30000;
  396.               usable: false;
  397.               pic: 'UZI';
  398.               picnum: 5),
  399.  
  400.              (num: 0;
  401.               var1: 03010017; {*** 031017}
  402.               var2: 0;
  403.               x: 0;
  404.               y: 0;
  405.               z: 0;
  406.               devapp: rangeweapon;
  407.               useleft: 0;
  408.               maxuse: 0;
  409.               decuse: false;
  410.               name: 'Phaser-1';
  411.               store: [weaplr];
  412.               cost: 20000;
  413.               usable: false;
  414.               pic: 'PHASER1';
  415.               picnum: 60),
  416.  
  417.              (num: 0;
  418.               var1: 03012018; {*** 031218}
  419.               var2: 0;
  420.               x: 0;
  421.               y: 0;
  422.               z: 0;
  423.               devapp: rangeweapon;
  424.               useleft: 0;
  425.               maxuse: 0;
  426.               decuse: false;
  427.               name: 'Phaser-2';
  428.               store: [weaplr];
  429.               cost: 25000;
  430.               usable: false;
  431.               pic: 'PHASER2';
  432.               picnum: 61),
  433.  
  434.              (num: 0;
  435.               var1: 03014020; {*** 031420}
  436.               var2: 0;
  437.               x: 0;
  438.               y: 0;
  439.               z: 0;
  440.               devapp: rangeweapon;
  441.               useleft: 0;
  442.               maxuse: 0;
  443.               decuse: false;
  444.               name: 'Phaser-3';
  445.               store: [weaplr,town2];
  446.               cost: 35000;
  447.               usable: false;
  448.               pic: 'PHASER3';
  449.               picnum: 62),
  450.  
  451.              (num: 0;
  452.               var1: 03016022; {*** 031622}
  453.               var2: 0;
  454.               x: 0;
  455.               y: 0;
  456.               z: 0;
  457.               devapp: rangeweapon;
  458.               useleft: 0;
  459.               maxuse: 0;
  460.               decuse: false;
  461.               name: 'Comp Blaster';
  462.               store: [weaplr];
  463.               cost: 40000;
  464.               usable: false;
  465.               pic: 'COMPBLST';
  466.               picnum: 63),
  467.  
  468.              (num: 0;
  469.               var1: 017023; {*** 1723}
  470.               var2: 0;
  471.               x: 0;
  472.               y: 0;
  473.               z: 0;
  474.               devapp: rangeweapon;
  475.               useleft: 0;
  476.               maxuse: 0;
  477.               decuse: false;
  478.               name: 'Torpx Cannon';
  479.               store: [town3];
  480.               cost: 55000;
  481.               usable: false;
  482.               pic: 'TORPX';
  483.               picnum: 40),
  484.  
  485.              (num: 0;
  486.               var1: 04019025; {*** 041925}
  487.               var2: 0;
  488.               x: 0;
  489.               y: 0;
  490.               z: 0;
  491.               devapp: rangeweapon;
  492.               useleft: 0;
  493.               maxuse: 0;
  494.               decuse: false;
  495.               name: 'GravBlast';
  496.               store: [weaplr];
  497.               cost: 60000;
  498.               usable: false;
  499.               pic: 'GRAVBLST';
  500.               picnum: 1),
  501.  
  502.              (num: 0;
  503.               var1: 05023030; {*** 052330}
  504.               var2: 0;
  505.               x: 0;
  506.               y: 0;
  507.               z: 0;
  508.               devapp: rangeweapon;
  509.               useleft: 0;
  510.               maxuse: 0;
  511.               decuse: false;
  512.               name: 'PlasmaBlast';
  513.               store: [weaplr];
  514.               cost: 150000;
  515.               usable: false;
  516.               pic: 'PBLAST';
  517.               picnum: 24),
  518.  
  519.              (num: 0;
  520.               var1: 06025032; {*** 062532}
  521.               var2: 0;
  522.               x: 0;
  523.               y: 0;
  524.               z: 0;
  525.               devapp: rangeweapon;
  526.               useleft: 0;
  527.               maxuse: 0;
  528.               decuse: false;
  529.               name: 'WidowBlaster';
  530.               store: [town4];
  531.               cost: 200000;
  532.               usable: false;
  533.               pic: 'WBLAST';
  534.               picnum: 44),
  535.  
  536.              (num: 0;
  537.               var1: 07025035; {*** 072535}
  538.               var2: 0;
  539.               x: 0;
  540.               y: 0;
  541.               z: 0;
  542.               devapp: rangeweapon;
  543.               useleft: 0;
  544.               maxuse: 0;
  545.               decuse: false;
  546.               name: 'Neutron Rifle';
  547.               store: [weaplr];
  548.               cost: 250000;
  549.               usable: false;
  550.               pic: 'NEUTRIF';
  551.               picnum: 69),
  552.  
  553.              (num: 0;
  554.               var1: 015030; {*** 1530}
  555.               var2: 0;
  556.               x: 0;
  557.               y: 0;
  558.               z: 0;
  559.               devapp: grenade;
  560.               useleft: 25;
  561.               maxuse: 25;
  562.               decuse: false;
  563.               name: 'Grenade Pack';
  564.               store: [weaplr,town2,town3];
  565.               cost: 20000;
  566.               usable: false;
  567.               pic: 'GRENADE';
  568.               picnum: 13),
  569.  
  570.              (num: 0;
  571.               var1: 01;
  572.               var2: 20;
  573.               x: 0;
  574.               y: 0;
  575.               z: 0;
  576.               devapp: ammop;
  577.               useleft: 0;
  578.               maxuse: 0;
  579.               decuse: false;
  580.               name: 'Crossbow bolts';
  581.               store: [ammo];
  582.               cost: 200;
  583.               usable: false;
  584.               pic: 'BOLTS';
  585.               picnum: 31),
  586.  
  587.              (num: 0;
  588.               var1: 02;
  589.               var2: 20;
  590.               x: 0;
  591.               y: 0;
  592.               z: 0;
  593.               devapp: ammop;
  594.               useleft: 0;
  595.               maxuse: 0;
  596.               decuse: false;
  597.               name: '9mm ammo';
  598.               store: [ammo,town2];
  599.               cost: 800;
  600.               usable: false;
  601.               pic: '9MMAMMO';
  602.               picnum: 29),
  603.  
  604.              (num: 0;
  605.               var1: 03;
  606.               var2: 35;
  607.               x: 0;
  608.               y: 0;
  609.               z: 0;
  610.               devapp: ammop;
  611.               useleft: 0;
  612.               maxuse: 0;
  613.               decuse: false;
  614.               name: 'Power Pack';
  615.               store: [ammo,town2,town3,town4,Baseene];
  616.               cost: 3000;
  617.               usable: false;
  618.               pic: 'PPACK';
  619.               picnum: 23),
  620.  
  621.              (num: 0;
  622.               var1: 03;
  623.               var2: 150;
  624.               x: 0;
  625.               y: 0;
  626.               z: 0;
  627.               devapp: ammop;
  628.               useleft: 0;
  629.               maxuse: 0;
  630.               decuse: false;
  631.               name: 'Power Belt';
  632.               store: [ammo,baseene];
  633.               cost: 20000;
  634.               usable: false;
  635.               pic: 'BELT';
  636.               picnum: 57),
  637.  
  638.              (num: 0;
  639.               var1: 04;
  640.               var2: 35;
  641.               x: 0;
  642.               y: 0;
  643.               z: 0;
  644.               devapp: ammop;
  645.               useleft: 0;
  646.               maxuse: 0;
  647.               decuse: false;
  648.               name: 'GravPack';
  649.               store: [ammo,baseene];
  650.               cost: 12000;
  651.               usable: false;
  652.               pic: 'GRAVPACK';
  653.               picnum: 54),
  654.  
  655.              (num: 0;
  656.               var1: 05;
  657.               var2: 40;
  658.               x: 0;
  659.               y: 0;
  660.               z: 0;
  661.               devapp: ammop;
  662.               useleft: 0;
  663.               maxuse: 0;
  664.               decuse: false;
  665.               name: 'PlasmaPack';
  666.               store: [ammo,baseene];
  667.               cost: 17000;
  668.               usable: false;
  669.               pic: 'PLASPACK';
  670.               picnum: 51),
  671.  
  672.              (num: 0;
  673.               var1: 06;
  674.               var2: 60;
  675.               x: 0;
  676.               y: 0;
  677.               z: 0;
  678.               devapp: ammop;
  679.               useleft: 0;
  680.               maxuse: 0;
  681.               decuse: false;
  682.               name: 'WidowPack';
  683.               store: [town4];
  684.               cost: 25000;
  685.               usable: false;
  686.               pic: 'WPACK';
  687.               picnum: 34),
  688.  
  689.              (num: 0;
  690.               var1: 07;
  691.               var2: 80;
  692.               x: 0;
  693.               y: 0;
  694.               z: 0;
  695.               devapp: ammop;
  696.               useleft: 0;
  697.               maxuse: 0;
  698.               decuse: false;
  699.               name: 'Neutron Pack';
  700.               store: [ammo,baseene];
  701.               cost: 50000;
  702.               usable: false;
  703.               pic: 'NPACK';
  704.               picnum: 56),
  705.  
  706.              (num: 0;
  707.               var1: 0;
  708.               var2: 10;
  709.               x: 0;
  710.               y: 0;
  711.               z: 0;
  712.               devapp: armor;
  713.               useleft: 8;
  714.               maxuse: 8;
  715.               decuse: false;
  716.               name: 'Apron';
  717.               store: [];
  718.               cost: 175;
  719.               usable: false;
  720.               pic: 'APRON';
  721.               picnum: 65),
  722.  
  723.              (num: 0;
  724.               var1: 0;
  725.               var2: 12;
  726.               x: 0;
  727.               y: 0;
  728.               z: 0;
  729.               devapp: armor;
  730.               useleft: 10;
  731.               maxuse: 10;
  732.               decuse: false;
  733.               name: 'Cheerldr Suit';
  734.               store: [];
  735.               cost: 200;
  736.               usable: false;
  737.               pic: 'CHEERLDR';
  738.               picnum: 26),
  739.  
  740.              (num: 0;
  741.               var1: 0;
  742.               var2: 15;
  743.               x: 0;
  744.               y: 0;
  745.               z: 0;
  746.               devapp: armor;
  747.               useleft: 10;
  748.               maxuse: 10;
  749.               decuse: false;
  750.               name: 'Cloth';
  751.               store: [armr];
  752.               cost: 250;
  753.               usable: false;
  754.               pic: 'CLOTH';
  755.               picnum: 21),
  756.  
  757.              (num: 0;
  758.               var1: 0;
  759.               var2: 20;
  760.               x: 0;
  761.               y: 0;
  762.               z: 0;
  763.               devapp: armor;
  764.               useleft: 20;
  765.               maxuse: 20;
  766.               decuse: false;
  767.               name: 'Leather';
  768.               store: [armr];
  769.               cost: 1000;
  770.               usable: false;
  771.               pic: 'LEATHER';
  772.               picnum: 3),
  773.  
  774.              (num: 0;
  775.               var1: 0;
  776.               var2: 30;
  777.               x: 0;
  778.               y: 0;
  779.               z: 0;
  780.               devapp: armor;
  781.               useleft: 30;
  782.               maxuse: 30;
  783.               decuse: false;
  784.               name: 'Kevlar';
  785.               store: [armr,town2];
  786.               cost: 5000;
  787.               usable: false;
  788.               pic: 'KEVLAR';
  789.               picnum: 16),
  790.  
  791.              (num: 0;
  792.               var1: 0;
  793.               var2: 35;
  794.               x: 0;
  795.               y: 0;
  796.               z: 0;
  797.               devapp: armor;
  798.               useleft: 100;
  799.               maxuse: 100;
  800.               decuse: false;
  801.               name: 'Laser-Resist';
  802.               store: [armr,town2];
  803.               cost: 25000;
  804.               usable: false;
  805.               pic: 'LASER';
  806.               picnum: 42),
  807.  
  808.              (num: 0;
  809.               var1: flagarmorrecharge;
  810.               var2: 45;
  811.               x: 0;
  812.               y: 0;
  813.               z: 0;
  814.               devapp: armor;
  815.               useleft: 200;
  816.               maxuse: 200;
  817.               decuse: false;
  818.               name: 'PlasmaVest';
  819.               store: [armr];
  820.               cost: 100000;
  821.               usable: false;
  822.               pic: 'PVEST';
  823.               picnum: 46),
  824.  
  825.              (num: 0;
  826.               var1: flagarmorrecharge;
  827.               var2: 60;
  828.               x: 0;
  829.               y: 0;
  830.               z: 0;
  831.               devapp: armor;
  832.               useleft: 500;
  833.               maxuse: 500;
  834.               decuse: false;
  835.               name: 'Energy Armor';
  836.               store: [town3,town4];
  837.               cost: 200000;
  838.               usable: false;
  839.               pic: 'ENARMR';
  840.               picnum: 47),
  841.  
  842.              (num: 0;
  843.               var1: flagarmorrecharge;
  844.               var2: 65;
  845.               x: 0;
  846.               y: 0;
  847.               z: 0;
  848.               devapp: armor;
  849.               useleft: 600;
  850.               maxuse: 600;
  851.               decuse: false;
  852.               name: 'Widow Armor';
  853.               store: [town4];
  854.               cost: 250000;
  855.               usable: false;
  856.               pic: 'WARMR';
  857.               picnum: 48),
  858.  
  859.              (num: 0;
  860.               var1: 1;
  861.               var2: 0;
  862.               x: 0;
  863.               y: 0;
  864.               z: 0;
  865.               devapp: medline;
  866.               useleft: 0;
  867.               maxuse: 0;
  868.               decuse: false;
  869.               name: 'Std Medline';
  870.               store: [armr];
  871.               cost: 15000;
  872.               usable: false;
  873.               pic: 'STDMED';
  874.               picnum: 100),
  875.  
  876.              (num: 0;
  877.               var1: 5;
  878.               var2: 0;
  879.               x: 0;
  880.               y: 0;
  881.               z: 0;
  882.               devapp: medline;
  883.               useleft: 0;
  884.               maxuse: 0;
  885.               decuse: false;
  886.               name: 'Adv Medline';
  887.               store: [armr];
  888.               cost: 50000;
  889.               usable: false;
  890.               pic: 'ADVMED';
  891.               picnum: 99),
  892.  
  893.              (num: 0;
  894.               var1: 0;
  895.               var2: 0;
  896.               x: 0;
  897.               y: 0;
  898.               z: 0;
  899.               devapp: rope;
  900.               useleft: 0;
  901.               maxuse: 0;
  902.               decuse: false;
  903.               name: 'Rope';
  904.               store: [];   {supp}
  905.               cost: 250;
  906.               usable: true;
  907.               pic: 'ROPE';
  908.               picnum: 14),
  909.  
  910.              (num: 0;
  911.               var1: 0;
  912.               var2: 0;
  913.               x: 0;
  914.               y: 0;
  915.               z: 0;
  916.               devapp: rations;
  917.               useleft: 5;
  918.               maxuse: 5;
  919.               decuse: true;
  920.               name: 'Rations';
  921.               store: [supp,town2,town3,town4];
  922.               cost: 250;
  923.               usable: true;
  924.               pic: 'RATION5';
  925.               picnum: 18),
  926.  
  927.              (num: 0;
  928.               var1: 0;
  929.               var2: 0;
  930.               x: 0;
  931.               y: 0;
  932.               z: 0;
  933.               devapp: rations;
  934.               useleft: 10;
  935.               maxuse: 10;
  936.               decuse: true;
  937.               name: 'Rations';
  938.               store: [supp];
  939.               cost: 750;
  940.               usable: true;
  941.               pic: 'RATION10';
  942.               picnum: 18),
  943.  
  944.              (num: 0;
  945.               var1: 0;
  946.               var2: 0;
  947.               x: 0;
  948.               y: 0;
  949.               z: 0;
  950.               devapp: rations;
  951.               useleft: 20;
  952.               maxuse: 20;
  953.               decuse: true;
  954.               name: 'Rations';
  955.               store: [supp];
  956.               cost: 5000;
  957.               usable: true;
  958.               pic: 'RATION20';
  959.               picnum: 18),
  960.  
  961.              (num: 0;
  962.               var1: 0;
  963.               var2: 0;
  964.               x: 0;
  965.               y: 0;
  966.               z: 0;
  967.               devapp: rations;
  968.               useleft: 25;
  969.               maxuse: 25;
  970.               decuse: true;
  971.               name: 'GSRZ Rations';
  972.               store: [gsrz];
  973.               cost: 3000;
  974.               usable: true;
  975.               pic: 'GRATN25';
  976.               picnum: 68),
  977.  
  978.              (num: 0;
  979.               var1: 0;
  980.               var2: 0;
  981.               x: 0;
  982.               y: 0;
  983.               z: 0;
  984.               devapp: rations;
  985.               useleft: 50;
  986.               maxuse: 50;
  987.               decuse: true;
  988.               name: 'GSRZ Rations';
  989.               store: [gsrz];
  990.               cost: 6000;
  991.               usable: true;
  992.               pic: 'GRATN50';
  993.               picnum: 68),
  994.  
  995.              (num: 0;
  996.               var1: 0;
  997.               var2: 0;
  998.               x: 0;
  999.               y: 0;
  1000.               z: 0;
  1001.               devapp: scanner;
  1002.               useleft: 0;
  1003.               maxuse: 0;
  1004.               decuse: false;
  1005.               name: 'Scanner';
  1006.               store: [supp,town2];
  1007.               cost: 25000;
  1008.               usable: true;
  1009.               pic: 'SCANNER';
  1010.               picnum: 25),
  1011.  
  1012.              (num: 0;
  1013.               var1: 0;
  1014.               var2: 50;
  1015.               x: 0;
  1016.               y: 0;
  1017.               z: 0;
  1018.               devapp: stealth;
  1019.               useleft: 0;
  1020.               maxuse: 0;
  1021.               decuse: false;
  1022.               name: 'Stealth Field';
  1023.               store: [supp,town2];
  1024.               cost: 2000;
  1025.               usable: true;
  1026.               pic: 'STEALTH';
  1027.               picnum: 8),
  1028.  
  1029.              (num: 0;
  1030.               var1: 2;
  1031.               var2: 0;
  1032.               x: 0;
  1033.               y: 0;
  1034.               z: 0;
  1035.               devapp: genobjapp;
  1036.               useleft: 0;
  1037.               maxuse: 0;
  1038.               decuse: false;
  1039.               name: 'Ghetto Blaster';
  1040.               store: [];
  1041.               cost: 250;
  1042.               usable: true;
  1043.               pic: 'GBLASTER';
  1044.               picnum: 11),
  1045.  
  1046.              (num: 0;
  1047.               var1: 0;
  1048.               var2: 50;
  1049.               x: 0;
  1050.               y: 0;
  1051.               z: 0;
  1052.               devapp: armorn;
  1053.               useleft: 175;
  1054.               maxuse: 175;
  1055.               decuse: false;
  1056.               name: 'Iron Plating';
  1057.               store: [];
  1058.               cost: 40000;
  1059.               usable: false;
  1060.               pic: 'IPLATING';
  1061.               picnum: 37),
  1062.  
  1063.              (num: 0;
  1064.               var1: 0;
  1065.               var2: 60;
  1066.               x: 0;
  1067.               y: 0;
  1068.               z: 0;
  1069.               devapp: armorn;
  1070.               useleft: 250;
  1071.               maxuse: 250;
  1072.               decuse: false;
  1073.               name: 'Steel Plating';
  1074.               store: [];
  1075.               cost: 50000;
  1076.               usable: false;
  1077.               pic: 'SPLATING';
  1078.               picnum: 45),
  1079.  
  1080.              (num: 0;
  1081.               var1: 0;
  1082.               var2: 0;
  1083.               x: 0;
  1084.               y: 0;
  1085.               z: 0;
  1086.               devapp: cyceye;
  1087.               useleft: 0;
  1088.               maxuse: 0;
  1089.               decuse: false;
  1090.               name: 'Cyclops Eye';
  1091.               store: [];
  1092.               cost: 500;
  1093.               usable: false;
  1094.               pic: 'CYCEYE';
  1095.               picnum: 39),
  1096.  
  1097.              (num: 0;
  1098.               var1: 0;
  1099.               var2: 0;
  1100.               x: 0;
  1101.               y: 0;
  1102.               z: 0;
  1103.               devapp: deathbadge;
  1104.               useleft: 0;
  1105.               maxuse: 0;
  1106.               decuse: false;
  1107.               name: 'Death Badge';
  1108.               store: [];
  1109.               cost: 5000;
  1110.               usable: false;
  1111.               pic: 'Dbadge';
  1112.               picnum: 38),
  1113.  
  1114.              (num: 0;
  1115.               var1: 0;
  1116.               var2: 0;
  1117.               x: 0;
  1118.               y: 0;
  1119.               z: 0;
  1120.               devapp: warper;
  1121.               useleft: 5;
  1122.               maxuse: 5;
  1123.               decuse: True;
  1124.               name: 'Warper';
  1125.               store: [];
  1126.               cost: 100000;
  1127.               usable: true;
  1128.               pic: 'WARPER';
  1129.               picnum: 36),
  1130.  
  1131.  
  1132.              (num: 0;
  1133.               var1: 0;
  1134.               var2: 0;
  1135.               x: 0;
  1136.               y: 0;
  1137.               z: 0;
  1138.               devapp: genobjapp;
  1139.               useleft: 0;
  1140.               maxuse: 0;
  1141.               decuse: false;
  1142.               name: 'Communicator';
  1143.               store: [];
  1144.               cost: 1000;
  1145.               usable: true;
  1146.               pic: 'COMMUN';
  1147.               picnum: 49),
  1148.  
  1149.              (num: 0;
  1150.               var1: 25;
  1151.               var2: 0;
  1152.               x: 0;
  1153.               y: 0;
  1154.               z: 0;
  1155.               devapp: reactor;
  1156.               useleft: 0;
  1157.               maxuse: 0;
  1158.               decuse: false;
  1159.               name: 'Windmill';
  1160.               store: [basereact];
  1161.               cost: 5000;
  1162.               usable: false;
  1163.               pic: 'BRWMILL';
  1164.               picnum: 0),
  1165.  
  1166.              (num: 0;
  1167.               var1: 100;
  1168.               var2: 0;
  1169.               x: 0;
  1170.               y: 0;
  1171.               z: 0;
  1172.               devapp: reactor;
  1173.               useleft: 0;
  1174.               maxuse: 0;
  1175.               decuse: false;
  1176.               name: 'Solar Cells';
  1177.               store: [basereact];
  1178.               cost: 25000;
  1179.               usable: false;
  1180.               pic: 'BRSCELL';
  1181.               picnum: 0),
  1182.  
  1183.              (num: 0;
  1184.               var1: 135;
  1185.               var2: 0;
  1186.               x: 0;
  1187.               y: 0;
  1188.               z: 0;
  1189.               devapp: reactor;
  1190.               useleft: 0;
  1191.               maxuse: 0;
  1192.               decuse: false;
  1193.               name: 'Solar Array';
  1194.               store: [basereact];
  1195.               cost: 40000;
  1196.               usable: false;
  1197.               pic: 'BRSARRAY';
  1198.               picnum: 0),
  1199.  
  1200.              (num: 0;
  1201.               var1: 200;
  1202.               var2: 0;
  1203.               x: 0;
  1204.               y: 0;
  1205.               z: 0;
  1206.               devapp: reactor;
  1207.               useleft: 0;
  1208.               maxuse: 0;
  1209.               decuse: false;
  1210.               name: 'Fusion';
  1211.               store: [basereact];
  1212.               cost: 75000;
  1213.               usable: false;
  1214.               pic: 'BRFUSION';
  1215.               picnum: 0),
  1216.  
  1217.              (num: 0;
  1218.               var1: 300;
  1219.               var2: 0;
  1220.               x: 0;
  1221.               y: 0;
  1222.               z: 0;
  1223.               devapp: reactor;
  1224.               useleft: 0;
  1225.               maxuse: 0;
  1226.               decuse: false;
  1227.               name: 'Cold Fusion';
  1228.               store: [basereact];
  1229.               cost: 200000;
  1230.               usable: false;
  1231.               pic: 'BRCFUS';
  1232.               picnum: 0),
  1233.  
  1234.              (num: 0;
  1235.               var1: 350;
  1236.               var2: 0;
  1237.               x: 0;
  1238.               y: 0;
  1239.               z: 0;
  1240.               devapp: reactor;
  1241.               useleft: 0;
  1242.               maxuse: 0;
  1243.               decuse: false;
  1244.               name: 'Neutron Turbine';
  1245.               store: [basereact];
  1246.               cost: 300000;
  1247.               usable: false;
  1248.               pic: 'BRNTURB';
  1249.               picnum: 0),
  1250.  
  1251.              (num: 0;                      {obsolete}
  1252.               var1: 0;
  1253.               var2: 0;
  1254.               x: 0;
  1255.               y: 0;
  1256.               z: 0;
  1257.               devapp: comm;
  1258.               useleft: 0;
  1259.               maxuse: 0;
  1260.               decuse: false;
  1261.               name: 'Std. Comset';
  1262.               store: [];
  1263.               cost: 10000;
  1264.               usable: false;
  1265.               pic: 'BCOMSET';
  1266.               picnum: 0),
  1267.  
  1268.              (num: 0;
  1269.               var1: 35;
  1270.               var2: 35;
  1271.               x: 0;
  1272.               y: 0;
  1273.               z: 0;
  1274.               devapp: deffield;
  1275.               useleft: 0;
  1276.               maxuse: 0;
  1277.               decuse: false;
  1278.               name: 'Energy Bars';
  1279.               store: [basedef];
  1280.               cost: 10000;
  1281.               usable: false;
  1282.               pic: 'BDEBARS';
  1283.               picnum: 0),
  1284.  
  1285.              (num: 0;
  1286.               var1: 75;
  1287.               var2: 75;
  1288.               x: 0;
  1289.               y: 0;
  1290.               z: 0;
  1291.               devapp: deffield;
  1292.               useleft: 0;
  1293.               maxuse: 0;
  1294.               decuse: false;
  1295.               name: 'Energy Screen';
  1296.               store: [basedef];
  1297.               cost: 20000;
  1298.               usable: false;
  1299.               pic: 'BDESCRN';
  1300.               picnum: 0),
  1301.  
  1302.              (num: 0;
  1303.               var1: 150;
  1304.               var2: 150;
  1305.               x: 0;
  1306.               y: 0;
  1307.               z: 0;
  1308.               devapp: deffield;
  1309.               useleft: 0;
  1310.               maxuse: 0;
  1311.               decuse: false;
  1312.               name: 'Energy Wall';
  1313.               store: [basedef];
  1314.               cost: 100000;
  1315.               usable: false;
  1316.               pic: 'BDEWALL';
  1317.               picnum: 0),
  1318.  
  1319.              (num: 0;
  1320.               var1: 200;
  1321.               var2: 200;
  1322.               x: 0;
  1323.               y: 0;
  1324.               z: 0;
  1325.               devapp: deffield;
  1326.               useleft: 0;
  1327.               maxuse: 0;
  1328.               decuse: false;
  1329.               name: 'Neutron Zone';
  1330.               store: [basedef];
  1331.               cost: 250000;
  1332.               usable: false;
  1333.               pic: 'BDNZONE';
  1334.               picnum: 0),
  1335.  
  1336.              (num: 0;
  1337.               var1: 005010; {*** 0510}
  1338.               var2: 0;
  1339.               x: 0;
  1340.               y: 0;
  1341.               z: 0;
  1342.               devapp: moat;
  1343.               useleft: 0;
  1344.               maxuse: 0;
  1345.               decuse: false;
  1346.               name: 'Dirty Water';
  1347.               store: [basemoat];
  1348.               cost: 5000;
  1349.               usable: false;
  1350.               pic: 'BMDWATR';
  1351.               picnum: 0),
  1352.  
  1353.              (num: 0;
  1354.               var1: 009012; {*** 0912}
  1355.               var2: 0;
  1356.               x: 0;
  1357.               y: 0;
  1358.               z: 0;
  1359.               devapp: moat;
  1360.               useleft: 0;
  1361.               maxuse: 0;
  1362.               decuse: false;
  1363.               name: 'Water/Aligater';
  1364.               store: [basemoat];
  1365.               cost: 15000;
  1366.               usable: false;
  1367.               pic: 'BMALIG';
  1368.               picnum: 0),
  1369.  
  1370.              (num: 0;
  1371.               var1: 012015; {*** 1215}
  1372.               var2: 0;
  1373.               x: 0;
  1374.               y: 0;
  1375.               z: 0;
  1376.               devapp: moat;
  1377.               useleft: 0;
  1378.               maxuse: 0;
  1379.               decuse: false;
  1380.               name: 'Acid';
  1381.               store: [basemoat];
  1382.               cost: 30000;
  1383.               usable: false;
  1384.               pic: 'BMACID';
  1385.               picnum: 0),
  1386.  
  1387.              (num: 0;
  1388.               var1: 014018; {*** 1418}
  1389.               var2: 0;
  1390.               x: 0;
  1391.               y: 0;
  1392.               z: 0;
  1393.               devapp: moat;
  1394.               useleft: 0;
  1395.               maxuse: 0;
  1396.               decuse: false;
  1397.               name: 'Flaming Acid';
  1398.               store: [basemoat];
  1399.               cost: 75000;
  1400.               usable: false;
  1401.               pic: 'BMFLAME';
  1402.               picnum: 0),
  1403.  
  1404.              (num: 0;
  1405.               var1: 5010; {*** 510}
  1406.               var2: 0;
  1407.               x: 0;
  1408.               y: 0;
  1409.               z: 0;
  1410.               devapp: bweap;
  1411.               useleft: 0;
  1412.               maxuse: 0;
  1413.               decuse: false;
  1414.               name: 'RoboPistol';
  1415.               store: [baseweap];
  1416.               cost: 10000;
  1417.               usable: false;
  1418.               pic: 'BWRPIST';
  1419.               picnum: 0),
  1420.  
  1421.              (num: 0;
  1422.               var1: 7012; {*** 712}
  1423.               var2: 0;
  1424.               x: 0;
  1425.               y: 0;
  1426.               z: 0;
  1427.               devapp: bweap;
  1428.               useleft: 0;
  1429.               maxuse: 0;
  1430.               decuse: false;
  1431.               name: 'RoboCannon';
  1432.               store: [baseweap];
  1433.               cost: 20000;
  1434.               usable: false;
  1435.               pic: 'BWRCAN';
  1436.               picnum: 0),
  1437.  
  1438.              (num: 0;
  1439.               var1: 010015; {*** 1015}
  1440.               var2: 0;
  1441.               x: 0;
  1442.               y: 0;
  1443.               z: 0;
  1444.               devapp: bweap;
  1445.               useleft: 0;
  1446.               maxuse: 0;
  1447.               decuse: false;
  1448.               name: 'RoboPhaser';
  1449.               store: [baseweap];
  1450.               cost: 60000;
  1451.               usable: false;
  1452.               pic: 'BWRPHAS';
  1453.               picnum: 0),
  1454.  
  1455.              (num: 0;
  1456.               var1: 013020; {*** 1320}
  1457.               var2: 0;
  1458.               x: 0;
  1459.               y: 0;
  1460.               z: 0;
  1461.               devapp: bweap;
  1462.               useleft: 0;
  1463.               maxuse: 0;
  1464.               decuse: false;
  1465.               name: 'RoboGrav';
  1466.               store: [baseweap];
  1467.               cost: 150000;
  1468.               usable: false;
  1469.               pic: 'BWRGRAV';
  1470.               picnum: 0),
  1471.  
  1472.              (num: 0;                  {obsolete}
  1473.               var1: 0;
  1474.               var2: 0;
  1475.               x: 0;
  1476.               y: 0;
  1477.               z: 0;
  1478.               devapp: tele;
  1479.               useleft: 0;
  1480.               maxuse: 0;
  1481.               decuse: false;
  1482.               name: 'Teleporter';
  1483.               store: [];
  1484.               cost: 100000;
  1485.               usable: false;
  1486.               pic: 'BTSTD';
  1487.               picnum: 0),
  1488.  
  1489.              (num: 0;
  1490.               var1: 0;
  1491.               var2: 0;
  1492.               x: 0;
  1493.               y: 0;
  1494.               z: 0;
  1495.               devapp: laptop;
  1496.               useleft: 0;
  1497.               maxuse: 0;
  1498.               decuse: false;
  1499.               name: 'Laptop';
  1500.               store: [computer];
  1501.               cost: 5000;
  1502.               usable: true;
  1503.               pic: 'LAPTOP';
  1504.               picnum: 50),
  1505.  
  1506.              (num: 0;
  1507.               var1: 1;
  1508.               var2: 0;
  1509.               x: 0;
  1510.               y: 0;
  1511.               z: 0;
  1512.               devapp: rom;
  1513.               useleft: 0;
  1514.               maxuse: 0;
  1515.               decuse: false;
  1516.               name: 'ROM: Notes';
  1517.               store: [computer];
  1518.               cost: 5000;
  1519.               usable: false;
  1520.               pic: 'ROMDISK';
  1521.               picnum: 53),
  1522.  
  1523.              (num: 0;
  1524.               var1: 2;
  1525.               var2: 0;
  1526.               x: 0;
  1527.               y: 0;
  1528.               z: 0;
  1529.               devapp: rom;
  1530.               useleft: 0;
  1531.               maxuse: 0;
  1532.               decuse: false;
  1533.               name: 'ROM: AutoNav';
  1534.               store: [computer];
  1535.               cost: 25000;
  1536.               usable: false;
  1537.               pic: 'ROMDISK';
  1538.               picnum: 53),
  1539.  
  1540.              (num: 0;
  1541.               var1: 4;
  1542.               var2: 0;
  1543.               x: 0;
  1544.               y: 0;
  1545.               z: 0;
  1546.               devapp: rom;
  1547.               useleft: 0;
  1548.               maxuse: 0;
  1549.               decuse: false;
  1550.               name: 'ROM: Transfer';
  1551.               store: [computer];
  1552.               cost: 55000;
  1553.               usable: false;
  1554.               pic: 'ROMDISK';
  1555.               picnum: 53),
  1556.  
  1557.              (num: 0;
  1558.               var1: 8;
  1559.               var2: 0;
  1560.               x: 0;
  1561.               y: 0;
  1562.               z: 0;
  1563.               devapp: rom;
  1564.               useleft: 0;
  1565.               maxuse: 0;
  1566.               decuse: false;
  1567.               name: 'ROM: Rankings';
  1568.               store: [computer];
  1569.               cost: 750;
  1570.               usable: false;
  1571.               pic: 'ROMDISK';
  1572.               picnum: 53),
  1573.  
  1574.              (num: 0;
  1575.               var1: 16;
  1576.               var2: 0;
  1577.               x: 0;
  1578.               y: 0;
  1579.               z: 0;
  1580.               devapp: rom;
  1581.               useleft: 0;
  1582.               maxuse: 0;
  1583.               decuse: false;
  1584.               name: 'ROM: ViewLog';
  1585.               store: [computer];
  1586.               cost: 750;
  1587.               usable: false;
  1588.               pic: 'ROMDISK';
  1589.               picnum: 53),
  1590.  
  1591.              (num: 0;
  1592.               var1: 32;
  1593.               var2: 0;
  1594.               x: 0;
  1595.               y: 0;
  1596.               z: 0;
  1597.               devapp: rom;
  1598.               useleft: 0;
  1599.               maxuse: 0;
  1600.               decuse: false;
  1601.               name: 'ROM: Em-Warp';
  1602.               store: [];
  1603.               cost: 60000;
  1604.               usable: false;
  1605.               pic: 'ROMDISK';
  1606.               picnum: 53),
  1607.  
  1608.              (num: 0;
  1609.               var1: 64;
  1610.               var2: 0;
  1611.               x: 0;
  1612.               y: 0;
  1613.               z: 0;
  1614.               devapp: rom;
  1615.               useleft: 0;
  1616.               maxuse: 0;
  1617.               decuse: false;
  1618.               name: 'ROM: FortList';
  1619.               store: [computer];
  1620.               cost: 1500;
  1621.               usable: false;
  1622.               pic: 'ROMDISK';
  1623.               picnum: 53),
  1624.  
  1625.              (num: 0;
  1626.               var1: 128;
  1627.               var2: 0;
  1628.               x: 0;
  1629.               y: 0;
  1630.               z: 0;
  1631.               devapp: rom;
  1632.               useleft: 0;
  1633.               maxuse: 0;
  1634.               decuse: false;
  1635.               name: 'ROM: Diet';
  1636.               store: [computer];
  1637.               cost: 5000;
  1638.               usable: false;
  1639.               pic: 'ROMDISK';
  1640.               picnum: 53),
  1641.  
  1642.              (num: 0;
  1643.               var1: 256;
  1644.               var2: 0;
  1645.               x: 0;
  1646.               y: 0;
  1647.               z: 0;
  1648.               devapp: rom;
  1649.               useleft: 0;
  1650.               maxuse: 0;
  1651.               decuse: false;
  1652.               name: 'ROM: C-Stats';
  1653.               store: [computer];
  1654.               cost: 1000;
  1655.               usable: false;
  1656.               pic: 'ROMDISK';
  1657.               picnum: 53),
  1658.  
  1659.              (num: 0;
  1660.               var1: 512;
  1661.               var2: 0;
  1662.               x: 0;
  1663.               y: 0;
  1664.               z: 0;
  1665.               devapp: rom;
  1666.               useleft: 0;
  1667.               maxuse: 0;
  1668.               decuse: false;
  1669.               name: 'ROM: LR-Scan';
  1670.               store: [computer];
  1671.               cost: 75000;
  1672.               usable: false;
  1673.               pic: 'ROMDISK';
  1674.               picnum: 53),
  1675.  
  1676.              (num: 0;
  1677.               var1: 1024;
  1678.               var2: 0;
  1679.               x: 0;
  1680.               y: 0;
  1681.               z: 0;
  1682.               devapp: rom;
  1683.               useleft: 0;
  1684.               maxuse: 0;
  1685.               decuse: false;
  1686.               name: 'ROM: Scanner';
  1687.               store: [computer];
  1688.               cost: 75000;
  1689.               usable: false;
  1690.               pic: 'ROMDISK';
  1691.               picnum: 53),
  1692.  
  1693.              (num: 0;
  1694.               var1: 2048;
  1695.               var2: 0;
  1696.               x: 0;
  1697.               y: 0;
  1698.               z: 0;
  1699.               devapp: rom;
  1700.               useleft: 0;
  1701.               maxuse: 0;
  1702.               decuse: false;
  1703.               name: 'ROM: TroyInfo';
  1704.               store: [troydisk];
  1705.               cost: 0;
  1706.               usable: false;
  1707.               pic: 'ROMDISK';
  1708.               picnum: 53),
  1709.  
  1710.              (num: 0;
  1711.               var1: 4096;
  1712.               var2: 0;
  1713.               x: 0;
  1714.               y: 0;
  1715.               z: 0;
  1716.               devapp: rom;
  1717.               useleft: 0;
  1718.               maxuse: 0;
  1719.               decuse: false;
  1720.               name: 'ROM: Commlink';
  1721.               store: [];
  1722.               cost: 0;
  1723.               usable: false;
  1724.               pic: 'ROMDISK';
  1725.               picnum: 53),
  1726.  
  1727.              (num: 0;
  1728.               var1: 8192;
  1729.               var2: 0;
  1730.               x: 0;
  1731.               y: 0;
  1732.               z: 0;
  1733.               devapp: rom;
  1734.               useleft: 0;
  1735.               maxuse: 0;
  1736.               decuse: false;
  1737.               name: 'ROM: Tetris';
  1738.               store: [];
  1739.               cost: 5000;
  1740.               usable: false;
  1741.               pic: 'ROMDISK';
  1742.               picnum: 53),
  1743.  
  1744.              (num: 0;
  1745.               var1: 16384;
  1746.               var2: 0;
  1747.               x: 0;
  1748.               y: 0;
  1749.               z: 0;
  1750.               devapp: rom;
  1751.               useleft: 0;
  1752.               maxuse: 0;
  1753.               decuse: false;
  1754.               name: 'ROM: Appraise';
  1755.               store: [computer];
  1756.               cost: 1500;
  1757.               usable: false;
  1758.               pic: 'ROMDISK';
  1759.               picnum: 53),
  1760.  
  1761.              (num: 0;
  1762.               var1: 32768;
  1763.               var2: 0;
  1764.               x: 0;
  1765.               y: 0;
  1766.               z: 0;
  1767.               devapp: rom;
  1768.               useleft: 0;
  1769.               maxuse: 0;
  1770.               decuse: false;
  1771.               name: 'ROM: TCode';
  1772.               store: [];
  1773.               cost: 25000;
  1774.               usable: false;
  1775.               pic: 'ROMDISK';
  1776.               picnum: 53),
  1777.  
  1778.              (num: 0;
  1779.               var1: 0;
  1780.               var2: 0;
  1781.               x: 0;
  1782.               y: 0;
  1783.               z: 0;
  1784.               devapp: troysteakp;
  1785.               useleft: 0;
  1786.               maxuse: 0;
  1787.               decuse: false;
  1788.               name: 'Troy''s Steaks';
  1789.               store: [troysteak];
  1790.               cost: 0;
  1791.               usable: false;
  1792.               pic: 'STEAK';
  1793.               picnum: 58),
  1794.  
  1795.              (num: 0;
  1796.               var1: 0;
  1797.               var2: 0;
  1798.               x: 0;
  1799.               y: 0;
  1800.               z: 0;
  1801.               devapp: troysteakp;
  1802.               useleft: 0;
  1803.               maxuse: 0;
  1804.               decuse: false;
  1805.               name: 'B.A.D. Device';
  1806.               store: [];
  1807.               cost: 0;
  1808.               usable: false;
  1809.               pic: 'BAD';
  1810.               picnum: 55),
  1811.  
  1812.              (num: 0;
  1813.               var1: 0;
  1814.               var2: 0;
  1815.               x: 0;
  1816.               y: 0;
  1817.               z: 0;
  1818.               devapp: recharge;
  1819.               useleft: 3;
  1820.               maxuse: 3;
  1821.               decuse: true;
  1822.               name: 'Recharger';
  1823.               store: [supp];
  1824.               cost: 250000;
  1825.               usable: true;
  1826.               pic: 'RECHRGE';
  1827.               picnum: 66),
  1828.  
  1829.              (num: 0;
  1830.               var1: 0;
  1831.               var2: 0;
  1832.               x: 0;
  1833.               y: 0;
  1834.               z: 0;
  1835.               devapp: pylonkey;
  1836.               useleft: 0;
  1837.               maxuse: 0;
  1838.               decuse: false;
  1839.               name: 'Pylon Key';
  1840.               store: [town2];
  1841.               cost: 5000;
  1842.               usable: false;
  1843.               pic: 'PKEY';
  1844.               picnum: 70),
  1845.  
  1846.              (num: 0;
  1847.               var1: 50;
  1848.               var2: 1000;
  1849.               x: 0;
  1850.               y: 0;
  1851.               z: 0;
  1852.               devapp: VortexBatt;
  1853.               useleft: 0;
  1854.               maxuse: 0;
  1855.               decuse: false;
  1856.               name: 'Vortex Cell';
  1857.               store: [eeee];
  1858.               cost: 150000;
  1859.               usable: true;
  1860.               pic: 'VORTCELL';
  1861.               picnum: 76),           {71}
  1862.  
  1863.              (num: 0;
  1864.               var1: 75;
  1865.               var2: 1250;
  1866.               x: 0;
  1867.               y: 0;
  1868.               z: 0;
  1869.               devapp: VortexBatt;
  1870.               useleft: 0;
  1871.               maxuse: 1;
  1872.               decuse: false;
  1873.               name: 'Kralox Cell';
  1874.               store: [eeee];
  1875.               cost: 300000;
  1876.               usable: true;
  1877.               pic: 'KRALCELL';
  1878.               picnum: 78),           {72}
  1879.  
  1880.              (num: 0;
  1881.               var1: 90;
  1882.               var2: 1500;
  1883.               x: 0;
  1884.               y: 0;
  1885.               z: 0;
  1886.               devapp: VortexBatt;
  1887.               useleft: 0;
  1888.               maxuse: 2;
  1889.               decuse: false;
  1890.               name: 'Vitron Cell';
  1891.               store: [eeee];
  1892.               cost: 800000;
  1893.               usable: true;
  1894.               pic: 'VITRCELL';
  1895.               picnum: 77),           {73}
  1896.  
  1897.              (num: 0;
  1898.               var1: 15;
  1899.               var2: 0;
  1900.               x: 0;
  1901.               y: 0;
  1902.               z: 0;
  1903.               devapp: medline;
  1904.               useleft: 0;
  1905.               maxuse: 0;
  1906.               decuse: false;
  1907.               name: 'Zilpox Medline';
  1908.               store: [eeee];
  1909.               cost: 130000;
  1910.               usable: false;
  1911.               pic: 'ZILMED';
  1912.               picnum: 90),
  1913.  
  1914.              (num: 0;
  1915.               var1: 25;
  1916.               var2: 0;
  1917.               x: 0;
  1918.               y: 0;
  1919.               z: 0;
  1920.               devapp: medline;
  1921.               useleft: 0;
  1922.               maxuse: 0;
  1923.               decuse: false;
  1924.               name: 'Stilzi Medline';
  1925.               store: [eeee];
  1926.               cost: 290000;
  1927.               usable: false;
  1928.               pic: 'STIMED';
  1929.               picnum: 91),
  1930.  
  1931.              (num: 0;
  1932.               var1: 08030045; {*** 083045}
  1933.               var2: 0;
  1934.               x: 0;
  1935.               y: 0;
  1936.               z: 0;
  1937.               devapp: rangeweapon;
  1938.               useleft: 0;
  1939.               maxuse: 0;
  1940.               decuse: false;
  1941.               name: 'Pulse Rifle';
  1942.               store: [eeee];
  1943.               cost: 500000;
  1944.               usable: false;
  1945.               pic: 'PRIFLE';
  1946.               picnum: 86),
  1947.  
  1948.              (num: 0;
  1949.               var1: 08035055; {*** 083555}
  1950.               var2: 0;
  1951.               x: 0;
  1952.               y: 0;
  1953.               z: 0;
  1954.               devapp: rangeweapon;
  1955.               useleft: 0;
  1956.               maxuse: 0;
  1957.               decuse: false;
  1958.               name: 'Pulse Bazooka';
  1959.               store: [eeee];
  1960.               cost: 750000;
  1961.               usable: false;
  1962.               pic: 'PBAZOO';
  1963.               picnum: 89),
  1964.  
  1965.              (num: 0;
  1966.               var1: 08040055; {*** 084055}
  1967.               var2: 0;
  1968.               x: 0;
  1969.               y: 0;
  1970.               z: 0;
  1971.               devapp: rangeweapon;
  1972.               useleft: 0;
  1973.               maxuse: 0;
  1974.               decuse: false;
  1975.               name: 'Xenon''s Surprise';
  1976.               store: [eeee];
  1977.               cost: 1000000;
  1978.               usable: false;
  1979.               pic: 'XENON';
  1980.               picnum: 119),
  1981.  
  1982.              (num: 0;
  1983.               var1: 08;
  1984.               var2: 75;
  1985.               x: 0;
  1986.               y: 0;
  1987.               z: 0;
  1988.               devapp: ammop;
  1989.               useleft: 0;
  1990.               maxuse: 0;
  1991.               decuse: false;
  1992.               name: 'Trivex Pack';
  1993.               store: [eeee];
  1994.               cost: 125000;
  1995.               usable: false;
  1996.               pic: 'TPACK';
  1997.               picnum: 92),
  1998.  
  1999.              (num: 0;
  2000.               var1: 00045060; {*** 004560}
  2001.               var2: 0;
  2002.               x: 0;
  2003.               y: 0;
  2004.               z: 0;
  2005.               devapp: rangeweapon;
  2006.               useleft: 0;
  2007.               maxuse: 0;
  2008.               decuse: false;
  2009.               name: 'DreamBlaster';
  2010.               store: [];
  2011.               cost: 2000000;
  2012.               usable: false;
  2013.               pic: 'DREAMBLA';
  2014.               picnum: 114),
  2015.  
  2016.              (num: 0;
  2017.               var1: 00020025; {*** 002025}
  2018.               var2: 0;
  2019.               x: 0;
  2020.               y: 0;
  2021.               z: 0;
  2022.               devapp: weapon;
  2023.               useleft: 0;
  2024.               maxuse: 0;
  2025.               decuse: false;
  2026.               name: 'DreamSabre';
  2027.               store: [];
  2028.               cost: 1250000;
  2029.               usable: false;
  2030.               pic: 'DREAMSAB';
  2031.               picnum: 74),               {79}
  2032.  
  2033.              (num: 0;
  2034.               var1: flagarmorrecharge;
  2035.               var2: 70;
  2036.               x: 0;
  2037.               y: 0;
  2038.               z: 0;
  2039.               devapp: armor;
  2040.               useleft: 800;
  2041.               maxuse: 800;
  2042.               decuse: false;
  2043.               name: 'DreamArmor';
  2044.               store: [];
  2045.               cost: 1250000;
  2046.               usable: false;
  2047.               pic: 'DREAMARM';
  2048.               picnum: 071),                {80}
  2049.  
  2050.              (num: 0;
  2051.               var1: 250;
  2052.               var2: 250;
  2053.               x: 0;
  2054.               y: 0;
  2055.               z: 0;
  2056.               devapp: deffield;
  2057.               useleft: 0;
  2058.               maxuse: 0;
  2059.               decuse: false;
  2060.               name: 'Dimensional Wall';
  2061.               store: [basedef];
  2062.               cost: 750000;
  2063.               usable: false;
  2064.               pic: 'BDDWALL';
  2065.               picnum: 0),
  2066.  
  2067.              (num: 0;
  2068.               var1: 300;
  2069.               var2: 300;
  2070.               x: 0;
  2071.               y: 0;
  2072.               z: 0;
  2073.               devapp: deffield;
  2074.               useleft: 0;
  2075.               maxuse: 0;
  2076.               decuse: false;
  2077.               name: 'Vortex Barrier';
  2078.               store: [basedef];
  2079.               cost: 1000000;
  2080.               usable: false;
  2081.               pic: 'BDVBAR';
  2082.               picnum: 0),
  2083.  
  2084.              (num: 0;
  2085.               var1: 350;
  2086.               var2: 350;
  2087.               x: 0;
  2088.               y: 0;
  2089.               z: 0;
  2090.               devapp: deffield;
  2091.               useleft: 0;
  2092.               maxuse: 0;
  2093.               decuse: false;
  2094.               name: 'Vitronic Shield';
  2095.               store: [basedef];
  2096.               cost: 2500000;
  2097.               usable: false;
  2098.               pic: 'BDVIT';
  2099.               picnum: 0),
  2100.  
  2101.              (num: 0;
  2102.               var1: 020025; {*** 2025}
  2103.               var2: 0;
  2104.               x: 0;
  2105.               y: 0;
  2106.               z: 0;
  2107.               devapp: moat;
  2108.               useleft: 0;
  2109.               maxuse: 0;
  2110.               decuse: false;
  2111.               name: 'Energy Swamp';
  2112.               store: [basemoat];
  2113.               cost: 250000;
  2114.               usable: false;
  2115.               pic: 'BMESWAMP';
  2116.               picnum: 0),
  2117.  
  2118.              (num: 0;
  2119.               var1: 018025; {*** 1825}
  2120.               var2: 0;
  2121.               x: 0;
  2122.               y: 0;
  2123.               z: 0;
  2124.               devapp: bweap;
  2125.               useleft: 0;
  2126.               maxuse: 0;
  2127.               decuse: false;
  2128.               name: 'Neutron Torch';
  2129.               store: [baseweap];
  2130.               cost: 500000;
  2131.               usable: false;
  2132.               pic: 'BWNTORCH';
  2133.               picnum: 0),
  2134.  
  2135.              (num: 0;
  2136.               var1: 022030; {*** 2230}
  2137.               var2: 0;
  2138.               x: 0;
  2139.               y: 0;
  2140.               z: 0;
  2141.               devapp: bweap;
  2142.               useleft: 0;
  2143.               maxuse: 0;
  2144.               decuse: false;
  2145.               name: 'Phase Cannon';
  2146.               store: [baseweap];
  2147.               cost: 1500000;
  2148.               usable: false;
  2149.               pic: 'BWPCAN';
  2150.               picnum: 0),
  2151.  
  2152.              (num: 0;
  2153.               var1: 00025035; {*** 002535}
  2154.               var2: 0;
  2155.               x: 0;
  2156.               y: 0;
  2157.               z: 0;
  2158.               devapp: weapon;
  2159.               useleft: 0;
  2160.               maxuse: 0;
  2161.               decuse: false;
  2162.               name: 'Cabal Sceptre';
  2163.               store: [];
  2164.               cost: 5000000;
  2165.               usable: false;
  2166.               pic: 'CABSCEP';
  2167.               picnum: 73),                      {81}
  2168.  
  2169.              (num: 0;
  2170.               var1: 00050070; {*** 005070}
  2171.               var2: flagweapburst+flagweapstun+flagweapacc3;
  2172.               x: 0;
  2173.               y: 0;
  2174.               z: 0;
  2175.               devapp: rangeweapon;
  2176.               useleft: 0;
  2177.               maxuse: 0;
  2178.               decuse: false;
  2179.               name: 'TerrorBlast';
  2180.               store: [];
  2181.               cost: 12000000;
  2182.               usable: false;
  2183.               pic: 'TERBLAST';
  2184.               picnum: 98),
  2185.  
  2186.              (num: 0;
  2187.               var1: flagarmorrecharge;
  2188.               var2: 80;
  2189.               x: 0;
  2190.               y: 0;
  2191.               z: 0;
  2192.               devapp: armor;
  2193.               useleft: 2000;
  2194.               maxuse: 2000;
  2195.               decuse: false;
  2196.               name: 'Quantum Field';
  2197.               store: [];
  2198.               cost: 5000000;
  2199.               usable: false;
  2200.               pic: 'QFIELD';
  2201.               picnum: 0),           {Need a picture}
  2202.  
  2203.              (num: 0;
  2204.               var1: 09050065; {*** 095065}
  2205.               var2: 0;
  2206.               x: 0;
  2207.               y: 0;
  2208.               z: 0;
  2209.               devapp: rangeweapon;
  2210.               useleft: 0;
  2211.               maxuse: 0;
  2212.               decuse: false;
  2213.               name: 'Nuke-O-Matic';
  2214.               store: [eeee];
  2215.               cost: 1500000;
  2216.               usable: false;
  2217.               pic: 'NUKEO';
  2218.               picnum: 103),
  2219.  
  2220.              (num: 0;
  2221.               var1: 07018025; {*** 071825}
  2222.               var2: 0;
  2223.               x: 0;
  2224.               y: 0;
  2225.               z: 0;
  2226.               devapp: weapon;
  2227.               useleft: 0;
  2228.               maxuse: 0;
  2229.               decuse: false;
  2230.               name: 'Fire Sabre';
  2231.               store: [eeee];
  2232.               cost: 600000;
  2233.               usable: false;
  2234.               pic: 'FSABRE';
  2235.               picnum: 72),          {84}
  2236.  
  2237.              (num: 0;
  2238.               var1: 09;
  2239.               var2: 30;
  2240.               x: 0;
  2241.               y: 0;
  2242.               z: 0;
  2243.               devapp: ammop;
  2244.               useleft: 0;
  2245.               maxuse: 0;
  2246.               decuse: false;
  2247.               name: 'Nuke Shell';
  2248.               store: [eeee];
  2249.               cost: 200000;
  2250.               usable: false;
  2251.               pic: 'NSHELL';
  2252.               picnum: 94),
  2253.  
  2254.              (num: 0;
  2255.               var1: flagarmorrecharge;
  2256.               var2: 75;
  2257.               x: 0;
  2258.               y: 0;
  2259.               z: 0;
  2260.               devapp: armor;
  2261.               useleft: 999;
  2262.               maxuse: 999;
  2263.               decuse: false;
  2264.               name: 'Phase Armor';
  2265.               store: [eeee];
  2266.               cost: 1500000;
  2267.               usable: false;
  2268.               pic: 'PHASEARM';
  2269.               picnum: 97),
  2270.  
  2271.              (num: 0;
  2272.               var1: 00025030; {*** 002530}
  2273.               var2: 0;
  2274.               x: 0;
  2275.               y: 0;
  2276.               z: 0;
  2277.               devapp: weapon;
  2278.               useleft: 0;
  2279.               maxuse: 0;
  2280.               decuse: false;
  2281.               name: 'A-Mk.II';
  2282.               store: [];
  2283.               cost: 2000000;
  2284.               usable: false;
  2285.               pic: 'AMKII';
  2286.               picnum: 96),
  2287.  
  2288.              (num: 0;
  2289.               var1: 00050065; {*** 005065}
  2290.               var2: 0;
  2291.               x: 0;
  2292.               y: 0;
  2293.               z: 0;
  2294.               devapp: rangeweapon;
  2295.               useleft: 0;
  2296.               maxuse: 0;
  2297.               decuse: false;
  2298.               name: 'TachyonBlaster';
  2299.               store: [];
  2300.               cost: 2000000;
  2301.               usable: false;
  2302.               pic: 'TACHBLAS';
  2303.               picnum: 93),
  2304.  
  2305.              (num: 0;
  2306.               var1: 0;
  2307.               var2: 70;
  2308.               x: 0;
  2309.               y: 0;
  2310.               z: 0;
  2311.               devapp: stealth;
  2312.               useleft: 0;
  2313.               maxuse: 0;
  2314.               decuse: false;
  2315.               name: 'EnviroBlur';
  2316.               store: [];
  2317.               cost: 60000;
  2318.               usable: true;
  2319.               pic: 'EVLUR';
  2320.               picnum: 95),
  2321.  
  2322.              (num: 0;
  2323.               var1: 0;
  2324.               var2: 0;
  2325.               x: 0;
  2326.               y: 0;
  2327.               z: 0;
  2328.               devapp: unitran;
  2329.               useleft: 0;
  2330.               maxuse: 0;
  2331.               decuse: false;
  2332.               name: 'Uni-Translator';
  2333.               store: [];
  2334.               cost: 50000;
  2335.               usable: true;
  2336.               pic: 'UTRAN';
  2337.               picnum: 75),                    {90}
  2338.  
  2339.              (num: 0;
  2340.               var1: 00005020; {*** 000520}
  2341.               var2: 0;
  2342.               x: 0;
  2343.               y: 0;
  2344.               z: 0;
  2345.               devapp: mine;
  2346.               useleft: 1;
  2347.               maxuse: 1;
  2348.               decuse: false;
  2349.               name: 'Dumb Mine';
  2350.               store: [eeee];
  2351.               cost: 75000;
  2352.               usable: true;
  2353.               pic: 'DMINE';
  2354.               picnum: 79),
  2355.  
  2356.              (num: 0;
  2357.               var1: 01005020; {*** 010520}
  2358.               var2: 0;
  2359.               x: 0;
  2360.               y: 0;
  2361.               z: 0;
  2362.               devapp: mine;
  2363.               useleft: 1;
  2364.               maxuse: 1;
  2365.               decuse: false;
  2366.               name: 'Smart Mine';
  2367.               store: [eeee];
  2368.               cost: 200000;
  2369.               usable: true;
  2370.               pic: 'SMINE';
  2371.               picnum: 80),
  2372.  
  2373.              (num: 0;
  2374.               var1: 00015025; {*** 001525}
  2375.               var2: 0;
  2376.               x: 0;
  2377.               y: 0;
  2378.               z: 0;
  2379.               devapp: mine;
  2380.               useleft: 5;
  2381.               maxuse: 5;
  2382.               decuse: false;
  2383.               name: 'Day Ruiner';
  2384.               store: [kill];
  2385.               cost: 750000;
  2386.               usable: true;
  2387.               pic: 'DRMINE';
  2388.               picnum: 83),
  2389.  
  2390.              (num: 0;
  2391.               var1: 01020035; {*** 012035}
  2392.               var2: 0;
  2393.               x: 0;
  2394.               y: 0;
  2395.               z: 0;
  2396.               devapp: mine;
  2397.               useleft: 5;
  2398.               maxuse: 5;
  2399.               decuse: false;
  2400.               name: 'MegaMine';
  2401.               store: [kill];
  2402.               cost: 2000000;
  2403.               usable: true;
  2404.               pic: 'MMINE';
  2405.               picnum: 84),
  2406.  
  2407.              (num: 0;
  2408.               var1: 01050099; {*** 015099}
  2409.               var2: 0;
  2410.               x: 0;
  2411.               y: 0;
  2412.               z: 0;
  2413.               devapp: mine;
  2414.               useleft: 2;
  2415.               maxuse: 2;
  2416.               decuse: false;
  2417.               name: 'MicroNuke';
  2418.               store: [kill];
  2419.               cost: 5000000;
  2420.               usable: true;
  2421.               pic: 'NMINE';
  2422.               picnum: 87),
  2423.  
  2424.              (num: 0;
  2425.               var1: 65536;
  2426.               var2: 0;
  2427.               x: 0;
  2428.               y: 0;
  2429.               z: 0;
  2430.               devapp: rom;
  2431.               useleft: 0;
  2432.               maxuse: 0;
  2433.               decuse: false;
  2434.               name: 'ROM: History';
  2435.               store: [];
  2436.               cost: 5000;
  2437.               usable: false;
  2438.               pic: 'ROMDISK';
  2439.               picnum: 53),
  2440.  
  2441.              (num: 0;
  2442.               var1: 131072;
  2443.               var2: 0;
  2444.               x: 0;
  2445.               y: 0;
  2446.               z: 0;
  2447.               devapp: rom;
  2448.               useleft: 0;
  2449.               maxuse: 0;
  2450.               decuse: false;
  2451.               name: 'ROM: Windows';
  2452.               store: [];
  2453.               cost: 5000;
  2454.               usable: false;
  2455.               pic: 'ROMDISK';
  2456.               picnum: 53),
  2457.  
  2458.              (num: 0;
  2459.               var1: 262144;
  2460.               var2: 0;
  2461.               x: 0;
  2462.               y: 0;
  2463.               z: 0;
  2464.               devapp: rom;
  2465.               useleft: 0;
  2466.               maxuse: 0;
  2467.               decuse: false;
  2468.               name: 'ROM: Fortinv';
  2469.               store: [];
  2470.               cost: 5000;
  2471.               usable: false;
  2472.               pic: 'ROMDISK';
  2473.               picnum: 53),
  2474.  
  2475.              (num: 0;                         {obsolete}
  2476.               var1: 1;
  2477.               var2: 0;
  2478.               x: 0;
  2479.               y: 0;
  2480.               z: 0;
  2481.               devapp: tele;
  2482.               useleft: 0;
  2483.               maxuse: 0;
  2484.               decuse: false;
  2485.               name: 'Excelsior Teleporter';
  2486.               store: [];
  2487.               cost: 350000;
  2488.               usable: false;
  2489.               pic: 'BTEXC';
  2490.               picnum: 0),
  2491.  
  2492.              (num: 0;
  2493.               var1: 524288;
  2494.               var2: 0;
  2495.               x: 0;
  2496.               y: 0;
  2497.               z: 0;
  2498.               devapp: rom;
  2499.               useleft: 0;
  2500.               maxuse: 0;
  2501.               decuse: false;
  2502.               name: 'ROM: Bartalk';
  2503.               store: [];
  2504.               cost: 5000;
  2505.               usable: false;
  2506.               pic: 'ROMDISK';
  2507.               picnum: 53),
  2508.  
  2509.              (num: 0;
  2510.               var1: 400;
  2511.               var2: 400;
  2512.               x: 0;
  2513.               y: 0;
  2514.               z: 0;
  2515.               devapp: deffield;
  2516.               useleft: 0;
  2517.               maxuse: 0;
  2518.               decuse: false;
  2519.               name: 'Force Wall';
  2520.               store: [basedef];
  2521.               cost: 5000000;
  2522.               usable: false;
  2523.               pic: 'BDFORCE';
  2524.               picnum: 0),
  2525.  
  2526.              (num: 0;
  2527.               var1: 450;
  2528.               var2: 450;
  2529.               x: 0;
  2530.               y: 0;
  2531.               z: 0;
  2532.               devapp: deffield;
  2533.               useleft: 0;
  2534.               maxuse: 0;
  2535.               decuse: false;
  2536.               name: 'Sonic Shield';
  2537.               store: [basedef];
  2538.               cost: 10000000;
  2539.               usable: false;
  2540.               pic: 'BDSONIC';
  2541.               picnum: 0),
  2542.  
  2543.              (num: 0;
  2544.               var1: 500;
  2545.               var2: 500;
  2546.               x: 0;
  2547.               y: 0;
  2548.               z: 0;
  2549.               devapp: deffield;
  2550.               useleft: 0;
  2551.               maxuse: 0;
  2552.               decuse: false;
  2553.               name: 'Zone Shield';
  2554.               store: [basedef];
  2555.               cost: 15000000;
  2556.               usable: false;
  2557.               pic: 'BDZONE';
  2558.               picnum: 0),
  2559.  
  2560.              (num: 0;
  2561.               var1: 550;
  2562.               var2: 550;
  2563.               x: 0;
  2564.               y: 0;
  2565.               z: 0;
  2566.               devapp: deffield;
  2567.               useleft: 0;
  2568.               maxuse: 0;
  2569.               decuse: false;
  2570.               name: 'Black Globe';
  2571.               store: [basedef];
  2572.               cost: 25000000;
  2573.               usable: false;
  2574.               pic: 'BDGLOBE';
  2575.               picnum: 0),
  2576.  
  2577.  
  2578.              (num: 0;
  2579.               var1: 030040; {*** 3040}
  2580.               var2: 0;
  2581.               x: 0;
  2582.               y: 0;
  2583.               z: 0;
  2584.               devapp: moat;
  2585.               useleft: 0;
  2586.               maxuse: 0;
  2587.               decuse: false;
  2588.               name: 'Disolver';
  2589.               store: [basemoat];
  2590.               cost: 1000000;
  2591.               usable: false;
  2592.               pic: 'BMDIS';
  2593.               picnum: 0),
  2594.  
  2595.              (num: 0;
  2596.               var1: 040050; {*** 4050}
  2597.               var2: 0;
  2598.               x: 0;
  2599.               y: 0;
  2600.               z: 0;
  2601.               devapp: moat;
  2602.               useleft: 0;
  2603.               maxuse: 0;
  2604.               decuse: false;
  2605.               name: 'Charged Acid';
  2606.               store: [basemoat];
  2607.               cost: 5000000;
  2608.               usable: false;
  2609.               pic: 'BMCACID';
  2610.               picnum: 0),
  2611.  
  2612.              (num: 0;
  2613.               var1: 050060; {*** 5060}
  2614.               var2: 0;
  2615.               x: 0;
  2616.               y: 0;
  2617.               z: 0;
  2618.               devapp: moat;
  2619.               useleft: 0;
  2620.               maxuse: 0;
  2621.               decuse: false;
  2622.               name: 'Neutron Swamp';
  2623.               store: [basemoat];
  2624.               cost: 10000000;
  2625.               usable: false;
  2626.               pic: 'BMNSWAMP';
  2627.               picnum: 0),
  2628.  
  2629.              (num: 0;
  2630.               var1: 025035; {*** 2535}
  2631.               var2: 0;
  2632.               x: 0;
  2633.               y: 0;
  2634.               z: 0;
  2635.               devapp: bweap;
  2636.               useleft: 0;
  2637.               maxuse: 0;
  2638.               decuse: false;
  2639.               name: 'Destructor';
  2640.               store: [baseweap];
  2641.               cost: 4000000;
  2642.               usable: false;
  2643.               pic: 'BWDEST';
  2644.               picnum: 0),
  2645.  
  2646.              (num: 0;
  2647.               var1: 030040; {*** 3040}
  2648.               var2: 0;
  2649.               x: 0;
  2650.               y: 0;
  2651.               z: 0;
  2652.               devapp: bweap;
  2653.               useleft: 0;
  2654.               maxuse: 0;
  2655.               decuse: false;
  2656.               name: 'Phaser Thrasher';
  2657.               store: [baseweap];
  2658.               cost: 10000000;
  2659.               usable: false;
  2660.               pic: 'BWTHRASH';
  2661.               picnum: 0),
  2662.  
  2663.              (num: 0;
  2664.               var1: 500;
  2665.               var2: 0;
  2666.               x: 0;
  2667.               y: 0;
  2668.               z: 0;
  2669.               devapp: reactor;
  2670.               useleft: 0;
  2671.               maxuse: 0;
  2672.               decuse: false;
  2673.               name: 'Hot Fusion';
  2674.               store: [basereact];
  2675.               cost: 1000000;
  2676.               usable: false;
  2677.               pic: 'BRHFUS';
  2678.               picnum: 0),
  2679.  
  2680.              (num: 0;
  2681.               var1: 750;
  2682.               var2: 0;
  2683.               x: 0;
  2684.               y: 0;
  2685.               z: 0;
  2686.               devapp: reactor;
  2687.               useleft: 0;
  2688.               maxuse: 0;
  2689.               decuse: false;
  2690.               name: 'Mass Energizer';
  2691.               store: [basereact];
  2692.               cost: 5000000;
  2693.               usable: false;
  2694.               pic: 'BRMASSE';
  2695.               picnum: 0),
  2696.  
  2697.              (num: 0;                    {obsolete}
  2698.               var1: 2;
  2699.               var2: 0;
  2700.               x: 0;
  2701.               y: 0;
  2702.               z: 0;
  2703.               devapp: tele;
  2704.               useleft: 0;
  2705.               maxuse: 0;
  2706.               decuse: false;
  2707.               name: 'Transporter';
  2708.               store: [];
  2709.               cost: 20000000;
  2710.               usable: false;
  2711.               pic: 'BTTRANS';
  2712.               picnum: 0),
  2713.  
  2714.              (num: 0;
  2715.               var1: 03020035; {*** 032035}
  2716.               var2: 0;
  2717.               x: 0;
  2718.               y: 0;
  2719.               z: 0;
  2720.               devapp: mine;
  2721.               useleft: 5;
  2722.               maxuse: 5;
  2723.               decuse: false;
  2724.               name: 'Zapper Mine';
  2725.               store: [kill];
  2726.               cost: 8000000;
  2727.               usable: true;
  2728.               pic: 'ZMINE';
  2729.               picnum: 88),
  2730.  
  2731.              (num: 0;
  2732.               var1: 05020035; {*** 052035}
  2733.               var2: 0;
  2734.               x: 0;
  2735.               y: 0;
  2736.               z: 0;
  2737.               devapp: mine;
  2738.               useleft: 5;
  2739.               maxuse: 5;
  2740.               decuse: false;
  2741.               name: 'TeleMine';
  2742.               store: [kill];
  2743.               cost: 8000000;
  2744.               usable: true;
  2745.               pic: 'TMINE';
  2746.               picnum: 85),
  2747.  
  2748.              (num: 0;
  2749.               var1: 07020035; {*** 072035}
  2750.               var2: 0;
  2751.               x: 0;
  2752.               y: 0;
  2753.               z: 0;
  2754.               devapp: mine;
  2755.               useleft: 5;
  2756.               maxuse: 5;
  2757.               decuse: false;
  2758.               name: 'Protector';
  2759.               store: [kill];
  2760.               cost: 15000000;
  2761.               usable: true;
  2762.               pic: 'PMINE';
  2763.               picnum: 81),
  2764.  
  2765.              (num: 0;
  2766.               var1: 072035;
  2767.               var2: 0;
  2768.               x: 0;
  2769.               y: 0;
  2770.               z: 0;
  2771.               devapp: boat;
  2772.               useleft: 0;
  2773.               maxuse: 0;
  2774.               decuse: false;
  2775.               name: 'MiniRaft';
  2776.               store: [supp,town2,town3];
  2777.               cost: 50000;
  2778.               usable: true;
  2779.               pic: 'MRAFT';
  2780.               picnum: 82),
  2781.  
  2782.              (num: 0;
  2783.               var1: 005020; {*** 0520}
  2784.               var2: 0;
  2785.               x: 0;
  2786.               y: 0;
  2787.               z: 0;
  2788.               devapp: weapon;
  2789.               useleft: 0;
  2790.               maxuse: 0;
  2791.               decuse: false;
  2792.               name: 'Storm Force';
  2793.               store: [];
  2794.               cost: 1000;
  2795.               usable: false;
  2796.               pic: '';
  2797.               picnum: 0),   {need a picture}
  2798.  
  2799.              (num: 0;
  2800.               var1: 0;
  2801.               var2: 0;
  2802.               x: 0;
  2803.               y: 0;
  2804.               z: 0;
  2805.               devapp: mapper;
  2806.               useleft: 0;
  2807.               maxuse: 0;
  2808.               decuse: false;
  2809.               name: 'Mapper';
  2810.               store: [kill];
  2811.               cost: 6000000;
  2812.               usable: true;
  2813.               pic: '';
  2814.               picnum: 118),
  2815.  
  2816.              (num: 0;
  2817.               var1: 1;
  2818.               var2: 0;
  2819.               x: 0;
  2820.               y: 0;
  2821.               z: 0;
  2822.               devapp: rations;
  2823.               useleft: 25;
  2824.               maxuse: 25;
  2825.               decuse: true;
  2826.               name: 'Kelp Rations';
  2827.               store: [];
  2828.               cost: 3000;
  2829.               usable: true;
  2830.               pic: '';
  2831.               picnum: 124),
  2832.  
  2833.              (num: 0;
  2834.               var1: 005012; {*** 0512}
  2835.               var2: 0;
  2836.               x: 0;
  2837.               y: 0;
  2838.               z: 0;
  2839.               devapp: weapon;
  2840.               useleft: 0;
  2841.               maxuse: 0;
  2842.               decuse: false;
  2843.               name: 'Kelp Stinger';
  2844.               store: [];
  2845.               cost: 7500;
  2846.               usable: false;
  2847.               pic: '';
  2848.               picnum: 0),  {need a picture}
  2849.  
  2850.              (num: 0;
  2851.               var1: 0;
  2852.               var2: 60;
  2853.               x: 0;
  2854.               y: 0;
  2855.               z: 0;
  2856.               devapp: armor;
  2857.               useleft: 250;
  2858.               maxuse: 250;
  2859.               decuse: false;
  2860.               name: 'Thick Weeds';
  2861.               store: [];
  2862.               cost: 100000;
  2863.               usable: false;
  2864.               pic: '';
  2865.               picnum: 0), {need a picture}
  2866.  
  2867.              (num: 0;
  2868.               var1: 0;
  2869.               var2: 0;
  2870.               x: 0;
  2871.               y: 0;
  2872.               z: 0;
  2873.               devapp: cryo;
  2874.               useleft: 0;
  2875.               maxuse: 0;
  2876.               decuse: false;
  2877.               name: 'Cryo-Unit';
  2878.               store: [town7];
  2879.               cost: 250000;
  2880.               usable: true;
  2881.               pic: '';
  2882.               picnum: 113),
  2883.  
  2884.              (num: 0;
  2885.               var1: 109005010; {*** 1090510}
  2886.               var2: 0;
  2887.               x: 0;
  2888.               y: 0;
  2889.               z: 0;
  2890.               devapp: mine;
  2891.               useleft: 1;
  2892.               maxuse: 1;
  2893.               decuse: false;
  2894.               name: 'Robomine 2';
  2895.               store: [kill];
  2896.               cost: 2000000;
  2897.               usable: true;
  2898.               pic: '';
  2899.               picnum: 0), {need a picture}
  2900.  
  2901.              (num: 0;
  2902.               var1: 209005010; {*** 2090510}
  2903.               var2: 0;
  2904.               x: 0;
  2905.               y: 0;
  2906.               z: 0;
  2907.               devapp: mine;
  2908.               useleft: 1;
  2909.               maxuse: 1;
  2910.               decuse: false;
  2911.               name: 'Robomine 3';
  2912.               store: [kill];
  2913.               cost: 4000000;
  2914.               usable: true;
  2915.               pic: '';
  2916.               picnum: 0), {need a picture}
  2917.  
  2918.              (num: 0;
  2919.               var1: 309005010; {*** 3090510}
  2920.               var2: 0;
  2921.               x: 0;
  2922.               y: 0;
  2923.               z: 0;
  2924.               devapp: mine;
  2925.               useleft: 1;
  2926.               maxuse: 1;
  2927.               decuse: false;
  2928.               name: 'Robomine 4';
  2929.               store: [kill];
  2930.               cost: 7000000;
  2931.               usable: true;
  2932.               pic: '';
  2933.               picnum: 0), {need a picture}
  2934.  
  2935.              (num: 0;
  2936.               var1: 409005010; {*** 4090510}
  2937.               var2: 0;
  2938.               x: 0;
  2939.               y: 0;
  2940.               z: 0;
  2941.               devapp: mine;
  2942.               useleft: 1;
  2943.               maxuse: 1;
  2944.               decuse: false;
  2945.               name: 'Robomine 5';
  2946.               store: [kill];
  2947.               cost: 11000000;
  2948.               usable: true;
  2949.               pic: '';
  2950.               picnum: 0), {need a picture}
  2951.  
  2952.              (num: 0;
  2953.               var1: 509005010; {*** 5090510}
  2954.               var2: 0;
  2955.               x: 0;
  2956.               y: 0;
  2957.               z: 0;
  2958.               devapp: mine;
  2959.               useleft: 1;
  2960.               maxuse: 1;
  2961.               decuse: false;
  2962.               name: 'Robomine 6';
  2963.               store: [kill];
  2964.               cost: 16000000;
  2965.               usable: true;
  2966.               pic: '';
  2967.               picnum: 0), {need a picture}
  2968.  
  2969.              (num: 0;
  2970.               var1: 611020035; {*** 6112035}
  2971.               var2: 0;
  2972.               x: 0;
  2973.               y: 0;
  2974.               z: 0;
  2975.               devapp: mine;
  2976.               useleft: 1;
  2977.               maxuse: 1;
  2978.               decuse: false;
  2979.               name: 'Guardian';
  2980.               store: [kill];
  2981.               cost: 22000000;
  2982.               usable: true;
  2983.               pic: '';
  2984.               picnum: 0), {need a picture}
  2985.  
  2986.              (num: 0;
  2987.               var1: 711005010; {*** 7110510}
  2988.               var2: 0;
  2989.               x: 0;
  2990.               y: 0;
  2991.               z: 0;
  2992.               devapp: mine;
  2993.               useleft: 1;
  2994.               maxuse: 1;
  2995.               decuse: false;
  2996.               name: 'Draku Mine';
  2997.               store: [];
  2998.               cost: 7000000;
  2999.               usable: true;
  3000.               pic: '';
  3001.               picnum: 0), {need a picture}
  3002.  
  3003.              (num: 0;
  3004.               var1: 811020035; {*** 8112035}
  3005.               var2: 0;
  3006.               x: 0;
  3007.               y: 0;
  3008.               z: 0;
  3009.               devapp: mine;
  3010.               useleft: 1;
  3011.               maxuse: 1;
  3012.               decuse: false;
  3013.               name: 'Xeboc Mine';
  3014.               store: [];
  3015.               cost: 22000000;
  3016.               usable: true;
  3017.               pic: '';
  3018.               picnum: 0), {need a picture}
  3019.  
  3020.              (num: 0;
  3021.               var1: 1048576;
  3022.               var2: 0;
  3023.               x: 0;
  3024.               y: 0;
  3025.               z: 0;
  3026.               devapp: rom;
  3027.               useleft: 0;
  3028.               maxuse: 0;
  3029.               decuse: false;
  3030.               name: 'ROM: SPWeap';
  3031.               store: [];
  3032.               cost: 15000;
  3033.               usable: false;
  3034.               pic: 'ROMDISK';
  3035.               picnum: 53),
  3036.  
  3037.              (num: 0;
  3038.               var1: 010020; {*** 1020}
  3039.               var2: 0;
  3040.               x: 0;
  3041.               y: 0;
  3042.               z: 0;
  3043.               devapp: weapon;
  3044.               useleft: 0;
  3045.               maxuse: 0;
  3046.               decuse: false;
  3047.               name: 'Frost Sceptre';
  3048.               store: [];
  3049.               cost: 125000;
  3050.               usable: false;
  3051.               pic: '';
  3052.               picnum: 116),
  3053.  
  3054.              (num: 0;
  3055.               var1: 025032; {*** 2532}
  3056.               var2: 0;
  3057.               x: 0;
  3058.               y: 0;
  3059.               z: 0;
  3060.               devapp: rangeweapon;
  3061.               useleft: 0;
  3062.               maxuse: 0;
  3063.               decuse: false;
  3064.               name: 'Frost Cannon';
  3065.               store: [];
  3066.               cost: 200000;
  3067.               usable: false;
  3068.               pic: '';
  3069.               picnum: 115),
  3070.  
  3071.              (num: 0;
  3072.               var1: flagarmorrecharge;
  3073.               var2: 65;
  3074.               x: 0;
  3075.               y: 0;
  3076.               z: 0;
  3077.               devapp: armor;
  3078.               useleft: 600;
  3079.               maxuse: 600;
  3080.               decuse: false;
  3081.               name: 'Frost Vest';
  3082.               store: [];
  3083.               cost: 250000;
  3084.               usable: false;
  3085.               pic: '';
  3086.               picnum: 104),
  3087.  
  3088.              (num: 0;
  3089.               var1: flagbgencomm;
  3090.               var2: 0;
  3091.               x: 0;
  3092.               y: 0;
  3093.               z: 0;
  3094.               devapp: bgen;
  3095.               useleft: 0;
  3096.               maxuse: 0;
  3097.               decuse: false;
  3098.               name: 'Fort Comset';
  3099.               store: [basemsc];
  3100.               cost: 10000;
  3101.               usable: false;
  3102.               pic: 'BCOMSET';
  3103.               picnum: 0),
  3104.  
  3105.              (num: 0;
  3106.               var1: flagbgentele1;
  3107.               var2: 0;
  3108.               x: 0;
  3109.               y: 0;
  3110.               z: 0;
  3111.               devapp: bgen;
  3112.               useleft: 0;
  3113.               maxuse: 0;
  3114.               decuse: false;
  3115.               name: 'Teleporter';
  3116.               store: [basemsc];
  3117.               cost: 100000;
  3118.               usable: false;
  3119.               pic: 'BTSTD';
  3120.               picnum: 0),
  3121.  
  3122.              (num: 0;
  3123.               var1: flagbgentele2;
  3124.               var2: 0;
  3125.               x: 0;
  3126.               y: 0;
  3127.               z: 0;
  3128.               devapp: bgen;
  3129.               useleft: 0;
  3130.               maxuse: 0;
  3131.               decuse: false;
  3132.               name: 'Excelsior Teleporter';
  3133.               store: [basemsc];
  3134.               cost: 350000;
  3135.               usable: false;
  3136.               pic: 'BTEXC';
  3137.               picnum: 0),
  3138.  
  3139.              (num: 0;
  3140.               var1: flagbgentele3;
  3141.               var2: 0;
  3142.               x: 0;
  3143.               y: 0;
  3144.               z: 0;
  3145.               devapp: bgen;
  3146.               useleft: 0;
  3147.               maxuse: 0;
  3148.               decuse: false;
  3149.               name: 'Transporter';
  3150.               store: [basemsc];
  3151.               cost: 20000000;
  3152.               usable: false;
  3153.               pic: 'BTTRANS';
  3154.               picnum: 0),
  3155.  
  3156.              (num: 0;
  3157.               var1: flagbgencloak;
  3158.               var2: 0;
  3159.               x: 0;
  3160.               y: 0;
  3161.               z: 0;
  3162.               devapp: bgen;
  3163.               useleft: 0;
  3164.               maxuse: 0;
  3165.               decuse: false;
  3166.               name: 'Bogus!';
  3167.               store: [];
  3168.               cost: 1000000;
  3169.               usable: false;
  3170.               pic: '';
  3171.               picnum: 0),
  3172.  
  3173.              (num: 0;
  3174.               var1: flagbgencloak+flagbgenreactor+flagbgenprox0;
  3175.               var2: 150;
  3176.               x: 0;
  3177.               y: 0;
  3178.               z: 0;
  3179.               devapp: bgen;
  3180.               useleft: 0;
  3181.               maxuse: 0;
  3182.               decuse: false;
  3183.               name: 'Defender Pack';
  3184.               store: [basepack];
  3185.               cost: 2500000;
  3186.               usable: false;
  3187.               pic: '';
  3188.               picnum: 0),
  3189.  
  3190.              (num: 0;
  3191.               var1: flagbgentele2+flagbgencomm;
  3192.               var2: 0;
  3193.               x: 0;
  3194.               y: 0;
  3195.               z: 0;
  3196.               devapp: bgen;
  3197.               useleft: 0;
  3198.               maxuse: 0;
  3199.               decuse: false;
  3200.               name: 'Convenience Pack';
  3201.               store: [basepack];
  3202.               cost: 500000;
  3203.               usable: false;
  3204.               pic: '';
  3205.               picnum: 0),
  3206.  
  3207.              (num: 0;
  3208.               var1: flagbgentoll2+flagbgentele2;
  3209.               var2: 0;
  3210.               x: 0;
  3211.               y: 0;
  3212.               z: 0;
  3213.               devapp: bgen;
  3214.               useleft: 0;
  3215.               maxuse: 0;
  3216.               decuse: false;
  3217.               name: 'Profit Pack';
  3218.               store: [basepack];
  3219.               cost: 13000000;
  3220.               usable: false;
  3221.               pic: '';
  3222.               picnum: 0),
  3223.  
  3224.              (num: 0;
  3225.               var1: flagbgenspread3+flagbgenprox2+flagbgencloak+flagbgenfactory;
  3226.               var2: 0;  {linkfactory MegaMine}
  3227.               x: 0;
  3228.               y: 0;
  3229.               z: 0;
  3230.               devapp: bgen;
  3231.               useleft: 0;
  3232.               maxuse: 0;
  3233.               decuse: false;
  3234.               name: 'Hostility Pack';
  3235.               store: [basepack];
  3236.               cost: 22000000;
  3237.               usable: false;
  3238.               pic: '';
  3239.               picnum: 0),
  3240.  
  3241.              (num: 0;
  3242.               var1: flagbgenfactory;
  3243.               var2: 0; {linkfactory Dumb Mine}
  3244.               x: 0;
  3245.               y: 0;
  3246.               z: 0;
  3247.               devapp: bgen;
  3248.               useleft: 0;
  3249.               maxuse: 0;
  3250.               decuse: false;
  3251.               name: 'Fact: Dumb Mine';
  3252.               store: [basefact];
  3253.               cost: 225000;
  3254.               usable: false;
  3255.               pic: 'BGFACT';
  3256.               picnum: 0),
  3257.  
  3258.              (num: 0;
  3259.               var1: flagbgenfactory;
  3260.               var2: 0; {linkfactory Smart Mine}
  3261.               x: 0;
  3262.               y: 0;
  3263.               z: 0;
  3264.               devapp: bgen;
  3265.               useleft: 0;
  3266.               maxuse: 0;
  3267.               decuse: false;
  3268.               name: 'Fact: Smart Mine';
  3269.               store: [basefact];
  3270.               cost: 225000;
  3271.               usable: false;
  3272.               pic: 'BGFACT';
  3273.               picnum: 0),
  3274.  
  3275.              (num: 0;
  3276.               var1: flagbgenfactory;
  3277.               var2: 0; {linkfactory Day Ruiner}
  3278.               x: 0;
  3279.               y: 0;
  3280.               z: 0;
  3281.               devapp: bgen;
  3282.               useleft: 0;
  3283.               maxuse: 0;
  3284.               decuse: false;
  3285.               name: 'Fact: Day Ruiner';
  3286.               store: [basefact];
  3287.               cost: 2250000;
  3288.               usable: false;
  3289.               pic: 'BGFACT';
  3290.               picnum: 0),
  3291.  
  3292.              (num: 0;
  3293.               var1: flagbgenfactory;
  3294.               var2: 0; {linkfactory MegaMine}
  3295.               x: 0;
  3296.               y: 0;
  3297.               z: 0;
  3298.               devapp: bgen;
  3299.               useleft: 0;
  3300.               maxuse: 0;
  3301.               decuse: false;
  3302.               name: 'Fact: MegaMine';
  3303.               store: [basefact];
  3304.               cost: 6000000;
  3305.               usable: false;
  3306.               pic: 'BGFACT';
  3307.               picnum: 0),
  3308.  
  3309.              (num: 0;
  3310.               var1: flagbgenfactory;
  3311.               var2: 0; {linkfactory MicroNuke}
  3312.               x: 0;
  3313.               y: 0;
  3314.               z: 0;
  3315.               devapp: bgen;
  3316.               useleft: 0;
  3317.               maxuse: 0;
  3318.               decuse: false;
  3319.               name: 'Fact: MicroNuke';
  3320.               store: [basefact];
  3321.               cost: 15000000;
  3322.               usable: false;
  3323.               pic: 'BGFACT';
  3324.               picnum: 0),
  3325.  
  3326.              (num: 0;
  3327.               var1: flagbgenfactory;
  3328.               var2: 0; {linkfactory Zapper Mine}
  3329.               x: 0;
  3330.               y: 0;
  3331.               z: 0;
  3332.               devapp: bgen;
  3333.               useleft: 0;
  3334.               maxuse: 0;
  3335.               decuse: false;
  3336.               name: 'Fact: Zapper Mine';
  3337.               store: [basefact];
  3338.               cost: 24000000;
  3339.               usable: false;
  3340.               pic: 'BGFACT';
  3341.               picnum: 0),
  3342.  
  3343.              (num: 0;
  3344.               var1: flagbgenfactory;
  3345.               var2: 0; {linkfactory TeleMine}
  3346.               x: 0;
  3347.               y: 0;
  3348.               z: 0;
  3349.               devapp: bgen;
  3350.               useleft: 0;
  3351.               maxuse: 0;
  3352.               decuse: false;
  3353.               name: 'Fact: TeleMine';
  3354.               store: [basefact];
  3355.               cost: 24000000;
  3356.               usable: false;
  3357.               pic: 'BGFACT';
  3358.               picnum: 0),
  3359.  
  3360.              (num: 0;
  3361.               var1: flagbgenfactory;
  3362.               var2: 0; {linkfactory Protector}
  3363.               x: 0;
  3364.               y: 0;
  3365.               z: 0;
  3366.               devapp: bgen;
  3367.               useleft: 0;
  3368.               maxuse: 0;
  3369.               decuse: false;
  3370.               name: 'Fact: Protector';
  3371.               store: [basefact];
  3372.               cost: 45000000;
  3373.               usable: false;
  3374.               pic: 'BGFACT';
  3375.               picnum: 0),
  3376.  
  3377.              (num: 0;
  3378.               var1: flagbgenfactory;
  3379.               var2: 0; {linkfactory Robomine 2}
  3380.               x: 0;
  3381.               y: 0;
  3382.               z: 0;
  3383.               devapp: bgen;
  3384.               useleft: 0;
  3385.               maxuse: 0;
  3386.               decuse: false;
  3387.               name: 'Fact: Robomine 2';
  3388.               store: [basefact];
  3389.               cost: 6000000;
  3390.               usable: false;
  3391.               pic: 'BGFACT';
  3392.               picnum: 0),
  3393.  
  3394.              (num: 0;
  3395.               var1: flagbgenfactory;
  3396.               var2: 0; {linkfactory Robomine 3}
  3397.               x: 0;
  3398.               y: 0;
  3399.               z: 0;
  3400.               devapp: bgen;
  3401.               useleft: 0;
  3402.               maxuse: 0;
  3403.               decuse: false;
  3404.               name: 'Fact: Robomine 3';
  3405.               store: [basefact];
  3406.               cost: 12000000;
  3407.               usable: false;
  3408.               pic: 'BGFACT';
  3409.               picnum: 0),
  3410.  
  3411.              (num: 0;
  3412.               var1: flagbgenfactory;
  3413.               var2: 0; {linkfactory Robomine 4}
  3414.               x: 0;
  3415.               y: 0;
  3416.               z: 0;
  3417.               devapp: bgen;
  3418.               useleft: 0;
  3419.               maxuse: 0;
  3420.               decuse: false;
  3421.               name: 'Fact: Robomine 4';
  3422.               store: [basefact];
  3423.               cost: 21000000;
  3424.               usable: false;
  3425.               pic: 'BGFACT';
  3426.               picnum: 0),
  3427.  
  3428.              (num: 0;
  3429.               var1: flagbgenfactory;
  3430.               var2: 0; {linkfactory Robomine 5}
  3431.               x: 0;
  3432.               y: 0;
  3433.               z: 0;
  3434.               devapp: bgen;
  3435.               useleft: 0;
  3436.               maxuse: 0;
  3437.               decuse: false;
  3438.               name: 'Fact: Robomine 5';
  3439.               store: [basefact];
  3440.               cost: 33000000;
  3441.               usable: false;
  3442.               pic: 'BGFACT';
  3443.               picnum: 0),
  3444.  
  3445.              (num: 0;
  3446.               var1: flagbgenfactory;
  3447.               var2: 0; {linkfactory Robomine 6}
  3448.               x: 0;
  3449.               y: 0;
  3450.               z: 0;
  3451.               devapp: bgen;
  3452.               useleft: 0;
  3453.               maxuse: 0;
  3454.               decuse: false;
  3455.               name: 'Fact: Robomine 6';
  3456.               store: [basefact];
  3457.               cost: 48000000;
  3458.               usable: false;
  3459.               pic: 'BGFACT';
  3460.               picnum: 0),
  3461.  
  3462.              (num: 0;
  3463.               var1: flagbgenfactory;
  3464.               var2: 0; {linkfactory Guardian}
  3465.               x: 0;
  3466.               y: 0;
  3467.               z: 0;
  3468.               devapp: bgen;
  3469.               useleft: 0;
  3470.               maxuse: 0;
  3471.               decuse: false;
  3472.               name: 'Fact: Guardian';
  3473.               store: [basefact];
  3474.               cost: 66000000;
  3475.               usable: false;
  3476.               pic: 'BGFACT';
  3477.               picnum: 0),
  3478.  
  3479.              (num: 0;
  3480.               var1: flagbgenfactory;
  3481.               var2: 0; {linkfactory Draku Mine}
  3482.               x: 0;
  3483.               y: 0;
  3484.               z: 0;
  3485.               devapp: bgen;
  3486.               useleft: 0;
  3487.               maxuse: 0;
  3488.               decuse: false;
  3489.               name: 'Fact: Draku Mine';
  3490.               store: [];
  3491.               cost: 21000000;
  3492.               usable: false;
  3493.               pic: 'BGFACT';
  3494.               picnum: 0),
  3495.  
  3496.              (num: 0;
  3497.               var1: flagbgenfactory;
  3498.               var2: 0; {linkfactory Xeboc Mine}
  3499.               x: 0;
  3500.               y: 0;
  3501.               z: 0;
  3502.               devapp: bgen;
  3503.               useleft: 0;
  3504.               maxuse: 0;
  3505.               decuse: false;
  3506.               name: 'Fact: Xeboc Mine';
  3507.               store: [];
  3508.               cost: 66000000;
  3509.               usable: false;
  3510.               pic: 'BGFACT';
  3511.               picnum: 0),
  3512.  
  3513.              (num: 0;                    { - Unused - }
  3514.               var1: flagbgenfactory;
  3515.               var2: 0; {linkfactory}
  3516.               x: 0;
  3517.               y: 0;
  3518.               z: 0;
  3519.               devapp: bgen;
  3520.               useleft: 0;
  3521.               maxuse: 0;
  3522.               decuse: false;
  3523.               name: 'Fact: ';
  3524.               store: [];
  3525.               cost: 0;
  3526.               usable: false;
  3527.               pic: 'BGFACT';
  3528.               picnum: 0),
  3529.  
  3530.              (num: 0;                    { - Unused - }
  3531.               var1: flagbgenfactory;
  3532.               var2: 0; {linkfactory }
  3533.               x: 0;
  3534.               y: 0;
  3535.               z: 0;
  3536.               devapp: bgen;
  3537.               useleft: 0;
  3538.               maxuse: 0;
  3539.               decuse: false;
  3540.               name: 'Fact: ';
  3541.               store: [];
  3542.               cost: 0;
  3543.               usable: false;
  3544.               pic: 'BGFACT';
  3545.               picnum: 0),
  3546.  
  3547.              (num: 0;                    { - Unused - }
  3548.               var1: flagbgenfactory;
  3549.               var2: 0; {linkfactory}
  3550.               x: 0;
  3551.               y: 0;
  3552.               z: 0;
  3553.               devapp: bgen;
  3554.               useleft: 0;
  3555.               maxuse: 0;
  3556.               decuse: false;
  3557.               name: 'Fact: ';
  3558.               store: [];
  3559.               cost: 0;
  3560.               usable: false;
  3561.               pic: 'BGFACT';
  3562.               picnum: 0),
  3563.  
  3564.              (num: 0;                    { - Unused - }
  3565.               var1: flagbgenfactory;
  3566.               var2: 0; {linkfactory }
  3567.               x: 0;
  3568.               y: 0;
  3569.               z: 0;
  3570.               devapp: bgen;
  3571.               useleft: 0;
  3572.               maxuse: 0;
  3573.               decuse: false;
  3574.               name: 'Fact: ';
  3575.               store: [];
  3576.               cost: 0;
  3577.               usable: false;
  3578.               pic: 'BGFACT';
  3579.               picnum: 0),
  3580.  
  3581.              (num: 0;
  3582.               var1: flagbgenwander;
  3583.               var2: 0;
  3584.               x: 0;
  3585.               y: 0;
  3586.               z: 0;
  3587.               devapp: bgen;
  3588.               useleft: 0;
  3589.               maxuse: 0;
  3590.               decuse: false;
  3591.               name: 'Wanderer';
  3592.               store: [basemsc];
  3593.               cost: 99000000;
  3594.               usable: false;
  3595.               pic: 'BGWANDER';
  3596.               picnum: 0),
  3597.  
  3598.              (num: 0;
  3599.               var1: flagbgenspread0;
  3600.               var2: 0;
  3601.               x: 0;
  3602.               y: 0;
  3603.               z: 0;
  3604.               devapp: bgen;
  3605.               useleft: 0;
  3606.               maxuse: 0;
  3607.               decuse: false;
  3608.               name: 'Mine Spreader R0';
  3609.               store: [basemsc];
  3610.               cost: 100000;
  3611.               usable: false;
  3612.               pic: 'BGSPREAD';
  3613.               picnum: 0),
  3614.  
  3615.              (num: 0;
  3616.               var1: flagbgenspread1;
  3617.               var2: 0;
  3618.               x: 0;
  3619.               y: 0;
  3620.               z: 0;
  3621.               devapp: bgen;
  3622.               useleft: 0;
  3623.               maxuse: 0;
  3624.               decuse: false;
  3625.               name: 'Mine Spreader R1';
  3626.               store: [basemsc];
  3627.               cost: 500000;
  3628.               usable: false;
  3629.               pic: 'BGSPREAD';
  3630.               picnum: 0),
  3631.  
  3632.              (num: 0;
  3633.               var1: flagbgenspread2;
  3634.               var2: 0;
  3635.               x: 0;
  3636.               y: 0;
  3637.               z: 0;
  3638.               devapp: bgen;
  3639.               useleft: 0;
  3640.               maxuse: 0;
  3641.               decuse: false;
  3642.               name: 'Mine Spreader R2';
  3643.               store: [basemsc];
  3644.               cost: 2500000;
  3645.               usable: false;
  3646.               pic: 'BGSPREAD';
  3647.               picnum: 0),
  3648.  
  3649.              (num: 0;
  3650.               var1: flagbgenspread3;
  3651.               var2: 0;
  3652.               x: 0;
  3653.               y: 0;
  3654.               z: 0;
  3655.               devapp: bgen;
  3656.               useleft: 0;
  3657.               maxuse: 0;
  3658.               decuse: false;
  3659.               name: 'Mine Spreader R3';
  3660.               store: [basemsc];
  3661.               cost: 12500000;
  3662.               usable: false;
  3663.               pic: 'BGSPREAD';
  3664.               picnum: 0),
  3665.  
  3666.              (num: 0;
  3667.               var1: flagbgenprox0;
  3668.               var2: 0;
  3669.               x: 0;
  3670.               y: 0;
  3671.               z: 0;
  3672.               devapp: bgen;
  3673.               useleft: 0;
  3674.               maxuse: 0;
  3675.               decuse: false;
  3676.               name: 'Proximity Trip R0';
  3677.               store: [basemsc];
  3678.               cost: 100000;
  3679.               usable: false;
  3680.               pic: 'BGPROX';
  3681.               picnum: 0),
  3682.  
  3683.              (num: 0;
  3684.               var1: flagbgenprox1;
  3685.               var2: 0;
  3686.               x: 0;
  3687.               y: 0;
  3688.               z: 0;
  3689.               devapp: bgen;
  3690.               useleft: 0;
  3691.               maxuse: 0;
  3692.               decuse: false;
  3693.               name: 'Proximity Trip R1';
  3694.               store: [basemsc];
  3695.               cost: 500000;
  3696.               usable: false;
  3697.               pic: 'BGPROX';
  3698.               picnum: 0),
  3699.  
  3700.              (num: 0;
  3701.               var1: flagbgenprox2;
  3702.               var2: 0;
  3703.               x: 0;
  3704.               y: 0;
  3705.               z: 0;
  3706.               devapp: bgen;
  3707.               useleft: 0;
  3708.               maxuse: 0;
  3709.               decuse: false;
  3710.               name: 'Proximity Trip R2';
  3711.               store: [basemsc];
  3712.               cost: 2500000;
  3713.               usable: false;
  3714.               pic: 'BGPROX';
  3715.               picnum: 0),
  3716.  
  3717.              (num: 0;
  3718.               var1: flagbgentoll0;
  3719.               var2: 0;
  3720.               x: 0;
  3721.               y: 0;
  3722.               z: 0;
  3723.               devapp: bgen;
  3724.               useleft: 0;
  3725.               maxuse: 0;
  3726.               decuse: false;
  3727.               name: 'Toll Station R0';
  3728.               store: [basemsc];
  3729.               cost: 500000;
  3730.               usable: false;
  3731.               pic: 'BGTOLL';
  3732.               picnum: 0),
  3733.  
  3734.              (num: 0;
  3735.               var1: flagbgentoll1;
  3736.               var2: 0;
  3737.               x: 0;
  3738.               y: 0;
  3739.               z: 0;
  3740.               devapp: bgen;
  3741.               useleft: 0;
  3742.               maxuse: 0;
  3743.               decuse: false;
  3744.               name: 'Toll Station R1';
  3745.               store: [basemsc];
  3746.               cost: 2500000;
  3747.               usable: false;
  3748.               pic: 'BGTOLL';
  3749.               picnum: 0),
  3750.  
  3751.              (num: 0;
  3752.               var1: flagbgentoll2;
  3753.               var2: 0;
  3754.               x: 0;
  3755.               y: 0;
  3756.               z: 0;
  3757.               devapp: bgen;
  3758.               useleft: 0;
  3759.               maxuse: 0;
  3760.               decuse: false;
  3761.               name: 'Toll Station R2';
  3762.               store: [basemsc];
  3763.               cost: 12500000;
  3764.               usable: false;
  3765.               pic: 'BGTOLL';
  3766.               picnum: 0),
  3767.  
  3768.              (num: 0;
  3769.               var1: flagbgencloak;
  3770.               var2: 0;
  3771.               x: 0;
  3772.               y: 0;
  3773.               z: 0;
  3774.               devapp: bgen;
  3775.               useleft: 0;
  3776.               maxuse: 0;
  3777.               decuse: false;
  3778.               name: 'Fortress SFG';
  3779.               store: [basemsc];
  3780.               cost: 100000;
  3781.               usable: false;
  3782.               pic: 'BGSFG';
  3783.               picnum: 0),
  3784.  
  3785.              (num: 0;
  3786.               var1: flagbgenscan;
  3787.               var2: 0;
  3788.               x: 0;
  3789.               y: 0;
  3790.               z: 0;
  3791.               devapp: bgen;
  3792.               useleft: 0;
  3793.               maxuse: 0;
  3794.               decuse: false;
  3795.               name: 'UltraScan';
  3796.               store: [basemsc];
  3797.               cost: 50000;
  3798.               usable: true;
  3799.               pic: '';
  3800.               picnum: 0),
  3801.  
  3802.              (num: 0;
  3803.               var1: flagbgendevlock+flagbgenantisd+flagbgentele1+flagbgenreactor;
  3804.               var2: 100;
  3805.               x: 0;
  3806.               y: 0;
  3807.               z: 0;
  3808.               devapp: bgen;
  3809.               useleft: 0;
  3810.               maxuse: 0;
  3811.               decuse: false;
  3812.               name: 'Sacre Pack';
  3813.               store: [];
  3814.               cost: 1000000;
  3815.               usable: true;
  3816.               pic: '';
  3817.               picnum: 0),
  3818.  
  3819.              (num: 0;
  3820.               var1: flagbgendevlock+flagbgenantisd+flagbgentele3+flagbgenwander+flagbgenscav4;
  3821.               var2: 0;
  3822.               x: 0;
  3823.               y: 0;
  3824.               z: 0;
  3825.               devapp: bgen;
  3826.               useleft: 0;
  3827.               maxuse: 0;
  3828.               decuse: false;
  3829.               name: 'Terra Labs Pack';
  3830.               store: [];
  3831.               cost: 1000000;
  3832.               usable: true;
  3833.               pic: '';
  3834.               picnum: 0),
  3835.  
  3836.              (num: 0;
  3837.               var1: flagbgendevlock+flagbgensell1;
  3838.               var2: 0; {linkfactory}
  3839.               x: 0;
  3840.               y: 0;
  3841.               z: 0;
  3842.               devapp: bgen;
  3843.               useleft: 0;
  3844.               maxuse: 0;
  3845.               decuse: false;
  3846.               name: 'Terra Seller A';
  3847.               store: [];
  3848.               cost: 1000000;
  3849.               usable: true;
  3850.               pic: '';
  3851.               picnum: 0),
  3852.  
  3853.              (num: 0;
  3854.               var1: flagbgendevlock+flagbgensell2;
  3855.               var2: 0; {linkfactory}
  3856.               x: 0;
  3857.               y: 0;
  3858.               z: 0;
  3859.               devapp: bgen;
  3860.               useleft: 0;
  3861.               maxuse: 0;
  3862.               decuse: false;
  3863.               name: 'Terra Seller B';
  3864.               store: [];
  3865.               cost: 1000000;
  3866.               usable: true;
  3867.               pic: '';
  3868.               picnum: 0),
  3869.  
  3870.              (num: 0;
  3871.               var1: flagbgendevlock+flagbgensell3;
  3872.               var2: 0; {linkfactory}
  3873.               x: 0;
  3874.               y: 0;
  3875.               z: 0;
  3876.               devapp: bgen;
  3877.               useleft: 0;
  3878.               maxuse: 0;
  3879.               decuse: false;
  3880.               name: 'Terra Seller C';
  3881.               store: [];
  3882.               cost: 1000000;
  3883.               usable: true;
  3884.               pic: '';
  3885.               picnum: 0),
  3886.  
  3887.              (num: 0;
  3888.               var1: flagbgendevlock+flagbgenantisd;
  3889.               var2: 0;
  3890.               x: 0;
  3891.               y: 0;
  3892.               z: 0;
  3893.               devapp: bgen;
  3894.               useleft: 0;
  3895.               maxuse: 0;
  3896.               decuse: false;
  3897.               name: 'Anti Self Destruct';
  3898.               store: [basemsc];
  3899.               cost: 1000000;
  3900.               usable: true;
  3901.               pic: 'BGANTISD';
  3902.               picnum: 0),
  3903.  
  3904.              (num: 0;
  3905.               var1: 0;
  3906.               var2: 0;
  3907.               x: 0;
  3908.               y: 0;
  3909.               z: 0;
  3910.               devapp: warper;
  3911.               useleft: 25;
  3912.               maxuse: 25;
  3913.               decuse: True;
  3914.               name: 'UltraWarper';
  3915.               store: [];
  3916.               cost: 1000000;
  3917.               usable: true;
  3918.               pic: '0';
  3919.               picnum: 131),
  3920.  
  3921.              (num: 0;
  3922.               var1: 0;
  3923.               var2: 0;
  3924.               x: 0;
  3925.               y: 0;
  3926.               z: 0;
  3927.               devapp: recharge;
  3928.               useleft: 10;
  3929.               maxuse: 10;
  3930.               decuse: true;
  3931.               name: 'UltraCharger';
  3932.               store: [];
  3933.               cost: 1250000;
  3934.               usable: true;
  3935.               pic: '';
  3936.               picnum: 129),
  3937.  
  3938.              (num: 0;
  3939.               var1: 0;
  3940.               var2: 80;
  3941.               x: 0;
  3942.               y: 0;
  3943.               z: 0;
  3944.               devapp: stealth;
  3945.               useleft: 0;
  3946.               maxuse: 0;
  3947.               decuse: false;
  3948.               name: 'UltraCloak';
  3949.               store: [];
  3950.               cost: 350000;
  3951.               usable: true;
  3952.               pic: '';
  3953.               picnum: 130),
  3954.  
  3955.              (num: 0;
  3956.               var1: 1001;
  3957.               var2: 0;
  3958.               x: 0;
  3959.               y: 0;
  3960.               z: 0;
  3961.               devapp: mappack;
  3962.               useleft: 0;
  3963.               maxuse: 0;
  3964.               decuse: false;
  3965.               name: 'Sacre Map';
  3966.               store: [supp];
  3967.               cost: 100;
  3968.               usable: true;
  3969.               pic: '';
  3970.               picnum: 101),
  3971.  
  3972.              (num: 0;
  3973.               var1: 10080120;
  3974.               var2: 0;
  3975.               x: 0;
  3976.               y: 0;
  3977.               z: 0;
  3978.               devapp: rangeweapon;
  3979.               useleft: 0;
  3980.               maxuse: 0;
  3981.               decuse: false;
  3982.               name: 'FortSlayer MK1';
  3983.               store: [AcmeFort];
  3984.               cost: 3000000;
  3985.               usable: false;
  3986.               pic: '';
  3987.               picnum: 108),
  3988.  
  3989.              (num: 0;
  3990.               var1: 100100140;
  3991.               var2: 0;
  3992.               x: 0;
  3993.               y: 0;
  3994.               z: 0;
  3995.               devapp: rangeweapon;
  3996.               useleft: 0;
  3997.               maxuse: 0;
  3998.               decuse: false;
  3999.               name: 'FortSlayer Deluxe';
  4000.               store: [AcmeFort];
  4001.               cost: 6000000;
  4002.               usable: false;
  4003.               pic: '';
  4004.               picnum: 109),
  4005.  
  4006.              (num: 0;
  4007.               var1: 10;
  4008.               var2: 1;
  4009.               x: 0;
  4010.               y: 0;
  4011.               z: 0;
  4012.               devapp: ammop;
  4013.               useleft: 0;
  4014.               maxuse: 0;
  4015.               decuse: false;
  4016.               name: 'FortShell';
  4017.               store: [AcmeFort];
  4018.               cost: 1500000;
  4019.               usable: false;
  4020.               pic: '';
  4021.               picnum: 107),
  4022.  
  4023.              (num: 0;
  4024.               var1: 02009013;
  4025.               var2: 8;
  4026.               x: 0;
  4027.               y: 0;
  4028.               z: 0;
  4029.               devapp: rangeweapon;
  4030.               useleft: 0;
  4031.               maxuse: 0;
  4032.               decuse: false;
  4033.               name: 'AK-47 9mm';
  4034.               store: [AcmeWeap];
  4035.               cost: 50000;
  4036.               usable: false;
  4037.               pic: 'AK47';
  4038.               picnum: 7),
  4039.  
  4040.              (num: 0;
  4041.               var1: 02010015;
  4042.               var2: 8;
  4043.               x: 0;
  4044.               y: 0;
  4045.               z: 0;
  4046.               devapp: rangeweapon;
  4047.               useleft: 0;
  4048.               maxuse: 0;
  4049.               decuse: false;
  4050.               name: 'M-16 9mm';
  4051.               store: [AcmeWeap];
  4052.               cost: 70000;
  4053.               usable: false;
  4054.               pic: 'M16';
  4055.               picnum: 6),
  4056.  
  4057.              (num: 0;
  4058.               var1: 2097152;
  4059.               var2: 0;
  4060.               x: 0;
  4061.               y: 0;
  4062.               z: 0;
  4063.               devapp: rom;
  4064.               useleft: 0;
  4065.               maxuse: 0;
  4066.               decuse: false;
  4067.               name: 'ROM: Weapsmith';
  4068.               store: [Acmerom];
  4069.               cost: 250;
  4070.               usable: false;
  4071.               pic: 'ROMDISK';
  4072.               picnum: 53),
  4073.  
  4074.              (num: 0;
  4075.               var1: 00050065; {*** 005065}
  4076.               var2: flagweapburst+flagweapstun+flagweapacc3;
  4077.               x: 0;
  4078.               y: 0;
  4079.               z: 0;
  4080.               devapp: rangeweapon;
  4081.               useleft: 0;
  4082.               maxuse: 0;
  4083.               decuse: false;
  4084.               name: 'SLM-9000 PulseRay';
  4085.               store: [];
  4086.               cost: 10000000;
  4087.               usable: false;
  4088.               pic: 'SLM9000';
  4089.               picnum: 126),
  4090.  
  4091.              (num: 0;
  4092.               var1: 03012018; {*** 031218}
  4093.               var2: flagweapburst;
  4094.               x: 0;
  4095.               y: 0;
  4096.               z: 0;
  4097.               devapp: rangeweapon;
  4098.               useleft: 0;
  4099.               maxuse: 0;
  4100.               decuse: false;
  4101.               name: 'Phaser Ripper';
  4102.               store: [ACMEWeap];
  4103.               cost: 110000;
  4104.               usable: false;
  4105.               pic: 'RIPPHAS';
  4106.               picnum: 110),
  4107.  
  4108.              (num: 0;
  4109.               var1: 03014020; {*** 031420}
  4110.               var2: flagweapacc3;
  4111.               x: 0;
  4112.               y: 0;
  4113.               z: 0;
  4114.               devapp: rangeweapon;
  4115.               useleft: 0;
  4116.               maxuse: 0;
  4117.               decuse: false;
  4118.               name: 'Phaser Sniper';
  4119.               store: [ACMEWeap];
  4120.               cost: 100000;
  4121.               usable: false;
  4122.               pic: 'SNPPHAS';
  4123.               picnum: 111),
  4124.  
  4125.              (num: 0;
  4126.               var1: flagbgenscav0;
  4127.               var2: 0;
  4128.               x: 0;
  4129.               y: 0;
  4130.               z: 0;
  4131.               devapp: bgen;
  4132.               useleft: 0;
  4133.               maxuse: 0;
  4134.               decuse: false;
  4135.               name: 'Scavenger R0';
  4136.               store: [BaseScav];
  4137.               cost: 40000;
  4138.               usable: false;
  4139.               pic: 'BGSCAV';
  4140.               picnum: 0),
  4141.  
  4142.              (num: 0;
  4143.               var1: flagbgenscav1;
  4144.               var2: 0;
  4145.               x: 0;
  4146.               y: 0;
  4147.               z: 0;
  4148.               devapp: bgen;
  4149.               useleft: 0;
  4150.               maxuse: 0;
  4151.               decuse: false;
  4152.               name: 'Scavenger R1';
  4153.               store: [BaseScav];
  4154.               cost: 100000;
  4155.               usable: false;
  4156.               pic: 'BGSCAV';
  4157.               picnum: 0),
  4158.  
  4159.              (num: 0;
  4160.               var1: flagbgenscav2;
  4161.               var2: 0;
  4162.               x: 0;
  4163.               y: 0;
  4164.               z: 0;
  4165.               devapp: bgen;
  4166.               useleft: 0;
  4167.               maxuse: 0;
  4168.               decuse: false;
  4169.               name: 'Scavenger R2';
  4170.               store: [BaseScav];
  4171.               cost: 250000;
  4172.               usable: false;
  4173.               pic: 'BGSCAV';
  4174.               picnum: 0),
  4175.  
  4176.              (num: 0;
  4177.               var1: flagbgenscav3;
  4178.               var2: 0;
  4179.               x: 0;
  4180.               y: 0;
  4181.               z: 0;
  4182.               devapp: bgen;
  4183.               useleft: 0;
  4184.               maxuse: 0;
  4185.               decuse: false;
  4186.               name: 'Scavenger R3';
  4187.               store: [BaseScav];
  4188.               cost: 625000;
  4189.               usable: false;
  4190.               pic: 'BGSCAV';
  4191.               picnum: 0),
  4192.  
  4193.              (num: 0;
  4194.               var1: flagbgenscav4;
  4195.               var2: 0;
  4196.               x: 0;
  4197.               y: 0;
  4198.               z: 0;
  4199.               devapp: bgen;
  4200.               useleft: 0;
  4201.               maxuse: 0;
  4202.               decuse: false;
  4203.               name: 'Scavenger R4';
  4204.               store: [BaseScav];
  4205.               cost: 1562500;
  4206.               usable: false;
  4207.               pic: 'BGSCAV';
  4208.               picnum: 0),
  4209.  
  4210.              (num: 0;
  4211.               var1: flagbgenscav5;
  4212.               var2: 0;
  4213.               x: 0;
  4214.               y: 0;
  4215.               z: 0;
  4216.               devapp: bgen;
  4217.               useleft: 0;
  4218.               maxuse: 0;
  4219.               decuse: false;
  4220.               name: 'Scavenger R5';
  4221.               store: [BaseScav];
  4222.               cost: 3906250;
  4223.               usable: false;
  4224.               pic: 'BGSCAV';
  4225.               picnum: 0),
  4226.  
  4227.              (num: 0;
  4228.               var1: flagbgenscav0+flagbgensmartscav;
  4229.               var2: 0;
  4230.               x: 0;
  4231.               y: 0;
  4232.               z: 0;
  4233.               devapp: bgen;
  4234.               useleft: 0;
  4235.               maxuse: 0;
  4236.               decuse: false;
  4237.               name: 'Smart Scav R0';
  4238.               store: [BaseScav];
  4239.               cost: 50000;
  4240.               usable: false;
  4241.               pic: 'BGSMSCAV';
  4242.               picnum: 0),
  4243.  
  4244.              (num: 0;
  4245.               var1: flagbgenscav1+flagbgensmartscav;
  4246.               var2: 0;
  4247.               x: 0;
  4248.               y: 0;
  4249.               z: 0;
  4250.               devapp: bgen;
  4251.               useleft: 0;
  4252.               maxuse: 0;
  4253.               decuse: false;
  4254.               name: 'Smart Scav R1';
  4255.               store: [BaseScav];
  4256.               cost: 125000;
  4257.               usable: false;
  4258.               pic: 'BGSMSCAV';
  4259.               picnum: 0),
  4260.  
  4261.              (num: 0;
  4262.               var1: flagbgenscav2+flagbgensmartscav;
  4263.               var2: 0;
  4264.               x: 0;
  4265.               y: 0;
  4266.               z: 0;
  4267.               devapp: bgen;
  4268.               useleft: 0;
  4269.               maxuse: 0;
  4270.               decuse: false;
  4271.               name: 'Smart Scav R2';
  4272.               store: [BaseScav];
  4273.               cost: 312500;
  4274.               usable: false;
  4275.               pic: 'BGSMSCAV';
  4276.               picnum: 0),
  4277.  
  4278.              (num: 0;
  4279.               var1: flagbgenscav3+flagbgensmartscav;
  4280.               var2: 0;
  4281.               x: 0;
  4282.               y: 0;
  4283.               z: 0;
  4284.               devapp: bgen;
  4285.               useleft: 0;
  4286.               maxuse: 0;
  4287.               decuse: false;
  4288.               name: 'Smart Scav R3';
  4289.               store: [BaseScav];
  4290.               cost: 781250;
  4291.               usable: false;
  4292.               pic: 'BGSMSCAV';
  4293.               picnum: 0),
  4294.  
  4295.              (num: 0;
  4296.               var1: flagbgenscav4+flagbgensmartscav;
  4297.               var2: 0;
  4298.               x: 0;
  4299.               y: 0;
  4300.               z: 0;
  4301.               devapp: bgen;
  4302.               useleft: 0;
  4303.               maxuse: 0;
  4304.               decuse: false;
  4305.               name: 'Smart Scav R4';
  4306.               store: [BaseScav];
  4307.               cost: 1953125;
  4308.               usable: false;
  4309.               pic: 'BGSMSCAV';
  4310.               picnum: 0),
  4311.  
  4312.              (num: 0;
  4313.               var1: flagbgenscav5+flagbgensmartscav;
  4314.               var2: 0;
  4315.               x: 0;
  4316.               y: 0;
  4317.               z: 0;
  4318.               devapp: bgen;
  4319.               useleft: 0;
  4320.               maxuse: 0;
  4321.               decuse: false;
  4322.               name: 'Smart Scav R5';
  4323.               store: [BaseScav];
  4324.               cost: 4882812;
  4325.               usable: false;
  4326.               pic: 'BGSMSCAV';
  4327.               picnum: 0),
  4328.  
  4329.              (num: 0;
  4330.               var1: 015020;
  4331.               var2: flagweapstun;
  4332.               x: 0;
  4333.               y: 0;
  4334.               z: 0;
  4335.               devapp: rangeweapon;
  4336.               useleft: 0;
  4337.               maxuse: 0;
  4338.               decuse: false;
  4339.               name: 'Radiation Blast';
  4340.               store: [];
  4341.               cost: 0;
  4342.               usable: false;
  4343.               pic: '';
  4344.               picnum: 0),
  4345.  
  4346.              (num: 0;
  4347.               var1: 03016022;
  4348.               var2: flagweapburst+flagweapstun+flagweapuni;
  4349.               x: 0;
  4350.               y: 0;
  4351.               z: 0;
  4352.               devapp: rangeweapon;
  4353.               useleft: 0;
  4354.               maxuse: 0;
  4355.               decuse: false;
  4356.               name: 'Combat Phaser';
  4357.               store: [AcmeWeap];
  4358.               cost: 250000;
  4359.               usable: false;
  4360.               pic: 'CMBTPHAS';
  4361.               picnum: 121),
  4362.  
  4363.              (num: 0;
  4364.               var1: 1;
  4365.               var2: 0;
  4366.               x: 0;
  4367.               y: 0;
  4368.               z: 0;
  4369.               devapp: genobjapp;
  4370.               useleft: 0;
  4371.               maxuse: 0;
  4372.               decuse: false;
  4373.               name: 'Chaos Medallion';
  4374.               store: [];
  4375.               cost: 100;
  4376.               usable: true;
  4377.               pic: '';
  4378.               picnum: 106),
  4379.  
  4380.              (num: 0;
  4381.               var1: 4;
  4382.               var2: 0;
  4383.               x: 0;
  4384.               y: 0;
  4385.               z: 0;
  4386.               devapp: genobjapp;
  4387.               useleft: 0;
  4388.               maxuse: 0;
  4389.               decuse: false;
  4390.               name: 'Worthless Junk';
  4391.               store: [];
  4392.               cost: 0;
  4393.               usable: true;
  4394.               pic: '';
  4395.               picnum: 123),
  4396.  
  4397.              (num: 0;
  4398.               var1: 5;
  4399.               var2: 0;
  4400.               x: 0;
  4401.               y: 0;
  4402.               z: 0;
  4403.               devapp: genobjapp;
  4404.               useleft: 0;
  4405.               maxuse: 0;
  4406.               decuse: false;
  4407.               name: 'Loki Summoner';
  4408.               store: [];
  4409.               cost: 0;
  4410.               usable: true;
  4411.               pic: '';
  4412.               picnum: 125),
  4413.  
  4414.              (num: 0;
  4415.               var1: 3;
  4416.               var2: 0;
  4417.               x: 0;
  4418.               y: 0;
  4419.               z: 0;
  4420.               devapp: genobjapp;
  4421.               useleft: 0;
  4422.               maxuse: 0;
  4423.               decuse: false;
  4424.               name: 'Technical Tools';
  4425.               store: [];
  4426.               cost: 0;
  4427.               usable: true;
  4428.               pic: '';
  4429.               picnum: 128),
  4430.  
  4431.              (num: 0;
  4432.               var1: 6;
  4433.               var2: 0;
  4434.               x: 0;
  4435.               y: 0;
  4436.               z: 0;
  4437.               devapp: genobjapp;
  4438.               useleft: 0;
  4439.               maxuse: 0;
  4440.               decuse: false;
  4441.               name: 'Sonic Whistle';
  4442.               store: [];
  4443.               cost: 0;
  4444.               usable: true;
  4445.               pic: '';
  4446.               picnum: 132),
  4447.  
  4448.              (num: 0;
  4449.               var1: 255;
  4450.               var2: 0;
  4451.               x: 0;
  4452.               y: 0;
  4453.               z: 0;
  4454.               devapp: genobjapp;
  4455.               useleft: 0;
  4456.               maxuse: 0;
  4457.               decuse: false;
  4458.               name: 'Replicator';
  4459.               store: [];
  4460.               cost: 0;
  4461.               usable: true;
  4462.               pic: '';
  4463.               picnum: 0),
  4464.  
  4465.              (num: 0;
  4466.               var1: 254;
  4467.               var2: 0;
  4468.               x: 0;
  4469.               y: 0;
  4470.               z: 0;
  4471.               devapp: genobjapp;
  4472.               useleft: 0;
  4473.               maxuse: 0;
  4474.               decuse: false;
  4475.               name: 'MedGen';
  4476.               store: [];
  4477.               cost: 0;
  4478.               usable: true;
  4479.               pic: '';
  4480.               picnum: 0),
  4481.  
  4482.              (num: 0;
  4483.               var1: 253;
  4484.               var2: 0;
  4485.               x: 0;
  4486.               y: 0;
  4487.               z: 0;
  4488.               devapp: genobjapp;
  4489.               useleft: 0;
  4490.               maxuse: 0;
  4491.               decuse: false;
  4492.               name: 'Test-O-Matic';
  4493.               store: [];
  4494.               cost: 0;
  4495.               usable: true;
  4496.               pic: '';
  4497.               picnum: 0),
  4498.  
  4499.              (num: 0;
  4500.               var1: 005020; {*** 0520}
  4501.               var2: 0;
  4502.               x: 0;
  4503.               y: 0;
  4504.               z: 0;
  4505.               devapp: weapon;
  4506.               useleft: 0;
  4507.               maxuse: 0;
  4508.               decuse: false;
  4509.               name: 'Elemental Force';
  4510.               store: [];
  4511.               cost: 1000;
  4512.               usable: false;
  4513.               pic: '';
  4514.               picnum: 0)   {need a picture}
  4515.  
  4516.               );
  4517.  
  4518.  tdng: array[1..50] of word =        (10,            0,               15,
  4519.                                       15,            5,               45,
  4520.                                       15,           30,                5,
  4521.                                        5,           40,               12,
  4522.                                        5,          100,               45,
  4523.                                        5,           15,                0,
  4524.                                       15,           20,                5,
  4525.                                        5,            5,                5,
  4526.                                        5,            5,                5,
  4527.                                        5,            5,                5,
  4528.  
  4529.                                        0,            0,                0,
  4530.                                        0,            0,                0,
  4531.                                        0,            0,                0,
  4532.                                        0,            0,                0,
  4533.                                        0,            0,                0,
  4534.                                        0,            0,                0,
  4535.                                        0,            0);
  4536.  
  4537.  ttype: array[1..50] of string[11] = ('Plains',       'Impass. Mtn',  'Desert',
  4538.                                       'Mountains',    'Road',         'Wastelands',
  4539.                                       'River',        'Swamp',        'U-Pylon',
  4540.                                       'D-Pylon',      'Radiation',    'Forrest',
  4541.                                       'Hort. Stn.',   'Phsr Cache',   'Nuke Silo',
  4542.                                       'Clone Cntr',   'Lake',         'Snow Mntn',
  4543.                                       'Snow Plains',  'Snow Hills',   'Sacre Base',
  4544.                                       'Freedom Cty',  'DW HQ',        'Widow Base',
  4545.                                       'Draku HQ',     'Xeboc HQ',     'Frost Bite',
  4546.                                       'Blood Lust',   'Town',         'EEEE Center',
  4547.  
  4548.                                       'Comm Tower',   'Sett. Dome',   'Kill, Inc.',
  4549.                                       'Wall',         'Floor',        'Lava River',
  4550.                                       'Hut: ObiWan',  'Hut #2',       'Hut #3',
  4551.                                       'Hut #4',       'Hut #5',       'Hut #6',
  4552.                                       'Cave',         'Snow Cave',    'ACME Weapons',
  4553.                                       'Loki City',    'Serp Camp',    'Cloud',
  4554.                                       '??',           '??');
  4555.  
  4556.  terrain: array[1..50] of string[3] = ('--','MM','..','mm','||','ww',
  4557.                                        '~~','""','/\','/\','rr','ff',
  4558.                                        'HS','PC','NS','CC','~~','MM',
  4559.                                        '--','mm','11','22','33','44',
  4560.                                        '55','66','77','88','99','EE',
  4561.                                        'CT',         'SD',          'KI',
  4562.                                        'MM',         '--',          '%%',
  4563.                                        'HT',         'HT',          'HT',
  4564.                                        'HT',         'HT',          'HT',
  4565.                                        'CV',         'CV',          'AW',
  4566.                                        'LC',         'SC',          'CD',
  4567.                                        '??',         '??');
  4568.  
  4569.  tcolor: array[1..50] of byte = (lightgreen,lightgray,yellow,
  4570.                                  brown,white,lightgreen,
  4571.                                  lightblue,lightcyan,lightred,
  4572.                                  lightred,red,lightgreen,
  4573.                                  green,yellow,yellow,
  4574.                                  yellow,blue,white,
  4575.                                  white,white,yellow,
  4576.                                  yellow,yellow,yellow,
  4577.                                  yellow,yellow,yellow,
  4578.                                  yellow,yellow,yellow,
  4579.  
  4580.                                  yellow,yellow,yellow,
  4581.                                  blue,darkgray,lightred,
  4582.                                  yellow,yellow,yellow,
  4583.                                  yellow,yellow,yellow,
  4584.                                  yellow,yellow,yellow,
  4585.                                  yellow,yellow,white,
  4586.                                  lightgray,lightgray);
  4587.  
  4588.  tpassd: array[1..50] of tpass= (pass,  imp,   pass,  pass,  pass,  pass,
  4589.                                  water, pass,  pass,  pass,  pass,  pass,
  4590.                                  pass,  pass,  pass,  pass,  water,  imp,
  4591.                                  pass,  pass,  pass,  pass,  pass,  pass,
  4592.                                  pass,  pass,  pass,  pass,  pass,  pass,
  4593.                                  pass,  pass,  pass,  pass,  pass,  lava,
  4594.  
  4595.                                  pass, pass,  pass,
  4596.                                  pass, pass,  pass,
  4597.                                  pass, pass,  pass,
  4598.                                  pass, pass,  pass,
  4599.                                  pass, pass);
  4600.  
  4601.  quests: array[1..numquest] of questtype=
  4602.                     ((award: 5000;     {1 Get troy his steaks}
  4603.                        mask: 1;
  4604.                        pts: 1),
  4605.                       (award: 3000;    {2 Find location of BW}
  4606.                        mask: 2;
  4607.                        pts: 1),
  4608.                       (award: 15000;   {3 Get into Death Warrior city}
  4609.                        mask: 4;
  4610.                        pts: 1),
  4611.                       (award: 4000;    {4 Play tetris game}
  4612.                        mask: 8;
  4613.                        pts: 1),
  4614.                       (award: 5000;    {5 Find TADSU}
  4615.                        mask: 16;
  4616.                        pts: 1),
  4617.                       (award: 45000;   {6 Fight Xeboc}
  4618.                        mask: 32;
  4619.                        pts: 1),
  4620.                       (award: 30000;   {7 Fight Kirk}
  4621.                        mask: 64;
  4622.                        pts: 1),
  4623.                       (award: 50000;   {8 Talk to Cabal Warrior}
  4624.                        mask: 128;
  4625.                        pts: 1),
  4626.                       (award: 25000;   {9 Talk to spider droid}
  4627.                        mask: 256;
  4628.                        pts: 1),
  4629.                       (award: 5000;    {10 Macroswift windows}
  4630.                        mask: 512;
  4631.                        pts: 1),
  4632.                       (award: 5000;    {11 History}
  4633.                        mask: 1024;
  4634.                        pts: 1),
  4635.                       (award: 15000;   {12 Kill, Inc}
  4636.                        mask: 2048;
  4637.                        pts: 1),
  4638.                       (award: 2000;    {13 Freedom City}
  4639.                        mask: 4096;
  4640.                        pts: 1),
  4641.                       (award: 5000;    {14 Killer Kelp}
  4642.                        mask: 8192;
  4643.                        pts: 1),
  4644.                       (award: 5000;    {15 Spweap ROM}
  4645.                        mask: 16384;
  4646.                        pts: 1),
  4647.                       (award: 25000;   {16 Loki cloud city}
  4648.                        mask: 32768;
  4649.                        pts: 1));
  4650.  
  4651. function finddev(s1: string): word;
  4652. var
  4653.  a: word;
  4654. begin;
  4655.  finddev:=0;
  4656.  for a:=1 to numdev do if stu(devicedef[a].name)=s1 then finddev:=a;
  4657. end;
  4658.  
  4659. procedure linkfactory(s1,s2: string);
  4660. var
  4661.  d1,d2: word;
  4662. begin;
  4663.  d1:=finddev(stu(s1));
  4664.  d2:=finddev(stu(s2));
  4665.  
  4666.  if (d1=0) then begin;
  4667.   writeln('Linkfactory: couldn''t find ',s1,^G^G);
  4668.  end else if (d2=0) then begin;
  4669.   writeln('Linkfactory: couldn''t find ',s2,^G^G);
  4670.  end else begin;
  4671.   devicedef[d1].var2:=d2;
  4672.  end;
  4673. end;
  4674.  
  4675. var
  4676.  a,b,c: word;
  4677.  f2: file of devdeftype;
  4678.  f3: file of terraintype;
  4679.  f4: text;
  4680.  t: terraintype;
  4681.  d,d2: devdeftype;
  4682.  f: file;
  4683.  
  4684.  gtd: array[1..200] of string[12];
  4685.  gtdcount: word;
  4686.  s: string;
  4687. begin;
  4688.  linkfactory('Hostility Pack','MegaMine');
  4689.  linkfactory('Fact: Dumb Mine','Dumb Mine');
  4690.  linkfactory('Fact: Smart Mine','Smart Mine');
  4691.  linkfactory('Fact: Day Ruiner','Day Ruiner');
  4692.  linkfactory('Fact: MegaMine','MegaMine');
  4693.  linkfactory('Fact: MicroNuke','MicroNuke');
  4694.  linkfactory('Fact: Zapper Mine','Zapper Mine');
  4695.  linkfactory('Fact: TeleMine','TeleMine');
  4696.  linkfactory('Fact: Protector','Protector');
  4697.  linkfactory('Fact: Robomine 2','Robomine 2');
  4698.  linkfactory('Fact: Robomine 3','Robomine 3');
  4699.  linkfactory('Fact: Robomine 4','Robomine 4');
  4700.  linkfactory('Fact: Robomine 5','Robomine 5');
  4701.  linkfactory('Fact: Robomine 6','Robomine 6');
  4702.  linkfactory('Fact: Guardian','Guardian');
  4703.  linkfactory('Fact: Draku Mine','Draku Mine');
  4704.  linkfactory('Fact: Xeboc Mine','Xeboc Mine');
  4705.  
  4706.  linkfactory('Terra Seller A','Ultrawarper');
  4707.  linkfactory('Terra Seller B','Ultracharger');
  4708.  linkfactory('Terra Seller C','Ultracloak');
  4709.  
  4710.  assign(f4,'GTDEVSTR.TXT');
  4711.  reset(f4);
  4712.  gtdcount:=0;
  4713.  while not eof(f4) do begin;
  4714.   readln(f4,s);
  4715.   if (s<>'') and (s[1]<>';') then begin;
  4716.    inc(gtdcount);
  4717.    gtd[gtdcount]:=s;
  4718.   end;
  4719.  end;
  4720.  close(f4);
  4721.  
  4722.  assign(f4,'D:\TURBO\NEWGT\DEVRES.TXT');
  4723.  rewrite(f4);
  4724.  writeln(f4,'STRINGTABLE');
  4725.  writeln(f4,'BEGIN');
  4726.  for a:=1 to numdev do begin;
  4727.   writeln(f4,'        ',500+a,', "',devicedef[a].name,'"');
  4728.  end;
  4729.  writeln(f4,'END');
  4730.  close(f4);
  4731.  
  4732.  for a:=1 to numdev do if (devicedef[a].picnum=0) and (devicedef[a].name<>'') then begin;
  4733.   c:=0;
  4734.   s:=devicedef[a].name;
  4735.   if length(s)>10 then s[0]:=#10;
  4736.   for b:=1 to gtdcount do if s=gtd[b] then c:=b;
  4737.   if c=0 then begin;
  4738.    inc(gtdcount);
  4739.    gtd[gtdcount]:=s;
  4740.    c:=gtdcount;
  4741.   end;
  4742.   devicedef[a].picnum:=1000+c;
  4743.  end;
  4744.  
  4745.  assign(f2,'DEVICES.BIN');
  4746.  rewrite(f2);
  4747.  fillchar(d,sizeof(d),0);
  4748.  d.name:='Nil';
  4749.  for a:=0 to numdev do begin;
  4750.   if a=0 then write(f2,d) else begin;
  4751.    d2:=devicedef[a];
  4752.    write(f2,d2);
  4753.   end;
  4754.  end;
  4755.  for a:=numdev+1 to devfilesize do begin;
  4756.   write(f2,d);
  4757.  end;
  4758.  close(f2);
  4759.  
  4760.  assign(f4,'GTDEVSTR.TXT');
  4761.  rewrite(f4);
  4762.  writeln(f4,';_Maintained_ by MAKEDEV.PAS.');
  4763.  for a:=1 to gtdcount do writeln(f4,gtd[a]);
  4764.  close(f4);
  4765.  
  4766.  assign(f4,'GTSTRS.DEF');
  4767.  rewrite(f4);
  4768.  writeln(f4,numstr);
  4769.  for a:=1 to numstr do writeln(f4,stringdef[a]+'~');
  4770.  writeln(f4,gtdcount);
  4771.  for a:=1 to gtdcount do writeln(f4,gtd[a]);
  4772.  close(f4);
  4773.  
  4774.  assign(f3,'TERRAIN.BIN');
  4775.  rewrite(f3);
  4776.  fillchar(t,sizeof(t),0);
  4777.  write(f3,t);
  4778.  for a:=1 to 50 do begin;
  4779.   t.dng:=tdng[a];
  4780.   t.typ:=ttype[a];
  4781.   t.map:=terrain[a];
  4782.   t.clr:=tcolor[a];
  4783.   t.pas:=tpassd[a];
  4784.   write(f3,t);
  4785.  end;
  4786.  close(f3);
  4787.  
  4788.  setgeneral;
  4789.  general.numquest:=numquest;
  4790.  
  4791.  assign(f,'MISC.BIN');
  4792.  rewrite(f,1);
  4793.  blockwrite(f,general,sizeof(general));
  4794.  close(f);
  4795.  
  4796.  assign(f,'QUEST.BIN');
  4797.  rewrite(f,1);
  4798.  for a:=1 to maxquest do begin;
  4799.   b:=1;
  4800.   for c:=1 to a-1 do b:=b*2;
  4801.   quests[a].mask:=b;
  4802.   blockwrite(f,quests[a],sizeof(quests[a]));
  4803.  end;
  4804. end.
  4805.