public static ItemMaker Load(List <string> values)
            {
                ItemMaker item = new ItemMaker();

                item.iconGraphic    = new Graphics(ref values, 23);
                item.prefireGraphic = new Graphics(ref values, 71);
                item.prefireSound   = new Sound(ref values, 79);
                ItemInfo.LoadGeneralSettings1((ItemInfo)item, values);

                item.useAmmoID                      = CSVReader.GetInt(values[31]);
                item.ammoUsedPerShot                = CSVReader.GetInt(values[32]);
                item.ammoCapacity                   = CSVReader.GetInt(values[33]);
                item.requiredItem                   = CSVReader.GetInt(values[34]);
                item.requiredItemAmount             = CSVReader.GetInt(values[35]);
                item.energyCostTerrain0             = CSVReader.GetInt(values[36]);
                item.energyCostTerrain1             = CSVReader.GetInt(values[37]);
                item.energyCostTerrain2             = CSVReader.GetInt(values[38]);
                item.energyCostTerrain3             = CSVReader.GetInt(values[39]);
                item.energyCostTerrain4             = CSVReader.GetInt(values[40]);
                item.energyCostTerrain5             = CSVReader.GetInt(values[41]);
                item.energyCostTerrain6             = CSVReader.GetInt(values[42]);
                item.energyCostTerrain7             = CSVReader.GetInt(values[43]);
                item.energyCostTerrain8             = CSVReader.GetInt(values[44]);
                item.energyCostTerrain9             = CSVReader.GetInt(values[45]);
                item.energyCostTerrain10            = CSVReader.GetInt(values[46]);
                item.energyCostTerrain11            = CSVReader.GetInt(values[47]);
                item.energyCostTerrain12            = CSVReader.GetInt(values[48]);
                item.energyCostTerrain13            = CSVReader.GetInt(values[49]);
                item.energyCostTerrain14            = CSVReader.GetInt(values[50]);
                item.energyCostTerrain15            = CSVReader.GetInt(values[51]);
                item.secondShotEnergy               = CSVReader.GetInt(values[52]);
                item.secondShotTimeout              = CSVReader.GetInt(values[53]);
                item.fireDelay                      = CSVReader.GetInt(values[54]);
                item.fireDelayOther                 = CSVReader.GetInt(values[55]);
                item.maxFireDelay                   = CSVReader.GetInt(values[56]);
                item.entryFireDelay                 = CSVReader.GetInt(values[57]);
                item.reloadDelayNormal              = CSVReader.GetInt(values[58]);
                item.reloadDelayPartial             = CSVReader.GetInt(values[59]);
                item.reloadDelayAsynchronous        = CSVReader.GetInt(values[60]);
                item.reloadDelayAsynchronousPartial = CSVReader.GetInt(values[61]);
                item.routeRange                     = CSVReader.GetInt(values[62]);
                item.routeRotationalRange           = CSVReader.GetInt(values[63]);
                item.routeFriendly                  = CSVReader.GetBool(values[65]);
                item.recoil                 = CSVReader.GetInt(values[66]);
                item.verticalRecoil         = CSVReader.GetInt(values[67]);
                item.prefireDelay           = CSVReader.GetInt(values[68]);
                item.reliability            = CSVReader.GetInt(values[69]);
                item.reliabilityFireDelay   = CSVReader.GetInt(values[70]);
                item.movementCancelsPrefire = CSVReader.GetBool(values[83]);
                item.notifyOthersOfPrefire  = CSVReader.GetBool(values[84]);
                item.cashCost               = CSVReader.GetInt(values[85]);
                item.useWhileCarryingBall   = CSVReader.GetBool(values[86]);
                item.useWhileCarryingFlag   = CSVReader.GetBool(values[87]);
                item.itemMakerItemID        = CSVReader.GetInt(values[93]);
                item.itemMakerQuantity      = CSVReader.GetInt(values[94]);

                return(item);
            }
Exemplo n.º 2
0
            public static Ammo Load(List <string> values)
            {
                Ammo ammo = new Ammo();

                ammo.graphic = new Graphics(ref values, 23);
                ItemInfo.LoadGeneralSettings1((ItemInfo)ammo, values);

                return(ammo);
            }
            public static UtilityItem Load(List <string> values)
            {
                UtilityItem item = new UtilityItem();

                item.iconGraphic   = new Graphics(ref values, 23);
                item.activateSound = new Sound(ref values, 48);
                ItemInfo.LoadGeneralSettings1((ItemInfo)item, values);
                item.maxSlotted             = CSVReader.GetInt(values[31]);
                item.maxSlottedCategoryCode = CSVReader.GetInt(values[32]);
                item.extraCapacity          = CSVReader.GetInt(values[33]);
                item.rechargeRate           = CSVReader.GetInt(values[34]);
                item.stealthDistance        = CSVReader.GetInt(values[35]);
                item.cloakDistance          = CSVReader.GetInt(values[36]);
                item.antiStealthDistance    = CSVReader.GetInt(values[37]);
                item.antiCloakDistance      = CSVReader.GetInt(values[38]);
                item.antiWarpDistance       = CSVReader.GetInt(values[39]);
                item.stealthDistanceTime    = CSVReader.GetInt(values[40]);
                item.cloakDistanceTime      = CSVReader.GetInt(values[41]);
                item.vehicleTopSpeed        = CSVReader.GetInt(values[42]);
                item.vehicleHyperTopSpeed   = CSVReader.GetInt(values[43]);
                item.vehicleThrust          = CSVReader.GetInt(values[44]);
                item.vehicleRotate          = CSVReader.GetInt(values[45]);
                item.soccerThrowTimer       = CSVReader.GetInt(values[46]);
                item.startMode          = (StartMode)CSVReader.GetInt(values[47]);
                item.kineticIgnore      = CSVReader.GetInt(values[52]);
                item.kineticPercent     = CSVReader.GetInt(values[53]);
                item.explosiveIgnore    = CSVReader.GetInt(values[54]);
                item.explosivePercent   = CSVReader.GetInt(values[55]);
                item.electronicIgnore   = CSVReader.GetInt(values[56]);
                item.electronicPercent  = CSVReader.GetInt(values[57]);
                item.psionicIgnore      = CSVReader.GetInt(values[58]);
                item.psionicPercent     = CSVReader.GetInt(values[59]);
                item.bypassIgnore       = CSVReader.GetInt(values[60]);
                item.bypassPercent      = CSVReader.GetInt(values[61]);
                item.energyIgnore       = CSVReader.GetInt(values[62]);
                item.energyPercent      = CSVReader.GetInt(values[63]);
                item.losDistance        = CSVReader.GetInt(values[124]);
                item.losAngle           = CSVReader.GetInt(values[125]);
                item.losXray            = CSVReader.GetInt(values[126]);
                item.losDistancePercent = CSVReader.GetInt(values[127]);
                item.losAnglePercent    = CSVReader.GetInt(values[128]);
                item.combatAwareness    = CSVReader.GetInt(values[129]);
                item.radarPrizeDistance = CSVReader.GetInt(values[130]);
                item.normalWeight       = CSVReader.GetInt(values[131]);
                item.stopWeight         = CSVReader.GetInt(values[132]);
                item.strafeThrust       = CSVReader.GetInt(values[133]);
                item.forwardThrust      = CSVReader.GetInt(values[134]);
                item.reverseThrust      = CSVReader.GetInt(values[135]);
                item.soccerCatchRadius  = CSVReader.GetInt(values[136]);
                return(item);
            }
            public static SkillItem Load(List <string> values)
            {
                SkillItem item = new SkillItem();

                item.iconGraphic = new Graphics(ref values, 23);
                ItemInfo.LoadGeneralSettings1((ItemInfo)item, values);
                int currentPlace = 31;

                for (int i = 0; i < 15; i++)
                {
                    Skill child = new Skill();
                    child.logic   = CSVReader.GetQuotedString(values[currentPlace + 0]);
                    child.ID      = CSVReader.GetInt(values[currentPlace + 1]);
                    currentPlace += 2;
                    item.skills.Add(child);
                }
                return(item);
            }
            public static UpgradeItem Load(List <string> values)
            {
                UpgradeItem item = new UpgradeItem();

                item.iconGraphic = new Graphics(ref values, 23);
                ItemInfo.LoadGeneralSettings1((ItemInfo)item, values);

                int currentPlace = 31;

                for (int i = 0; i < 15; i++)
                {
                    Upgrade child = new Upgrade();
                    child.inputID  = CSVReader.GetInt(values[currentPlace + 0]);
                    child.outputID = CSVReader.GetInt(values[currentPlace + 1]);
                    currentPlace  += 2;
                    item.upgrades.Add(child);
                }

                return(item);
            }
            public static MultiItem Load(List <string> values)
            {
                MultiItem multiItem = new MultiItem();

                multiItem.graphic = new Graphics(ref values, 23);
                ItemInfo.LoadGeneralSettings1((ItemInfo)multiItem, values);
                multiItem.Cash       = CSVReader.GetInt(values[31]);
                multiItem.Energy     = CSVReader.GetInt(values[32]);
                multiItem.Health     = CSVReader.GetInt(values[33]);
                multiItem.Repair     = CSVReader.GetInt(values[34]);
                multiItem.Experience = CSVReader.GetInt(values[35]);
                for (int i = 0; i <= 16; i++)
                {
                    int value = CSVReader.GetInt(values[36 + i]);
                    multiItem.slots.Add(new Slot(i, value));
                }

                if (multiItem.version >= 53) // Version == field count??
                {
                    multiItem.ExpandRadius = CSVReader.GetInt(values[52]);
                }

                return(multiItem);
            }
Exemplo n.º 7
0
            public static Projectile Load(List <string> values)
            {
                Projectile projectile = new Projectile();

                projectile.iconGraphic       = new Graphics(ref values, 23);
                projectile.fireGraphic       = new Graphics(ref values, 175);
                projectile.projectileGraphic = new Graphics(ref values, 183);
                projectile.shadowGraphic     = new Graphics(ref values, 191);
                projectile.trailGraphic      = new Graphics(ref values, 199);
                projectile.explosionGraphic  = new Graphics(ref values, 207);
                projectile.prefireGraphic    = new Graphics(ref values, 71);
                projectile.firingSound       = new Sound(ref values, 215);
                projectile.explosionSound    = new Sound(ref values, 219);
                projectile.bounceSound       = new Sound(ref values, 223);
                projectile.prefireSound      = new Sound(ref values, 79);
                ItemInfo.LoadGeneralSettings1((ItemInfo)projectile, values);
                projectile.useAmmoID                      = CSVReader.GetInt(values[31]);
                projectile.ammoUsedPerShot                = CSVReader.GetInt(values[32]);
                projectile.ammoCapacity                   = CSVReader.GetInt(values[33]);
                projectile.requiredItem                   = CSVReader.GetInt(values[34]);
                projectile.requiredItemAmount             = CSVReader.GetInt(values[35]);
                projectile.terrain0EnergyCost             = CSVReader.GetInt(values[36]);
                projectile.terrain1EnergyCost             = CSVReader.GetInt(values[37]);
                projectile.terrain2EnergyCost             = CSVReader.GetInt(values[38]);
                projectile.terrain3EnergyCost             = CSVReader.GetInt(values[39]);
                projectile.terrain4EnergyCost             = CSVReader.GetInt(values[40]);
                projectile.terrain5EnergyCost             = CSVReader.GetInt(values[41]);
                projectile.terrain6EnergyCost             = CSVReader.GetInt(values[42]);
                projectile.terrain7EnergyCost             = CSVReader.GetInt(values[43]);
                projectile.terrain8EnergyCost             = CSVReader.GetInt(values[44]);
                projectile.terrain9EnergyCost             = CSVReader.GetInt(values[45]);
                projectile.terrain10EnergyCost            = CSVReader.GetInt(values[46]);
                projectile.terrain11EnergyCost            = CSVReader.GetInt(values[47]);
                projectile.terrain12EnergyCost            = CSVReader.GetInt(values[48]);
                projectile.terrain13EnergyCost            = CSVReader.GetInt(values[49]);
                projectile.terrain14EnergyCost            = CSVReader.GetInt(values[50]);
                projectile.terrain15EnergyCost            = CSVReader.GetInt(values[51]);
                projectile.secondShotEnergy               = CSVReader.GetInt(values[52]);
                projectile.secondShotTimeout              = CSVReader.GetInt(values[53]);
                projectile.fireDelay                      = CSVReader.GetInt(values[54]);
                projectile.fireDelayOther                 = CSVReader.GetInt(values[55]);
                projectile.maxFireDelay                   = CSVReader.GetInt(values[56]);
                projectile.entryFireDelay                 = CSVReader.GetInt(values[57]);
                projectile.reloadDelayNormal              = CSVReader.GetInt(values[58]);
                projectile.reloadDelayPartial             = CSVReader.GetInt(values[59]);
                projectile.reloadDelayAsyncronous         = CSVReader.GetInt(values[60]);
                projectile.reloadDelayAsynchronousPartial = CSVReader.GetInt(values[61]);
                projectile.routeRange                     = CSVReader.GetInt(values[62]);
                projectile.routeRotationalRange           = CSVReader.GetInt(values[63]);
                projectile.routeFriendly                  = CSVReader.GetBool(values[65]);
                projectile.recoil                          = CSVReader.GetInt(values[66]);
                projectile.verticle                        = CSVReader.GetInt(values[67]);
                projectile.prefireDelay                    = CSVReader.GetInt(values[68]);
                projectile.reliability                     = CSVReader.GetInt(values[69]);
                projectile.reliabilityFireDelay            = CSVReader.GetInt(values[70]);
                projectile.movementCancelsPrefire          = CSVReader.GetBool(values[83]);
                projectile.notifyOthersOfPrefire           = CSVReader.GetBool(values[84]);
                projectile.cashCost                        = CSVReader.GetInt(values[85]);
                projectile.useWhileCarryingBall            = CSVReader.GetBool(values[86]);
                projectile.useWhileCarryingFlag            = CSVReader.GetBool(values[87]);
                projectile.soccerThrow                     = CSVReader.GetInt(values[88]);
                projectile.soccerBallFriction              = CSVReader.GetInt(values[89]);
                projectile.soccerBallSpeed                 = CSVReader.GetInt(values[90]);
                projectile.soccerLowFireAngle              = CSVReader.GetInt(values[91]);
                projectile.soccerHighFireAngle             = CSVReader.GetInt(values[92]);
                projectile.horizontalFriction              = CSVReader.GetInt(values[93]);
                projectile.inheritedSpeed                  = CSVReader.GetInt(values[94]);
                projectile.inheritZSpeed                   = CSVReader.GetInt(values[95]);
                projectile.startHeightAdjust               = CSVReader.GetInt(values[96]);
                projectile.lowRotationAngle                = CSVReader.GetInt(values[97]);
                projectile.highRotationAngle               = CSVReader.GetInt(values[98]);
                projectile.lowFireAngle                    = CSVReader.GetInt(values[99]);
                projectile.highFireAngle                   = CSVReader.GetInt(values[100]);
                projectile.muzzleVelocity                  = CSVReader.GetInt(values[101]);
                projectile.gravityAcceleration             = CSVReader.GetInt(values[102]);
                projectile.horizontalBounceSpeed           = CSVReader.GetInt(values[103]);
                projectile.bounceCount                     = CSVReader.GetInt(values[104]);
                projectile.floorBounceVerticalSpeed        = CSVReader.GetInt(values[105]);
                projectile.floorBounceHorizontalSpeed      = CSVReader.GetInt(values[106]);
                projectile.floorBounceCount                = CSVReader.GetInt(values[107]);
                projectile.proximityRadius                 = CSVReader.GetInt(values[108]);
                projectile.triggerWeight                   = CSVReader.GetInt(values[109]);
                projectile.aliveTime                       = CSVReader.GetInt(values[110]);
                projectile.rotationalStartTime             = CSVReader.GetInt(values[111]);
                projectile.rotationalEndTime               = CSVReader.GetInt(values[112]);
                projectile.rotationalSpeed                 = CSVReader.GetInt(values[113]);
                projectile.rotationalAcceleration          = CSVReader.GetInt(values[114]);
                projectile.inactiveTime                    = CSVReader.GetInt(values[115]);
                projectile.damageMode                      = CSVReader.GetInt(values[116]);
                projectile.damageAccessible                = CSVReader.GetBool(values[117]);
                projectile.trailDelay                      = CSVReader.GetInt(values[119]);
                projectile.explosionRecoilRadius           = CSVReader.GetInt(values[120]);
                projectile.explosionRecoilVehicleVertical  = CSVReader.GetInt(values[122]);
                projectile.explosionRecoilIgnoreTime       = CSVReader.GetInt(values[123]);
                projectile.explosionRecoilWeapon           = CSVReader.GetInt(values[124]);
                projectile.explosionRecoilWeaponDuration   = CSVReader.GetInt(values[125]);
                projectile.explosionRecoilVehicleAbsolute  = CSVReader.GetBool(values[126]);
                projectile.explosionRecoilWeaponAbsolute   = CSVReader.GetBool(values[127]);
                projectile.explosionRecoilDirectionPercent = CSVReader.GetInt(values[128]);
                projectile.explosionScreenShakeAmount      = CSVReader.GetInt(values[129]);
                projectile.maxLiveCategoryCode             = CSVReader.GetInt(values[130]);
                projectile.maxLivePerPlayer                = CSVReader.GetInt(values[131]);
                projectile.maxLivePerTeam                  = CSVReader.GetInt(values[132]);
                projectile.maxLivePerLevel                 = CSVReader.GetInt(values[133]);
                projectile.antiEffectsRadius               = CSVReader.GetInt(values[134]);
                projectile.antiEffectsRecharge             = CSVReader.GetInt(values[135]);
                projectile.antiEffectsFire                 = CSVReader.GetInt(values[136]);
                projectile.antiEffectsThrust               = CSVReader.GetInt(values[137]);
                projectile.antiEffectsRotate               = CSVReader.GetInt(values[138]);
                projectile.antiEffectsBallPickupDuration   = CSVReader.GetInt(values[139]);
                projectile.antiEffectsBallThrowDuration    = CSVReader.GetInt(values[140]);
                projectile.preventPointBlank               = CSVReader.GetInt(values[141]);
                projectile.explodeItem                     = CSVReader.GetInt(values[142]);
                projectile.projectileRadarMode             = CSVReader.GetInt(values[143]);
                projectile.damageEventRadius               = CSVReader.GetInt(values[146]);
                projectile.damageEventString               = CSVReader.GetString(values[147]);
                projectile.portalGravity                   = CSVReader.GetBool(values[148]);
                projectile.vehicleGravity                  = CSVReader.GetInt(values[150]);
                projectile.kineticDamageRadius             = CSVReader.GetInt(values[151]);
                projectile.kineticDamageInner              = CSVReader.GetInt(values[152]);
                projectile.kineticDamageOuter              = CSVReader.GetInt(values[153]);
                projectile.kineticDamageMode               = CSVReader.GetInt(values[154]);
                projectile.explosiveDamageRadius           = CSVReader.GetInt(values[155]);
                projectile.explosiveDamageInner            = CSVReader.GetInt(values[156]);
                projectile.explosiveDamageOuter            = CSVReader.GetInt(values[157]);
                projectile.explosiveDamageMode             = CSVReader.GetInt(values[158]);
                projectile.electronicDamageRadius          = CSVReader.GetInt(values[159]);
                projectile.electronicDamageInner           = CSVReader.GetInt(values[160]);
                projectile.electronicDamageOuter           = CSVReader.GetInt(values[161]);
                projectile.electronicDamageMode            = CSVReader.GetInt(values[162]);
                projectile.psionicDamageRadius             = CSVReader.GetInt(values[163]);
                projectile.psionicDamageInner              = CSVReader.GetInt(values[164]);
                projectile.psionicDamageOuter              = CSVReader.GetInt(values[165]);
                projectile.psionicDamageMode               = CSVReader.GetInt(values[166]);
                projectile.bypassDamageRadius              = CSVReader.GetInt(values[167]);
                projectile.bypassDamageInner               = CSVReader.GetInt(values[168]);
                projectile.bypassDamageOuter               = CSVReader.GetInt(values[169]);
                projectile.bypassDamageMode                = CSVReader.GetInt(values[170]);
                projectile.energyDamageRadius              = CSVReader.GetInt(values[171]);
                projectile.energyDamageInner               = CSVReader.GetInt(values[172]);
                projectile.energyDamageOuter               = CSVReader.GetInt(values[173]);
                projectile.energyDamageMode                = CSVReader.GetInt(values[174]);



                return(projectile);
            }
Exemplo n.º 8
0
            public static RepairItem Load(List <string> values)
            {
                RepairItem item = new RepairItem();

                item.iconGraphic    = new Graphics(ref values, 23);
                item.prefireGraphic = new Graphics(ref values, 71);
                item.repairGraphic  = new Graphics(ref values, 100);
                item.prefireSound   = new Sound(ref values, 79);
                item.repairSound    = new Sound(ref values, 108);
                ItemInfo.LoadGeneralSettings1((ItemInfo)item, values);

                item.useAmmoID                      = CSVReader.GetInt(values[31]);
                item.ammoUsedPerShot                = CSVReader.GetInt(values[32]);
                item.ammoCapacity                   = CSVReader.GetInt(values[33]);
                item.requiredItem                   = CSVReader.GetInt(values[34]);
                item.requiredItemAmount             = CSVReader.GetInt(values[35]);
                item.energyCostTerrain0             = CSVReader.GetInt(values[36]);
                item.energyCostTerrain1             = CSVReader.GetInt(values[37]);
                item.energyCostTerrain2             = CSVReader.GetInt(values[38]);
                item.energyCostTerrain3             = CSVReader.GetInt(values[39]);
                item.energyCostTerrain4             = CSVReader.GetInt(values[40]);
                item.energyCostTerrain5             = CSVReader.GetInt(values[41]);
                item.energyCostTerrain6             = CSVReader.GetInt(values[42]);
                item.energyCostTerrain7             = CSVReader.GetInt(values[43]);
                item.energyCostTerrain8             = CSVReader.GetInt(values[44]);
                item.energyCostTerrain9             = CSVReader.GetInt(values[45]);
                item.energyCostTerrain10            = CSVReader.GetInt(values[46]);
                item.energyCostTerrain11            = CSVReader.GetInt(values[47]);
                item.energyCostTerrain12            = CSVReader.GetInt(values[48]);
                item.energyCostTerrain13            = CSVReader.GetInt(values[49]);
                item.energyCostTerrain14            = CSVReader.GetInt(values[50]);
                item.energyCostTerrain15            = CSVReader.GetInt(values[51]);
                item.secondShotEnergy               = CSVReader.GetInt(values[52]);
                item.secondShotTimeout              = CSVReader.GetInt(values[53]);
                item.fireDelay                      = CSVReader.GetInt(values[54]);
                item.fireDelayOther                 = CSVReader.GetInt(values[55]);
                item.maxFireDelay                   = CSVReader.GetInt(values[56]);
                item.entryFireDelay                 = CSVReader.GetInt(values[57]);
                item.reloadDelayNormal              = CSVReader.GetInt(values[58]);
                item.reloadDelayPartial             = CSVReader.GetInt(values[59]);
                item.reloadDelayAsynchronous        = CSVReader.GetInt(values[60]);
                item.reloadDelayAsynchronousPartial = CSVReader.GetInt(values[61]);
                item.routeRange                     = CSVReader.GetInt(values[62]);
                item.routeRotationalRange           = CSVReader.GetInt(values[63]);
                item.routeFriendly                  = CSVReader.GetBool(values[65]);
                item.recoil                 = CSVReader.GetInt(values[66]);
                item.verticalRecoil         = CSVReader.GetInt(values[67]);
                item.prefireDelay           = CSVReader.GetInt(values[68]);
                item.reliability            = CSVReader.GetInt(values[69]);
                item.reliabilityFireDelay   = CSVReader.GetInt(values[70]);
                item.movementCancelsPrefire = CSVReader.GetBool(values[83]);
                item.notifyOthersOfPrefire  = CSVReader.GetBool(values[84]);
                item.cashCost               = CSVReader.GetInt(values[85]);
                item.useWhileCarryingBall   = CSVReader.GetBool(values[86]);
                item.useWhileCarryingFlag   = CSVReader.GetBool(values[87]);
                item.soccerThrow            = CSVReader.GetInt(values[88]);
                item.soccerBallFriction     = CSVReader.GetInt(values[89]);
                item.soccerBallSpeed        = CSVReader.GetInt(values[90]);
                item.soccerLowFireAngle     = CSVReader.GetInt(values[91]);
                item.soccerHighFireAngle    = CSVReader.GetInt(values[92]);
                item.repairType             = CSVReader.GetInt(values[93]);
                item.repairAmount           = CSVReader.GetInt(values[94]);
                item.repairPercentage       = CSVReader.GetInt(values[95]);
                item.repairTime             = CSVReader.GetInt(values[96]);
                item.repairDistance         = CSVReader.GetInt(values[97]);
                item.killPotential          = CSVReader.GetInt(values[98]);
                item.repairSelf             = CSVReader.GetBool(values[99]);

                return(item);
            }
Exemplo n.º 9
0
            public static MultiUse Load(List <string> values)
            {
                MultiUse multiUse = new MultiUse();

                multiUse.prefireGraphic = new Graphics(ref values, 71);
                multiUse.prefireSound   = new Sound(ref values, 79);
                multiUse.firingSound    = new Sound(ref values, 93);
                multiUse.iconGraphic    = new Graphics(ref values, 23);
                ItemInfo.LoadGeneralSettings1((ItemInfo)multiUse, values);

                multiUse.useAmmoID                      = CSVReader.GetInt(values[31]);
                multiUse.ammoUsedPerShot                = CSVReader.GetInt(values[32]);
                multiUse.ammoCapacity                   = CSVReader.GetInt(values[33]);
                multiUse.requiredItem                   = CSVReader.GetInt(values[34]);
                multiUse.requiredAmmoAmount             = CSVReader.GetInt(values[35]);
                multiUse.energyCostTerrain0             = CSVReader.GetInt(values[36]);
                multiUse.energyCostTerrain1             = CSVReader.GetInt(values[37]);
                multiUse.energyCostTerrain2             = CSVReader.GetInt(values[38]);
                multiUse.energyCostTerrain3             = CSVReader.GetInt(values[39]);
                multiUse.energyCostTerrain4             = CSVReader.GetInt(values[40]);
                multiUse.energyCostTerrain5             = CSVReader.GetInt(values[41]);
                multiUse.energyCostTerrainTerrain6      = CSVReader.GetInt(values[42]);
                multiUse.energyCostTerrain7             = CSVReader.GetInt(values[43]);
                multiUse.energyCostTerrain8             = CSVReader.GetInt(values[44]);
                multiUse.energyCostTerrain9             = CSVReader.GetInt(values[45]);
                multiUse.energyCostTerrain10            = CSVReader.GetInt(values[46]);
                multiUse.energyCostTerrain11            = CSVReader.GetInt(values[47]);
                multiUse.energyCostTerrain12            = CSVReader.GetInt(values[48]);
                multiUse.energyCostTerrain13            = CSVReader.GetInt(values[49]);
                multiUse.energyCostTerrain14            = CSVReader.GetInt(values[50]);
                multiUse.energyCostTerrain15            = CSVReader.GetInt(values[51]);
                multiUse.secondShotEnergy               = CSVReader.GetInt(values[52]);
                multiUse.secondShotTimeout              = CSVReader.GetInt(values[53]);
                multiUse.fireDelay                      = CSVReader.GetInt(values[54]);
                multiUse.fireDelayOther                 = CSVReader.GetInt(values[55]);
                multiUse.maxFireDelay                   = CSVReader.GetInt(values[56]);
                multiUse.entryFireDelay                 = CSVReader.GetInt(values[57]);
                multiUse.reloadDelayNormal              = CSVReader.GetInt(values[58]);
                multiUse.reloadDelayPartial             = CSVReader.GetInt(values[59]);
                multiUse.reloadDelayAsynchronous        = CSVReader.GetInt(values[60]);
                multiUse.reloadDelayAsynchronousPartial = CSVReader.GetInt(values[61]);
                multiUse.routeRange                     = CSVReader.GetInt(values[62]);
                multiUse.routeRotationalRange           = CSVReader.GetInt(values[63]);
                multiUse.routeFriendly                  = CSVReader.GetBool(values[65]);
                multiUse.recoil                 = CSVReader.GetInt(values[66]);
                multiUse.verticalRecoil         = CSVReader.GetInt(values[67]);
                multiUse.prefireDelay           = CSVReader.GetInt(values[68]);
                multiUse.reliability            = CSVReader.GetInt(values[69]);
                multiUse.reliabilityFireDelay   = CSVReader.GetInt(values[70]);
                multiUse.movementCancelsPrefire = CSVReader.GetBool(values[83]);
                multiUse.notifyOthersOfPrefire  = CSVReader.GetBool(values[84]);
                multiUse.cashCost               = CSVReader.GetInt(values[85]);
                multiUse.useWhileCarryingBall   = CSVReader.GetBool(values[86]);
                multiUse.useWhileCarryingFlag   = CSVReader.GetBool(values[87]);
                multiUse.soccerThrow            = CSVReader.GetInt(values[88]);
                multiUse.soccerBallFriction     = CSVReader.GetInt(values[89]);
                multiUse.soccerBallSpeed        = CSVReader.GetInt(values[90]);
                multiUse.soccerLowFireAngle     = CSVReader.GetInt(values[91]);
                multiUse.soccerHighFireAngle    = CSVReader.GetInt(values[92]);

                int currentPlace = 97;

                multiUse.childItems = new List <ChildItem>();

                for (int i = 0; i < 32; i++)
                {
                    if (currentPlace < values.Count)
                    {
                        ChildItem child = new ChildItem();
                        child.id               = CSVReader.GetInt(values[currentPlace + 0]);
                        child.deltaX           = CSVReader.GetInt(values[currentPlace + 1]);
                        child.deltaY           = CSVReader.GetInt(values[currentPlace + 2]);
                        child.deltaZ           = CSVReader.GetInt(values[currentPlace + 3]);
                        child.deltaAngle       = CSVReader.GetInt(values[currentPlace + 4]);
                        child.theMultiLinkMode = (ChildItem.MultiLinkModes)CSVReader.GetInt(values[currentPlace + 5]);
                        multiUse.childItems.Add(child);
                        currentPlace += 6;
                    }
                    else
                    {
                        break;
                    }
                }
                return(multiUse);
            }