document SelfHealing prerequisites
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#region Copyright & License Information
|
#region Copyright & License Information
|
||||||
/*
|
/*
|
||||||
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
|
* Copyright 2007-2014 The OpenRA Developers (see AUTHORS)
|
||||||
* This file is part of OpenRA, which is free software. It is made
|
* This file is part of OpenRA, which is free software. It is made
|
||||||
* available to you under the terms of the GNU General Public License
|
* available to you under the terms of the GNU General Public License
|
||||||
* as published by the Free Software Foundation. For more information,
|
* as published by the Free Software Foundation. For more information,
|
||||||
@@ -13,12 +13,15 @@ using OpenRA.Traits;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
{
|
{
|
||||||
|
[Desc("Attach this to actors which should be able to regenerate their health points.")]
|
||||||
class SelfHealingInfo : ITraitInfo, Requires<HealthInfo>
|
class SelfHealingInfo : ITraitInfo, Requires<HealthInfo>
|
||||||
{
|
{
|
||||||
public readonly int Step = 5;
|
public readonly int Step = 5;
|
||||||
public readonly int Ticks = 5;
|
public readonly int Ticks = 5;
|
||||||
public readonly float HealIfBelow = .5f;
|
public readonly float HealIfBelow = .5f;
|
||||||
public readonly int DamageCooldown = 0;
|
public readonly int DamageCooldown = 0;
|
||||||
|
|
||||||
|
[Desc("The Type defined by SelfHealingTech required to enable this.")]
|
||||||
public readonly string RequiresTech = null;
|
public readonly string RequiresTech = null;
|
||||||
|
|
||||||
public virtual object Create(ActorInitializer init) { return new SelfHealing(this); }
|
public virtual object Create(ActorInitializer init) { return new SelfHealing(this); }
|
||||||
@@ -65,6 +68,7 @@ namespace OpenRA.Mods.RA
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Desc("Attach this to an actor required as prerequisite for all owned units to regenerate health.")]
|
||||||
class SelfHealingTechInfo : ITraitInfo
|
class SelfHealingTechInfo : ITraitInfo
|
||||||
{
|
{
|
||||||
public readonly string Type = null;
|
public readonly string Type = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user