|
Also I mainly bring this up because otherwise, we have to resort to hacks like this:
Struct ItemsToSave
{
Array<String> ItemList;
void Init()
{
static const String SavedItemsStr[] =
{
"D4DCash",
"AssaultRifleMod1", //1
"AssaultRifleMod2",
"ChaingunMod1",
"ChaingunMod2",
"GaussCannonMod1",
"GaussCannonMod2",
"PlasmaRifleMod1",
"PlasmaRifleMod2",
"RocketLauncherMod1",
"RocketLauncherMod2",
"ShotgunMod1",
"ShotgunMod2",
"SSGUpgrade1",
"SSGUpgrade2",
"SSGUpgrade3",
"SSGUpgrade4",
"PistolUpgradeAutomatic",
"PistolUpgradeAltDamage",
"PistolUpgradeAltCharge",
"PistolUpgradeDamage",
"PistolUpgradeLance",
"BFGUpgrade1",
"BFGUpgrade2",
"BFGUpgrade3",
"BFGUpgrade4", // 25
"StaticUpgrade1",
"StaticUpgrade2",
"StaticUpgrade3",
"StaticUpgrade4",
"SovietActive",
"SovietToken",
"LGUpgradeAmmo",
"LGUpgradeRange",
"LGUpgradeDamage",
"LGUpgradeAltFire",
"VortexUpgradeDamage",
"VortexUpgradeAmmo",
"VortexUpgradeAltSpeed",
"VortexUpgradeAltPierce",
"RepeaterUpgradePiercing",
"RepeaterUpgradeDamage",
"RepeaterUpgradeAltDamage",
"RepeaterUpgradeAltAmmo",
"D4CarrionCannon",
"D4CarrionToken",
"CarrionLevel",
"CarrionUpgradePickup",
"CarrionUpgradeAmmo",
"CarrionUpgradeStun",
"CarrionUpgradeTime",
"DollUses",
"FragGrenadePickup",
"HoloGrenadePickup",
"SyphonGrenadePickup",
"FragGrenadeSelected",
"MarineHoloSelected",
"SyphonGrenadeSelected",
"D4Stamina",
"ProtectionBonus1",
"ProtectionBonus2",
"ProtectionBonus3",
"D4ArmorCapRaiser",
"D4AirControl",
"D4HigherJump",
"D4MultiJump",
"D4CrateUpgrade",
"CashPercentBonus",
"D4MegasphereDamageReducer",
"D4MegachargeUpgrade1",
"D4MegachargeUpgrade2",
"D4DoomDollUpgrade1",
"D4DoomDollUpgrade2",
"D4RegenUpgrade1",
"D4RegenUpgrade2",
"D4RegenUpgrade3",
"D4RegenUpgrade4" // 77
};
ItemList.Clear();
for (int i = 0; i < SavedItemsStr.Size(); i++)
{
ItemList.Push (SavedItemsStr[i]);
}
}
}; |