243 lines
3.7 KiB
INI
243 lines
3.7 KiB
INI
|
[core]
|
||
|
radius:0
|
||
|
##REMOVE THIS TO USE UNIT##
|
||
|
dont_load:false
|
||
|
footprint:-1,-1,1,1
|
||
|
constructionFootprint:-1,-1,1,1
|
||
|
name:昼夜
|
||
|
displayDescription:昼夜更替
|
||
|
class:CustomUnitMetadata
|
||
|
isBuilding:true
|
||
|
price:0
|
||
|
maxHp:1500
|
||
|
selfRegenRate:-1.0
|
||
|
canNotBeDirectlyAttacked:true
|
||
|
isUnrepairableUnit:true
|
||
|
mass:30000
|
||
|
maxShield:0
|
||
|
autoTriggerCooldownTime:0.1s
|
||
|
shieldRegen:0
|
||
|
armour:2000000
|
||
|
techLevel:1
|
||
|
buildSpeed:0.1s
|
||
|
#onNewMapSpawn:mapCenter_asNeutral
|
||
|
dieOnZeroEnergy:true
|
||
|
energyMax:12
|
||
|
energyRegen:0
|
||
|
#energyStartingPercentage:0
|
||
|
|
||
|
generation_resources:黎明=1
|
||
|
generation_delay:60
|
||
|
|
||
|
[action_陨石召唤]
|
||
|
autoTrigger: if self.energy(full=true)
|
||
|
buildSpeed: 2s
|
||
|
addResources:energy=-1
|
||
|
isVisible: false
|
||
|
|
||
|
|
||
|
|
||
|
[action_黑夜]
|
||
|
autoTrigger:if not self.hasUnitInTeam(withTag='黎明',greaterThan=0)
|
||
|
fireTurretXAtGround:1
|
||
|
fireTurretXAtGround_withOffset:0,0
|
||
|
spawnEffects:CUSTOM:黑夜
|
||
|
[action_黎明]
|
||
|
fireTurretXAtGround:2
|
||
|
fireTurretXAtGround_withOffset:0,0
|
||
|
autoTrigger:if self.resource(type='黎明',greaterThan=7)
|
||
|
addResources:黎明=-7
|
||
|
|
||
|
[graphics]
|
||
|
|
||
|
total_frames:1
|
||
|
image:黑夜.png
|
||
|
image_wreak:NONE
|
||
|
imageScale:0
|
||
|
image_turret:NONE
|
||
|
image_shadow:AUTO
|
||
|
shadowOffsetX:-2
|
||
|
shadowOffsetY:-7
|
||
|
[attack]
|
||
|
|
||
|
canAttack:true
|
||
|
canAttackFlyingUnits:true
|
||
|
canAttackLandUnits:true
|
||
|
canAttackUnderwaterUnits:true
|
||
|
maxAttackRange:99999
|
||
|
shootDelay:7s
|
||
|
|
||
|
[turret_a]
|
||
|
x:0
|
||
|
y:0
|
||
|
size:0
|
||
|
projectile:b
|
||
|
|
||
|
shoot_sound:NONE
|
||
|
shoot_sound_vol:1
|
||
|
shoot_flame:NONE
|
||
|
|
||
|
canShoot:false
|
||
|
aimOffsetSpread:2
|
||
|
|
||
|
[projectile_b]
|
||
|
areaDamage:0
|
||
|
life:120
|
||
|
areaRadius:140
|
||
|
speed:4.5
|
||
|
instant:false
|
||
|
largeHitEffect:false
|
||
|
frame:1
|
||
|
explodeEffect:NONE
|
||
|
explodeEffectOnShield:NONE
|
||
|
areaDamageNoFalloff:true
|
||
|
drawSize:0
|
||
|
ballistic:true
|
||
|
ballistic_height:400
|
||
|
targetGround:true
|
||
|
targetGroundSpread:40
|
||
|
spawnProjectilesOnEndOfLife:c*5
|
||
|
[projectile_c]
|
||
|
areaDamage:400
|
||
|
areaRadius:120
|
||
|
explodeEffect:CUSTOM:闪
|
||
|
targetGroundSpread:1200
|
||
|
life:4400
|
||
|
image:NONE
|
||
|
speed:10
|
||
|
initialUnguidedSpeedHeight:0.5
|
||
|
gravity:0.4
|
||
|
spawnUnit:黎明
|
||
|
drawSize:0
|
||
|
|
||
|
instant:false
|
||
|
|
||
|
[turret_1]
|
||
|
x:0
|
||
|
y:0
|
||
|
warmup:90
|
||
|
projectile:1
|
||
|
[projectile_1]
|
||
|
directDamage:0
|
||
|
explodeEffect:CUSTOM:黑夜
|
||
|
life:0
|
||
|
speed:4
|
||
|
instant:true
|
||
|
[turret_2]
|
||
|
x:0
|
||
|
y:0
|
||
|
projectile:2
|
||
|
[projectile_2]
|
||
|
directDamage:0
|
||
|
explodeEffect:NONE
|
||
|
life:0
|
||
|
speed:4
|
||
|
instant:true
|
||
|
spawnUnit:黎明
|
||
|
[effect_黑夜]
|
||
|
life:60
|
||
|
priority:critical
|
||
|
|
||
|
fadeOut:true
|
||
|
fadeInTime:9
|
||
|
createWhenOffscreen:true
|
||
|
showInFog:true
|
||
|
attachedToUnit:false
|
||
|
|
||
|
scaleFrom:10000
|
||
|
scaleTo:10000
|
||
|
image:黑夜.png
|
||
|
total_frames:1
|
||
|
animateFrameStart:0
|
||
|
animateFrameEnd:0
|
||
|
animateFrameSpeed:0
|
||
|
alpha:1
|
||
|
[effect_闪]
|
||
|
priority:critical
|
||
|
showInFog:true
|
||
|
image:雷.png
|
||
|
yOffsetRelative:0
|
||
|
life:30
|
||
|
fadeOut:true
|
||
|
attachedToUnit:true
|
||
|
fadeInTime:2
|
||
|
scaleFrom:0
|
||
|
scaleTo:0
|
||
|
alpha:1
|
||
|
color:#FFFFFF
|
||
|
drawUnderUnits:false
|
||
|
hOffset:0
|
||
|
dirOffsetRandom:0
|
||
|
dirSpeedRandom:0
|
||
|
atmospheric:true
|
||
|
xOffsetRelativeRandom:0
|
||
|
yOffsetRelativeRandom:0
|
||
|
xSpeedAbsoluteRandom:0
|
||
|
ySpeedAbsoluteRandom:0
|
||
|
alwayStartDirAtZero:true
|
||
|
alsoEmitEffects:CUSTOM:闪电命中
|
||
|
|
||
|
[effect_闪电命中]
|
||
|
life:60
|
||
|
yOffsetAbsolute:0
|
||
|
yOffsetRelative:0
|
||
|
dirOffsetRandom:0
|
||
|
priority:critical
|
||
|
drawUnderUnits:true
|
||
|
fadeOut:true
|
||
|
fadeInTime:1
|
||
|
attachedToUnit:true
|
||
|
scaleFrom:1
|
||
|
scaleTo:1
|
||
|
image:闪电命中.png
|
||
|
total_frames:9
|
||
|
animateFrameStart:0
|
||
|
animateFrameEnd:9
|
||
|
animateFrameSpeed:0.5
|
||
|
alpha:1
|
||
|
[effect_电]
|
||
|
life:30
|
||
|
priority:critical
|
||
|
fadeOut:true
|
||
|
fadeInTime:1
|
||
|
attachedToUnit:false
|
||
|
scaleFrom:1
|
||
|
scaleTo:1
|
||
|
image:电.png
|
||
|
total_frames:1
|
||
|
alpha:1
|
||
|
|
||
|
|
||
|
[movement]
|
||
|
movementType:BUILDING
|
||
|
|
||
|
[turret_触发]
|
||
|
#
|
||
|
x: -4300
|
||
|
y: -3000
|
||
|
|
||
|
canShoot: false
|
||
|
warmup: 10
|
||
|
|
||
|
projectile: 1
|
||
|
turnSpeedAcceleration: 1.0
|
||
|
canShoot: true
|
||
|
|
||
|
|
||
|
[projectile_1]
|
||
|
nukeWeapon: true
|
||
|
life: 9999
|
||
|
speed: 32
|
||
|
targetSpeed: 16
|
||
|
largeHitEffect: true
|
||
|
directDamage:250
|
||
|
targetGround: true
|
||
|
spawnUnit:落雷*2
|
||
|
#areaExpandTime: 60
|
||
|
drawSize: 1
|
||
|
frame:11
|
||
|
deflectionPower:-1
|
||
|
areaHitAirAndLandAtSameTime: true
|
||
|
areaHitUnderwaterAlways: true
|
||
|
alwaysVisibleInFog: true
|
||
|
shouldRevealFog:true
|