[core] name: 蝴蝶母舰T2 class: CustomUnitMetadata price: 0 maxHp: 4800 mass: 90000 @memory #:number[] updateUnitMemory: #[0]= self.hp%10, #[1]= int((self.hp%100)/10), #[2]= int((self.hp%1000)/100),#[3]= int((self.hp%10000)/1000) updateUnitMemoryRate:0 displayText: Fairy Ji Deep Blue Butterfly MotherShip displayText_zh: 妖姬深蓝母舰T2 copyFrom:ROOT:/effect/extra/index.template,血条.md displayDescription:-The leader unit of the Fairy Ji Storm,Leading the Fairy Ji Concubine to glory. displayDescription_zh:-妖姬风暴的领袖单位,带领妖姬走向辉煌。 #availableInDemo: true radius: 50 #displayRadius: 25 isBio: false softCollisionOnAll: 3 #isBuilding: true generation_credits: 20 generation_delay: 40 canRepairBuildings: true canRepairUnits : true canReclaimResources: true autoRepair: true nanoRange: 210 nanoRepairSpeed: 1.8 nanoBuildSpeed: 1.8 selfRegenRate:0.045 #此处有自动触发高刷新更改 autoTriggerCooldownTime:0.1s [canBuild_1] name: reclaim,妖姬陆军基地T2,妖姬海军基地T2,妖姬空军基地T2,裂痕机枪,Star-J-T2,Star2,妖姬修复装置,裂痕火炮,Demon-Laser pos: 1 [graphics] total_frames:4 image: ROOT:/assets/demonjiimg/core/CBT2.png image_wreak: NONE image_turret: ROOT:/assets/demonjiimg/core/蝴蝶闪电炮.Ling scaleImagesTo:120 #scaleTurretImagesTo: 25 #showEnergyBar:false #imageScale: 1.5 showHealthBar:false showQueueBar:false image_shadow: AUTO shadowOffsetX:1 shadowOffsetY:1 animation_moving_start: 0 animation_moving_end: 3 animation_moving_speed: 7 animation_idle_start:0 animation_idle_end:3 animation_idle_speed:8 movementEffect:CUSTOM:尾焰XL,CUSTOM:尾焰LX movementEffectRate: 3 [effect_尾焰XL] image: ROOT:/effect/.prj/.2.png life: 15 fadeOut: true attachedToUnit: false fadeInTime:6 scaleFrom: 1 scaleTo: 1 alpha: 0.8 yOffsetRelative: -60 xOffsetRelative: 23 color:#3BC4D7 ySpeedRelative: 0.4 dirOffsetRandom: 0 drawUnderUnits:true atmospheric: true [effect_尾焰LX] @copyFromSection:effect_尾焰XL xOffsetRelative:-25 [attack] canAttack: true canAttackFlyingUnits: true canAttackLandUnits: true canAttackUnderwaterUnits: false turretSize: 18 turretTurnSpeed: 4 maxAttackRange: 390 shootDelay: 18 turretMultiTargeting: true [turret_主炮] #laserTurret image: ROOT:/assets/demonjiimg/core/蝴蝶闪电炮.Ling image_drawOffsetY:3 image_applyTeamColors: true #invisible: true x: -2 y: -25 idleDir:0 canAttackFlyingUnits: false canAttackLandUnits: true canAttackUnderwaterUnits: false projectile: beam size: 6 chargeEffectImage: ROOT:/assets/demonjiimg/core/LaserCharge.Ling delay: 1 energyUsage: 0 shouldResetTurret: true turnSpeed: 2.5 turnSpeedAcceleration: 0.09 aimOffsetSpread: 0 idleSweepAngle:20 idleSweepDelay:100 idleSweepSpeed:0.4 [turret_左] x: -34 y: -21 warmup:0.3s #energyUsage: 1 image: ROOT:/assets/demonjiimg/core/蝴蝶镭射炮.Ling chargeEffectImage: ROOT:/assets/demonjiimg/core/特效1.Ling projectile:1 idleSweepAngle:60 idleSweepDelay:100 idleSweepSpeed:0.4 shoot_sound:ROOT:sound/开火.ogg:1.5 size:8 recoilOffset:-3 recoilOutTime:4 recoilReturnTime:20 shoot_flame:CUSTOM:HexaStar [turret_右] copyFrom:左 x: 34 y: -20 [turret_上] copyFrom:左 x: -1 y: 25 [turret_雷电] x:0 y:0 projectile:雷电 delay:20s invisible:true limitingRange:1500 [projectile_雷电] directDamage:900 areaDamage:750 areaRadius:80 drawSize:0 life:1 instant:true explodeEffect:CUSTOM:闪 explodeEffectOnShield:CUSTOM:闪 spawnUnit:LH-25-10 [effect_闪] alsoPlaySound:ROOT:sound/雷电.wav priority:critical showInFog:true image:ROOT:effect/.tai/雷.png yOffsetRelative:0 life:30 fadeOut:true fadeInTime:2 scaleFrom:1 scaleTo:1 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:3 scaleTo:3 image:ROOT:effect/.tai/闪电命中.png total_frames:14 animateFrameStart:0 animateFrameEnd:13 animateFrameSpeed:0.3 alpha:1 alsoEmitEffects:CUSTOM:电 [effect_电] life:30 priority:critical fadeOut:true fadeInTime:1 attachedToUnit:false scaleFrom:20000 scaleTo:20000 image:ROOT:effect/.tai/电.png total_frames:1 alpha:1 [turret_nanoTurret] x: -2 y: -25 canShoot: false canAttackFlyingUnits: false canAttackLandUnits: false canAttackUnderwaterUnits: false isMainNanoTurret: true invisible:true [projectile_1] #aaa - anti air attack directDamage: 32 life: 100 speed: 9 targetSpeedAcceleration:0.2 targetSpeed:15 drawSize: 0.4 color: #46ebff lightColor: #46ebff lightSize: 0.4 image:ROOT:effect/.prj/能量弹.png explodeEffect:CUSTOM:lightningShock,CUSTOM:hitLightFlash shieldDamageMultiplier:2 shieldDefectionMultiplier:0.5 [projectile_missile] directDamage: 30 life: 290 speed: 4 drawSize: 0.9 drawType: 2 frame: 4 trailEffect: true largeHitEffect: true [projectile_beam] #=== for the beam effect === life: 3 instant:true instantReuseLast: true #instantReuseLast_alsoChangeTurretAim: true #moveWithParent: true beamImage: ROOT:/assets/demonjiimg/core/Laser.png beamImageEnd: SHARED:beam1_end.png beamImageStart: SHARED:beam1_start.png #beamImageOffsetRate: 1.5 beamImageOffsetRate: 2 explodeEffect: NONE explodeEffectOnShield: NONE shieldDamageMultiplier: 0.75 sweepOffsetFromTargetRadius:0.4 #sweepOffset: x sweepSpeed:10 #=== others === directDamage: 5 #color: #aa6284b8 #color: #dd99bcf2 color: #00ffff teamColorRatio_sourceRatio:0.8 teamColorRatio:0.5 laserEffect: true [movement] movementType: AIR moveSpeed: 0.94 moveAccelerationSpeed: 0.8 moveDecelerationSpeed: 0.8 landOnGround: true slowDeathFall: true [effect_hitLightFlash] priority:high image: SHARED:light_50.png life: 17 fadeOut: true attachedToUnit: false color: #63e6e8 scaleFrom: 1.8 scaleTo: 1.8 alpha: 0.8 drawUnderUnits:false [effect_lightningShock] life: 60 xOffsetRelative: 0 yOffsetRelative: 0 hOffset: 0 dirOffset: 0 dirOffsetRandom:180 fadeInTime: 0 fadeOut: false attachedToUnit: false image: SHARED:lightning_shock.png total_frames: 14 animateFrameStart: 0 animateFrameStartRandomAdd: 2 animateFrameEnd: 13 animateFramePingPong: false animateFrameSpeed: 0.5 animateFrameSpeedRandom: 0.2 alpha:0.6 [effect_sparks] attachedToUnit: false life: 150 physics: true xSpeedRelativeRandom: 1.1 ySpeedRelativeRandom: 1.1 hSpeed: 1.5 image: SHARED:spark.png priority: verylow [effect_sparks2] attachedToUnit: false life: 150 physics: true xSpeedRelativeRandom: 0.5 ySpeedRelativeRandom: 0.5 hSpeed: 1 ySpeedRelative:2 image: SHARED:spark.png priority: verylow [effect_lightSlowFade] image: SHARED:light_50.png life: 40 fadeOut: true attachedToUnit: true color: #63e6e8 scaleFrom: 0.3 scaleTo: 0.2 alpha: 1.7 [effect_Fire] createWhenZoomedOut: false priority:low image: ROOT:/assets/demonjiimg/core/特效2.Ling life:160 fadeOut: true attachedToUnit: false color: #63e6e8 fadeInTime:2 scaleFrom:1.4 scaleTo:0 alpha: 0.1 drawUnderUnits:true ySpeedRelative:-0.5 atmospheric: true [effect_move] createWhenZoomedOut: false priority:low image: ROOT:/assets/demonjiimg/core/特效3.Ling life:160 fadeOut: true attachedToUnit: false color: #63e6e8 fadeInTime:2 scaleFrom:8 scaleTo:0 alpha: 0.2 drawUnderUnits:true ySpeedRelative:0.2 atmospheric: true [ai] useAsBuilder: true #upgradedFrom: LastSpanish #----血条------ [decal_血条] layer:afterBody image:ROOT:/assets/public/hpbar.png imageScaleX:(self.hp/self.maxHp)*82 alwaysStartDirAtZero:true dirOffset:0 yOffsetAbsolute:70 pivotOffset:0 #Thanks 杰厕灵 in Code xOffsetAbsolute: ((1-(self.hp / self.maxHp)) * (-${core.radius}/1.31)) #isVisible:if self.hp > self.maxHp*0.6 color:#00ffff order:1 [decal_血条底板] image:ROOT:/assets/demonjiimg/core/ldp-bar.png alwaysStartDirAtZero:true dirOffset:0 imageScaleX:1.3 yOffsetAbsolute:70 xOffsetAbsolute:2 pivotOffset:0 order:-1 layer:onTop [decal_xis_个位] @define A:0 layer:onTop order:10.01 yOffsetAbsolute:70 image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png imageScale:0.7 frame: memory.#[${A}] frame_width:6 frame_height:8 alwayStartDirAtZero:true onlyWhileAlive:true onlyOnNonPreview:true xOffsetAbsolute: 5 [decal_xis_十位] @copyFromSection: decal_xis_个位 @define A:1 image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png isVisible:if memory.#[${A}] != 0 or memory.#[2] != 0 or memory.#[3] != 0 xOffsetAbsolute:0 [decal_xis_百位] @copyFromSection: decal_xis_个位 @define A:2 image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png isVisible:if memory.#[${A}] != 0 or memory.#[3] != 0 xOffsetAbsolute:-5 [decal_xis_千位] @copyFromSection: decal_xis_个位 @define A:3 image:ROOT:/assets/oldsungodimg/lalaiye/hp-number.png isVisible:if memory.#[${A}] != 0 xOffsetAbsolute:-10