Skip to content

Commit

Permalink
Merge pull request #9459 from reaperrr/d2k-power-misc
Browse files Browse the repository at this point in the history
Change D2k power draw and various other aspects to match original
  • Loading branch information
Mailaender committed Oct 11, 2015
2 parents 6107eb3 + 5646f41 commit 4437bce
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 52 deletions.
4 changes: 4 additions & 0 deletions mods/d2k/rules/aircraft.yaml
Expand Up @@ -38,6 +38,10 @@ carryall.reinforce:
Automatic: False
RenderSprites:
Image: carryall
SelfHealing:
Step: 5
Ticks: 3
HealIfBelow: 50%

carryall:
Inherits: carryall.reinforce
Expand Down
3 changes: 1 addition & 2 deletions mods/d2k/rules/arrakis.yaml
Expand Up @@ -69,8 +69,7 @@ sietch:
-DamagedWithoutFoundation:
-GivesBuildableArea:
-Sellable:
-ExternalCapturable:
-ExternalCapturableBar:
-Capturable:
Power:
Amount: 0
ProvidesPrerequisite@buildingname:
Expand Down
5 changes: 2 additions & 3 deletions mods/d2k/rules/defaults.yaml
Expand Up @@ -248,8 +248,8 @@
BuildSounds: BUILD1.WAV
Adjacent: 3
GivesBuildableArea:
ExternalCapturable:
ExternalCapturableBar:
Capturable:
CaptureThreshold: 1.0
SoundOnDamageTransition:
DamagedSounds: EXPLSML1.WAV
DestroyedSounds: EXPLHG1.WAV
Expand Down Expand Up @@ -284,7 +284,6 @@
AttackTurreted:
AutoTarget:
RenderRangeCircle:
RenderDetectionCircle:
-GivesBuildableArea:
-WithCrumbleOverlay:
-WithMakeAnimation:
Expand Down
29 changes: 10 additions & 19 deletions mods/d2k/rules/infantry.yaml
Expand Up @@ -19,8 +19,6 @@ light_inf:
AttackFrontal:
WithInfantryBody:
AttackSequence: shoot
AttractsWorms:
Intensity: 120

engineer:
Inherits: ^Infantry
Expand All @@ -42,13 +40,9 @@ engineer:
Passenger:
PipType: Yellow
EngineerRepair:
ExternalCaptures:
Type: building
Captures:
CaptureTypes: husk
CaptureTypes: building, husk
-AutoTarget:
AttractsWorms:
Intensity: 180
Voiced:
VoiceSet: EngineerVoice

Expand All @@ -75,8 +69,6 @@ trooper:
AttackFrontal:
WithInfantryBody:
AttackSequence: shoot
AttractsWorms:
Intensity: 180

medic:
Inherits: ^Infantry
Expand Down Expand Up @@ -106,8 +98,6 @@ medic:
AttackSequence: heal
Passenger:
PipType: Blue
AttractsWorms:
Intensity: 180
Voiced:
VoiceSet: EngineerVoice

Expand Down Expand Up @@ -139,8 +129,8 @@ fremen:
WithInfantryBody:
AttackSequence: shoot
Cloak:
InitialDelay: 250
CloakDelay: 250
InitialDelay: 85
CloakDelay: 85
CloakSound: STEALTH1.WAV
UncloakSound: STEALTH2.WAV
IsPlayerPalette: true
Expand Down Expand Up @@ -176,8 +166,6 @@ grenadier:
Explodes:
Weapon: GrenDeath
EmptyWeapon: GrenDeath
AttractsWorms:
Intensity: 180

sardaukar:
Inherits: ^Infantry
Expand Down Expand Up @@ -205,8 +193,6 @@ sardaukar:
Armament@SECONDARY:
Weapon: M_HMG
AttackFrontal:
AttractsWorms:
Intensity: 180
Voiced:
VoiceSet: GenericVoice
Explodes:
Expand Down Expand Up @@ -234,8 +220,13 @@ saboteur:
C4Demolition:
C4Delay: 45
-AutoTarget:
AttractsWorms:
Intensity: 120
Cloak:
InitialDelay: 85
CloakDelay: 85
CloakSound: STEALTH1.WAV
UncloakSound: STEALTH2.WAV
UncloakOnMove: true
IsPlayerPalette: true
Voiced:
VoiceSet: SaboteurVoice

Expand Down
44 changes: 18 additions & 26 deletions mods/d2k/rules/structures.yaml
Expand Up @@ -67,6 +67,8 @@ construction_yard:
Name: Construction Yard
CustomSellValue:
Value: 2000
EmitInfantryOnSell:
ActorTypes: light_inf, light_inf, engineer
BaseBuilding:
ProductionBar:
Power:
Expand Down Expand Up @@ -113,7 +115,7 @@ wind_trap:
WithIdleOverlay@ZAPS:
Sequence: idle-zaps
Power:
Amount: 100
Amount: 200
ScalePowerWithHealth:
ProvidesPrerequisite@buildingname:

Expand Down Expand Up @@ -143,7 +145,7 @@ barracks:
RevealsShroud:
Range: 5c0
RallyPoint:
Offset: 1,3
Offset: 1,2
Exit@1:
SpawnOffset: 352,576,0
ExitCell: 0,2
Expand All @@ -167,7 +169,7 @@ barracks:
Prerequisite: barracks.medics
Factions: atreides, ordos
Power:
Amount: -20
Amount: -30
RenderSprites:
Image: barracks.harkonnen
FactionImages:
Expand Down Expand Up @@ -224,7 +226,7 @@ refinery:
Sequence: smoke
Palette: effectAdditive
Power:
Amount: -30
Amount: -75
WithIdleOverlay@TOP:
Sequence: idle-top
ProvidesPrerequisite@buildingname:
Expand Down Expand Up @@ -266,7 +268,7 @@ silo:
Capacity: 2000
-EmitInfantryOnSell:
Power:
Amount: -5
Amount: -15
MustBeDestroyed:
RequiredForShortGame: false
ThrowsShrapnel:
Expand Down Expand Up @@ -331,7 +333,7 @@ light_factory:
WithIdleOverlay@TOP:
Sequence: idle-top
Power:
Amount: -20
Amount: -125

heavy_factory:
Inherits: ^Building
Expand Down Expand Up @@ -390,7 +392,7 @@ heavy_factory:
WithIdleOverlay@TOP:
Sequence: idle-top
Power:
Amount: -30
Amount: -150
ProvidesPrerequisite@buildingname:
SelectionDecorations:
VisualBounds: 96,96
Expand Down Expand Up @@ -424,9 +426,6 @@ outpost:
RevealsShroud:
Range: 10c0
ProvidesRadar:
DetectCloaked:
Range: 6c0
RenderDetectionCircle:
RenderSprites:
Image: outpost.harkonnen
FactionImages:
Expand All @@ -436,7 +435,7 @@ outpost:
Sequence: idle-dish
PauseOnLowPower: yes
Power:
Amount: -40
Amount: -125
ProvidesPrerequisite@buildingname:

starport:
Expand Down Expand Up @@ -497,7 +496,7 @@ starport:
Prerequisite: starport.harkonnen
Factions: harkonnen
Power:
Amount: -40
Amount: -150
ProvidesPrerequisite@buildingname:

wall:
Expand Down Expand Up @@ -532,7 +531,7 @@ wall:
CrushClasses: Concretewall
BlocksProjectiles:
LineBuild:
Range: 8
Range: 5
NodeTypes: wall, turret
LineBuildNode:
Types: wall
Expand Down Expand Up @@ -585,10 +584,8 @@ medium_gun_turret:
Weapon: 110mm_Gun
LocalOffset: 512,0,432
MuzzleSequence: muzzle
DetectCloaked:
Range: 5c0
Power:
Amount: -20
Amount: -50
SelectionDecorations:
VisualBounds: 32,40,0,-8

Expand Down Expand Up @@ -630,10 +627,8 @@ large_gun_turret:
RequiresPower:
CanPowerDown:
DisabledOverlay:
DetectCloaked:
Range: 6c0
Power:
Amount: -30
Amount: -60
SelectionDecorations:
VisualBounds: 32,40,0,-8

Expand Down Expand Up @@ -678,7 +673,7 @@ repair_pad:
WithRepairOverlay:
Palette: effect75alpha
Power:
Amount: -10
Amount: -50
ProvidesPrerequisite@buildingname:

high_tech_factory:
Expand Down Expand Up @@ -734,7 +729,7 @@ high_tech_factory:
WithProductionOverlay@WELDING:
Sequence: production-welding
Power:
Amount: -40
Amount: -75
SelectionDecorations:
VisualBounds: 96,96

Expand Down Expand Up @@ -771,7 +766,7 @@ research_centre:
WithIdleOverlay@LIGHTS:
Sequence: idle-lights
Power:
Amount: -40
Amount: -175
ProvidesPrerequisite@buildingname:
SelectionDecorations:
VisualBounds: 96,80
Expand Down Expand Up @@ -808,11 +803,8 @@ palace:
atreides: palace.atreides
ordos: palace.ordos
corrino: palace.corrino
RenderDetectionCircle:
DetectCloaked:
Range: 4c0
Power:
Amount: -50
Amount: -200
ProvidesPrerequisite@nuke:
Prerequisite: palace.nuke
Factions: harkonnen
Expand Down
16 changes: 14 additions & 2 deletions mods/d2k/rules/vehicles.yaml
Expand Up @@ -41,6 +41,10 @@ mcv:
Intensity: 700
SelectionDecorations:
VisualBounds: 42,42
SelfHealing:
Step: 5
Ticks: 3
HealIfBelow: 50%

harvester:
Inherits: ^Vehicle
Expand All @@ -60,8 +64,8 @@ harvester:
Class: harvester
Priority: 7
Harvester:
PipCount: 10
Capacity: 40
PipCount: 7
Capacity: 28
HarvestFacings: 8
Resources: Spice
UnloadTicksPerBale: 5
Expand All @@ -88,6 +92,10 @@ harvester:
Intensity: 700
SelectionDecorations:
VisualBounds: 42,42
SelfHealing:
Step: 5
Ticks: 3
HealIfBelow: 50%

trike:
Inherits: ^Vehicle
Expand Down Expand Up @@ -324,6 +332,10 @@ devastator:
Intensity: 700
SelectionDecorations:
VisualBounds: 44,38,0,0
SelfHealing:
Step: 5
Ticks: 3
HealIfBelow: 50%

raider:
Inherits: ^Vehicle
Expand Down

0 comments on commit 4437bce

Please sign in to comment.