/// <summary> /// Creates a new container with the following properties /// </summary> /// <param name="name">The name of this upgrade</param> /// <param name="description">The description of this upgrade</param> /// <param name="upgradeClass">The class the upgrade belongs to</param> protected ModDroneUpgradeContainer(string name, string description, DroneUpgradeClass upgradeClass) { this.name = name; this.description = description; this.upgradeClass = upgradeClass; cost = 3; modifier = 0; duration = 0; }
/// <summary> /// Creates a new container with the following properties /// </summary> /// <param name="name">The name of this upgrade</param> /// <param name="description">The description of this upgrade</param> /// <param name="cost">How much it costs to buy from auto trader, all upgrades in the games always uses 3</param> /// <param name="modifier">The modifier this upgrade applies to a drone, currently used by speed upgrade</param> /// <param name="duration">Duration of the upgrade, used by upgrades like stealthy, sonic, shield</param> /// <param name="upgradeClass">The class the upgrade belongs to</param> protected ModDroneUpgradeContainer(string name, string description, int cost, int modifier, int duration, DroneUpgradeClass upgradeClass) { this.name = name; this.description = description; this.cost = cost; this.modifier = modifier; this.duration = duration; this.upgradeClass = upgradeClass; }