Files
OpenRA/mods/ts/rules/defaults.yaml
atlimit8 bbd54cb32f Added IDisabledTrait & rewrote upgrade code using a level-based approach.
Upgradeable traits are notified whenever an upgrade of their declared types are granted or revoked.  The traits maintain their own internal level counter, which is then used to enable or disable the trait functionality.  A trait can register for multiple upgrade types which then all affect the internal level counter.

	IDisabledTrait for identifying (and filtering) disabled traits
	UpgradableTrait provides an abstract base for traits to support upgrade levels
	Added IDisabledTrait support to GlobalButtonOrderGenerator

	Includes rework by pchote with alterations.
2014-11-26 05:45:26 -06:00

429 lines
8.0 KiB
YAML

^Building:
AppearsOnRadar:
SelectionDecorations:
Palette: pips
Selectable:
Priority: 3
TargetableBuilding:
TargetTypes: Ground, Building, C4
Building:
Dimensions: 1,1
Footprint: x
BuildSounds: place2.aud
TerrainTypes: Clear, Road, DirtRoad, Rough
Adjacent: 4
FrozenUnderFog:
GivesBuildableArea:
Capturable:
SoundOnDamageTransition:
DamagedSound: expnew01.aud
DestroyedSound: crmble2.aud
RenderBuilding:
WithBuildingExplosion:
RepairableBuilding:
EngineerRepairable:
MustBeDestroyed:
GivesExperience:
CaptureNotification:
EditorAppearance:
RelativeToTopLeft: yes
ShakeOnDeath:
ProximityCaptor:
Types: Building
Sellable:
SellSounds: cashturn.aud
AcceptsSupplies:
GivesBounty:
UpdatesPlayerStatistics:
CombatDebugOverlay:
Guardable:
Range: 3
BodyOrientation:
Huntable:
Demolishable:
ScriptTriggers:
WithMakeAnimation:
UpgradeManager:
Cloak@CLOAKGENERATOR:
UpgradeTypes: cloakgenerator
UpgradeMinEnabledLevel: 1
InitialDelay: 0
CloakDelay: 90
^Wall:
AppearsOnRadar:
Building:
Dimensions: 1,1
Footprint: x
BuildSounds: place2.aud
Adjacent: 7
TerrainTypes: Clear, Road
SoundOnDamageTransition:
DamagedSound: expnew01.aud
DestroyedSound: crmble2.aud
Crushable:
CrushClasses: wall
BlocksBullets:
LineBuild:
Range: 8
NodeTypes: wall
LineBuildNode:
Types: wall
TargetableBuilding:
TargetTypes: Ground, Wall, C4
RenderBuildingWall:
Type: wall
GivesExperience:
EditorAppearance:
RelativeToTopLeft: yes
UseTerrainPalette: yes
AutoTargetIgnore:
ProximityCaptor:
Types: Wall
Sellable:
SellSounds: cashturn.aud
UpdatesPlayerStatistics:
BodyOrientation:
Demolishable:
ScriptTriggers:
UpgradeManager:
Cloak@CLOAKGENERATOR:
UpgradeTypes: cloakgenerator
UpgradeMinEnabledLevel: 1
InitialDelay: 0
CloakDelay: 90
^Infantry:
AppearsOnRadar:
Health:
Radius: 128
Armor:
Type: None
RevealsShroud:
Range: 4c0
Mobile:
Crushes: crate
SharesCell: yes
TerrainSpeeds:
Clear: 90
Road: 100
Rail: 80
DirtRoad: 90
Rough: 70
Tiberium: 80
BlueTiberium: 80
SelectionDecorations:
Palette: pips
Selectable:
Voice: Infantry
TargetableUnit:
TargetTypes: Ground, Infantry
RenderInfantry:
WithDeathAnimation:
AutoTarget:
AttackMove:
Passenger:
CargoType: Infantry
HiddenUnderFog:
GainsExperience:
ChevronPalette: ra
Upgrades:
500: firepower, damage, speed, reload
1000: firepower, damage, speed, reload, selfheal, eliteweapon
GainsStatUpgrades:
FirepowerModifier: 110, 130
DamageModifier: 83, 66
SpeedModifier: 120, 150
ReloadModifier: 90, 75
SelfHealing@ELITE:
Step: 2
Ticks: 100
HealIfBelow: 1
DamageCooldown: 125
UpgradeTypes: selfheal
UpgradeMinEnabledLevel: 1
GivesExperience:
DrawLineToTarget:
ActorLostNotification:
ProximityCaptor:
Types: Infantry
GivesBounty:
Crushable:
CrushSound: squish6.aud
PoisonedByTiberium:
SpawnViceroid:
ViceroidActor: vissml
UpdatesPlayerStatistics:
CombatDebugOverlay:
Guard:
Guardable:
BodyOrientation:
Huntable:
ScriptTriggers:
DeathSounds@NORMAL:
DeathTypes: 1, 2, 3
DeathSounds@BURNED:
DeathSound: Burned
DeathTypes: 5
DeathSounds@ZAPPED:
DeathSound: Zapped
DeathTypes: 6
UpgradeManager:
Cloak@CLOAKGENERATOR:
UpgradeTypes: cloakgenerator
UpgradeMinEnabledLevel: 1
InitialDelay: 0
CloakDelay: 90
^CivilianInfantry:
Inherits: ^Infantry
Selectable:
Voice: Civilian
Bounds: 12,17,0,-9
Valued:
Cost: 10
Tooltip:
Name: Civilian
Buildable:
Queue: Infantry
BuildPaletteOrder: 1000
Owner: gdi, nod
Health:
HP: 50
Mobile:
Speed: 71
RevealsShroud:
Range: 2c0
Armament:
Weapon: Pistola
AttackFrontal:
ProximityCaptor:
Types: CivilianInfantry
RenderInfantry:
ScaredyCat:
^Vehicle:
AppearsOnRadar:
Mobile:
Crushes: crate
TerrainSpeeds:
Clear: 90
Road: 100
Rail: 80
DirtRoad: 90
Rough: 70
Tiberium: 80
BlueTiberium: 80
ROT: 5
SelectionDecorations:
Palette: pips
Selectable:
Voice: Vehicle
TargetableUnit:
TargetTypes: Ground, Vehicle
Repairable:
RepairBuildings: gadept
Passenger:
CargoType: Vehicle
AttackMove:
HiddenUnderFog:
GainsExperience:
ChevronPalette: ra
Upgrades:
500: firepower, damage, speed, reload
1000: firepower, damage, speed, reload, selfheal, eliteweapon
GainsStatUpgrades:
FirepowerModifier: 110, 130
DamageModifier: 83, 66
SpeedModifier: 120, 150
ReloadModifier: 90, 75
SelfHealing@ELITE:
Step: 2
Ticks: 100
HealIfBelow: 1
DamageCooldown: 125
UpgradeTypes: selfheal
UpgradeMinEnabledLevel: 1
GivesExperience:
DrawLineToTarget:
ActorLostNotification:
ProximityCaptor:
Types: Vehicle
GivesBounty:
UpdatesPlayerStatistics:
CombatDebugOverlay:
Guard:
Guardable:
BodyOrientation:
CameraPitch: 90
Huntable:
ScriptTriggers:
Explodes:
Weapon: UnitExplodeSmall
EmptyWeapon: UnitExplodeSmall
UpgradeManager:
UpgradeOverlay@EMPDISABLE:
UpgradeTypes: empdisable
UpgradeMinEnabledLevel: 1
UpgradeMaxAcceptedLevel: 2
Palette: disabled
DisableUpgrade@EMPDISABLE:
UpgradeTypes: empdisable
UpgradeMinEnabledLevel: 1
UpgradeMaxAcceptedLevel: 2
TimedUpgradeBar@EMPDISABLE:
Upgrade: empdisable
Color: 255,255,255
Cloak@CLOAKGENERATOR:
UpgradeTypes: cloakgenerator
UpgradeMinEnabledLevel: 1
UpgradeMaxAcceptedLevel: 2
InitialDelay: 0
CloakDelay: 90
^Tank:
AppearsOnRadar:
Mobile:
Crushes: wall, crate
TerrainSpeeds:
Clear: 90
Road: 100
Rail: 80
DirtRoad: 90
Rough: 70
Tiberium: 80
BlueTiberium: 80
ROT: 5
SelectionDecorations:
Palette: pips
Selectable:
Voice: Vehicle
TargetableUnit:
TargetTypes: Ground, Vehicle
Repairable:
RepairBuildings: gadept
Passenger:
CargoType: Vehicle
AttackMove:
HiddenUnderFog:
GainsExperience:
ChevronPalette: ra
Upgrades:
500: firepower, damage, speed, reload
1000: firepower, damage, speed, reload, selfheal, eliteweapon
GainsStatUpgrades:
FirepowerModifier: 110, 130
DamageModifier: 83, 66
SpeedModifier: 120, 150
ReloadModifier: 90, 75
SelfHealing@ELITE:
Step: 2
Ticks: 100
HealIfBelow: 1
DamageCooldown: 125
UpgradeTypes: selfheal
UpgradeMinEnabledLevel: 1
GivesExperience:
DrawLineToTarget:
ActorLostNotification:
ProximityCaptor:
Types: Vehicle
GivesBounty:
UpdatesPlayerStatistics:
CombatDebugOverlay:
Guard:
Guardable:
BodyOrientation:
CameraPitch: 90
Huntable:
ScriptTriggers:
Explodes:
Weapon: UnitExplodeSmall
EmptyWeapon: UnitExplodeSmall
UpgradeManager:
UpgradeOverlay@EMPDISABLE:
UpgradeTypes: empdisable
UpgradeMinEnabledLevel: 1
UpgradeMaxAcceptedLevel: 2
Palette: disabled
DisableUpgrade@EMPDISABLE:
UpgradeTypes: empdisable
UpgradeMinEnabledLevel: 1
UpgradeMaxAcceptedLevel: 2
TimedUpgradeBar@EMPDISABLE:
Upgrade: empdisable
Color: 255,255,255
Cloak@CLOAKGENERATOR:
UpgradeTypes: cloakgenerator
UpgradeMinEnabledLevel: 1
UpgradeMaxAcceptedLevel: 2
InitialDelay: 0
CloakDelay: 90
^Helicopter:
AppearsOnRadar:
UseLocation: yes
TargetableAircraft:
TargetTypes: Air
GroundedTargetTypes: Ground
SelectionDecorations:
Palette: pips
Selectable:
Voice: Heli
Helicopter:
RepairBuildings:
RearmBuildings:
LandWhenIdle: no
Buildable:
Queue: Aircraft
HiddenUnderFog:
AttackMove:
GainsExperience:
ChevronPalette: ra
Upgrades:
500: firepower, damage, speed, reload
1000: firepower, damage, speed, reload, selfheal, eliteweapon
GainsStatUpgrades:
FirepowerModifier: 110, 130
DamageModifier: 83, 66
SpeedModifier: 120, 150
ReloadModifier: 90, 75
SelfHealing@ELITE:
Step: 2
Ticks: 100
HealIfBelow: 1
DamageCooldown: 125
UpgradeTypes: selfheal
UpgradeMinEnabledLevel: 1
GivesExperience:
DrawLineToTarget:
ActorLostNotification:
CombatDebugOverlay:
BodyOrientation:
CameraPitch: 90
Huntable:
ScriptTriggers:
Guard:
Guardable:
UpgradeManager:
^BlossomTree:
Tooltip:
Name: Blossom Tree
RenderBuilding:
Palette: player
Building:
Footprint: x
Dimensions: 1,1
AppearsOnRadar:
RadarColorFromTerrain:
Terrain: Tiberium
BodyOrientation:
FrozenUnderFog:
StartsRevealed: true
SeedsResource:
ResourceType: Tiberium
Interval: 55
WithActiveAnimation: