2022-12-10 14:23:06 +00:00
2023-01-03 08:57:05 +00:00
2022-12-10 14:23:06 +00:00
2022-12-09 09:58:23 +00:00
[core]
name:模块化炮塔底座
class:CustomUnitMetadata
2023-01-03 08:57:05 +00:00
price:2400
2023-01-04 14:08:07 +00:00
maxHp:700
2022-12-09 09:58:23 +00:00
mass:9000
#used for placement, and placement of other buildings
techLevel:3
buildSpeed:1s
#availableInDemo:true
radius:35
2023-01-03 08:57:05 +00:00
disableDeathOnZeroHp:true
2022-12-09 09:58:23 +00:00
#displayRadius:25
isBio:false
2023-01-04 14:08:07 +00:00
isUnselectable:true
2022-12-09 09:58:23 +00:00
isBuilding:true
footprint: -1,-1,1,1
#used for placement, and placement of other buildings
constructionFootprint: -1,-1,1,1
displayText: Modular turret base
2023-01-03 08:57:05 +00:00
displayDescription: -When each forces are two defeated, the magic dragon is carrying out the technology revolutionary \n-This modular turret is the latest technology, and the turret can be integrated.\n-Invincible, skip the victory judgment, and you need to destroy it manually.
2023-01-04 14:08:07 +00:00
canNotBeDirectlyAttacked:false
2022-12-09 09:58:23 +00:00
displayText_zh: 模块化炮塔底座
2023-01-04 14:08:07 +00:00
displayDescription_zh: -当各个势力正在两败俱伤时,魔龙正在进行科技大革命\n-这个模块化炮塔底座便是最新科技,可以将炮塔融为一体。\n
tags:魔法底座
2023-01-03 08:57:05 +00:00
2023-01-04 14:08:07 +00:00
#如果这个无法选中的血量低于0, 那么直接转换为中介单位死亡
#因为这个单位0血不会死亡
[hiddenAction_convertOnDeath]
autoTriggerOnEvent: tookDamage
requireConditional: if self.hp(lessThan = 1)
convertTo: 模块化炮塔底座ZX
2023-01-03 08:57:05 +00:00
[action_reclaim]
buildSpeed: 3s
text: Destroy Base
text_zh: 销毁底座
description: -Completely destroy the base and return 50% of the funds.
description_zh: -彻底销毁底座, 返还50%资金。
2023-01-04 14:08:07 +00:00
convertTo: 模块化炮塔底座ZX
2023-01-03 08:57:05 +00:00
#和上面那个一样
addResources: ${core.price * 0.5}
#一种新的变量,目前我不知道是否可用于全局资源。
iconExtraImage: SHARED:icon_sell_top.png
iconExtraColor: #AAFFFFFF
2023-01-30 05:33:52 +00:00
ai_isDisabled:true
2023-03-26 16:11:17 +00:00
isLocked:if self.isControlledByAI()
2023-01-03 08:57:05 +00:00
2023-01-04 14:08:07 +00:00
[attachment_单位插槽1]
x: 0
y: 0
#伪一个一样的单位作为附属,并且让他可以选中,而本单位则无法选中
#为什么要这样做?
#因为这样这个单位无法选中则说明是底座,而不是只有炮塔的样子
onCreateSpawnUnitOf:模块化马猴烧酒
canBeAttackedAndDamaged:true
setDrawLayerOnBottom:true
keepAliveWhenParentDies:false
isUnselectable:false
2022-12-09 09:58:23 +00:00
[graphics]
total_frames:4
image:ROOT:/assets/magicdragonimg/modconon/音座.png
image_turret:NONE
image_wreak:NONE
#scaleImagesTo:55
#scaleTurretImagesTo:40
#AUTO
image_shadow:AUTO
shadowOffsetX:1
shadowOffsetY:1
animation_idle_start: 0
animation_idle_end: 3
2023-01-04 14:08:07 +00:00
animation_idle_speed: 7
2022-12-09 09:58:23 +00:00
[attack]
canAttack:false
[movement]
movementType:LAND
moveSpeed:0
maxTurnSpeed:5
2023-01-03 08:57:05 +00:00
[template_组装模块]
text: Add
text_zh: 组装
textAddUnitName: ${section.convertTo}
descriptionAddFromUnit: ${section.convertTo}
descriptionAddUnitStats: ${section.convertTo}
isActive: if self.queueSize(empty = true)
setBuilt:0
2022-12-09 09:58:23 +00:00
buildSpeed: 0s
2023-01-03 08:57:05 +00:00
[action_组装碧绿模块核心]
@copyFromSection: template_组装模块
buildSpeed: 4s
convertTo: 碧绿炮塔X
#在这里定义单位
price: 1800
2022-12-20 14:48:31 +00:00
onlyOneUnitAtATime:false
2022-12-09 09:58:23 +00:00
2023-01-03 08:57:05 +00:00
[action_组装音波模块核心]
@copyFromSection: template_组装模块
buildSpeed: 4s
convertTo: 超音波塔X
onlyOneUnitAtATime:false
2022-12-09 09:58:23 +00:00
[turret_1]
x:0
y:0
showRangeUIGuide:true
2022-12-11 06:16:39 +00:00
[ai]
buildPriority: 0.13
noneInBaseExtraPriority: 0.04
noneGlobalExtraPriority: 0.1
2022-12-12 14:26:42 +00:00
maxGlobal: 2