Move crates option to rules.
This commit is contained in:
@@ -20,6 +20,12 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
public class CrateSpawnerInfo : ITraitInfo
|
||||
{
|
||||
[Desc("Default value of the crates checkbox in the lobby.")]
|
||||
public readonly bool Enabled = true;
|
||||
|
||||
[Desc("Prevent the crates state from being changed in the lobby.")]
|
||||
public readonly bool Locked = false;
|
||||
|
||||
[Desc("Minimum number of crates.")]
|
||||
public readonly int Minimum = 1;
|
||||
|
||||
@@ -42,14 +48,14 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly int WaterChance = 20;
|
||||
|
||||
[ActorReference]
|
||||
[Desc("Crate actors to drop")]
|
||||
[Desc("Crate actors to drop.")]
|
||||
public readonly string[] CrateActors = { "crate" };
|
||||
|
||||
[Desc("Chance of each crate actor spawning")]
|
||||
[Desc("Chance of each crate actor spawning.")]
|
||||
public readonly int[] CrateActorShares = { 10 };
|
||||
|
||||
[ActorReference]
|
||||
[Desc("If a DeliveryAircraft: is specified, then this actor will deliver crates")]
|
||||
[Desc("If a DeliveryAircraft: is specified, then this actor will deliver crates.")]
|
||||
public readonly string DeliveryAircraft = null;
|
||||
|
||||
[Desc("Number of facings that the delivery aircraft may approach from.")]
|
||||
|
||||
Reference in New Issue
Block a user