Fixed More Bug & New T2 Unit Add

This commit is contained in:
LingASDJ 2023-01-03 16:57:05 +08:00
parent 5bb79d5204
commit 925ad5bbf2
21 changed files with 978 additions and 102 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

View File

@ -0,0 +1,106 @@
[core]
name: 模块化炮塔底座Z
copyFrom: ROOT:/code/magicdragon/模块化中心/核心3-武器附属.ini
class: CustomUnitMetadata
price: 800
maxHp:1
mass: 9000
tags:LTX
footprint: -1,-1,1,1
#used for placement, and placement of other buildings
constructionFootprint: -1,-1,1,1
#unitsSpawnedOnDeath:模块化炮塔底座
isUnselectable: false
techLevel: 1
buildSpeed: 1
#availableInDemo: true
selfRegenRate: -1
#generation_credits: 20
#generation_delay: 30
disableDeathOnZeroHp: false
radius:35
#displayRadius: 25
isBio:false
isBuilding: true
showInEditor:false
displayText: Magic Music Tower
displayText_zh: 超音波塔
selfRegenRate: -1
displayDescription:It can only attack ground units. It has a large attack range and causes AOE damage to the enemy.\n-The disadvantage is that the accuracy of artillery shells is not high. \n-And has weak laser interception effect and weak credits.
displayDescription_zh:只能攻击地面单位超大的攻击范围对敌人造成AOE伤害缺点是炮弹精度不高。\n-并且拥有弱效的激光拦截效果和微弱的资金加成。
energyMax: 1
energyRegen: 0.0018
[graphics]
total_frames: 1
image:ROOT:/assets/magicdragonimg/modconon/UI.png
image_turret: NONE
image_wreak: NONE
#scaleImagesTo: 55
#scaleTurretImagesTo: 40
#AUTO
image_shadow: AUTO
shadowOffsetX:1
shadowOffsetY:1
[attack]
canAttack: true
canAttackFlyingUnits: false
canAttackLandUnits: true
canAttackUnderwaterUnits: false
turretSize: 30
turretTurnSpeed: 1
maxAttackRange: 375
shootDelay:2.5s
[turret_1]
x: 0
y: 0
projectile: 1
#delay: 0.2s
warmup:1.5s
[turret_2]
x: 0
y: 0
canShoot: false
invisible: true
laserDefenceEnergyUse: 0.25
limitingRange:200
size:1
[projectile_1]
directDamage: 25
life: 200
#speed: 1
frame: 15
drawSize: 1
#targetSpeed: 3
trailEffect: true
image:ROOT:/assets/magicdragonimg/modconon/音炮.png
[movement]
movementType: LAND
moveSpeed: 0
moveAccelerationSpeed: 0.01
moveDecelerationSpeed: 0.01
maxTurnSpeed: 0
turnAcceleration: 0.1

View File

@ -0,0 +1,106 @@
[core]
name: 碧绿炮塔X
copyFrom: ROOT:/code/magicdragon/模块化中心/核心3-武器附属.ini
class: CustomUnitMetadata
price: 800
maxHp: 1
mass: 9000
tags:LTX
footprint: -1,-1,1,1
#used for placement, and placement of other buildings
constructionFootprint: -1,-1,1,1
unitsSpawnedOnDeath:碧绿炮塔
isUnselectable: false
techLevel: 1
buildSpeed: 1
#availableInDemo: true
selfRegenRate: -1
#generation_credits: 20
#generation_delay: 30
disableDeathOnZeroHp: false
radius:35
#displayRadius: 25
isBio:false
isBuilding: true
showInEditor:false
displayText: Magic Music Tower
displayText_zh: 超音波塔
displayDescription:It can only attack ground units. It has a large attack range and causes AOE damage to the enemy.\n-The disadvantage is that the accuracy of artillery shells is not high. \n-And has weak laser interception effect and weak credits.
displayDescription_zh:只能攻击地面单位超大的攻击范围对敌人造成AOE伤害缺点是炮弹精度不高。\n-并且拥有弱效的激光拦截效果和微弱的资金加成。
energyMax: 1
energyRegen: 0.0018
[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
[attack]
canAttack: true
canAttackFlyingUnits: false
canAttackLandUnits: true
canAttackUnderwaterUnits: false
turretSize: 30
turretTurnSpeed: 1
maxAttackRange: 375
shootDelay:2.5s
[turret_1]
x: 0
y: 0
projectile: 1
#delay: 0.2s
warmup:1.5s
[turret_2]
x: 0
y: 0
canShoot: false
invisible: true
laserDefenceEnergyUse: 0.25
limitingRange:200
size:1
[projectile_1]
directDamage: 25
life: 200
#speed: 1
frame: 15
drawSize: 1
#targetSpeed: 3
trailEffect: true
image:ROOT:/assets/magicdragonimg/modconon/音炮.png
[movement]
movementType: LAND
moveSpeed: 0
moveAccelerationSpeed: 0.01
moveDecelerationSpeed: 0.01
maxTurnSpeed: 0
turnAcceleration: 0.1

View File

@ -0,0 +1,105 @@
[core]
name: 超音波塔X
copyFrom: ROOT:/code/magicdragon/模块化中心/核心3-武器附属.ini
class: CustomUnitMetadata
price: 800
maxHp: 1
mass: 9000
tags:LTX
footprint: -1,-1,1,1
#used for placement, and placement of other buildings
constructionFootprint: -1,-1,1,1
unitsSpawnedOnDeath:超音波塔
isUnselectable: false
techLevel: 1
buildSpeed: 1
#availableInDemo: true
#generation_credits: 20
selfRegenRate: -1
#generation_delay: 30
disableDeathOnZeroHp: false
radius:35
#displayRadius: 25
isBio:false
isBuilding: true
showInEditor:false
displayText: Magic Music Tower
displayText_zh: 超音波塔
displayDescription:It can only attack ground units. It has a large attack range and causes AOE damage to the enemy.\n-The disadvantage is that the accuracy of artillery shells is not high. \n-And has weak laser interception effect and weak credits.
displayDescription_zh:只能攻击地面单位超大的攻击范围对敌人造成AOE伤害缺点是炮弹精度不高。\n-并且拥有弱效的激光拦截效果和微弱的资金加成。
energyMax: 1
energyRegen: 0.0018
[graphics]
total_frames: 1
image_turret: NONE
image: ROOT:/assets/magicdragonimg/modconon/音塔.png
image_wreak: NONE
#scaleImagesTo: 55
#scaleTurretImagesTo: 40
#AUTO
image_shadow: AUTO
shadowOffsetX:1
shadowOffsetY:1
[attack]
canAttack: true
canAttackFlyingUnits: false
canAttackLandUnits: true
canAttackUnderwaterUnits: false
turretSize: 30
turretTurnSpeed: 1
maxAttackRange: 375
shootDelay:2.5s
[turret_1]
x: 0
y: 0
projectile: 1
#delay: 0.2s
warmup:1.5s
[turret_2]
x: 0
y: 0
canShoot: false
invisible: true
laserDefenceEnergyUse: 0.25
limitingRange:200
size:1
[projectile_1]
directDamage: 25
life: 200
#speed: 1
frame: 15
drawSize: 1
#targetSpeed: 3
trailEffect: true
image:ROOT:/assets/magicdragonimg/modconon/音炮.png
[movement]
movementType: LAND
moveSpeed: 0
moveAccelerationSpeed: 0.01
moveDecelerationSpeed: 0.01
maxTurnSpeed: 0
turnAcceleration: 0.1

View File

@ -24,7 +24,7 @@ disableDeathOnZeroHp: true
isUnselectable: true
isUnselectableAsTarget: false
selfRegenRate: 1
selfBuildRate: 0.001
selfBuildRate: 1
[hiddenAction_convertOnDeath]
autoTriggerOnEvent: tookDamage
requireConditional: if self.hp(lessThan=1)
@ -34,16 +34,17 @@ convertTo: EmptyS
setBuilt:1
[action_reclaim]
buildSpeed: 3s
text: Reclaim Slot
text_zh: 回收模块
description: -Free up slot for another turret type.\n-Returns ${core.price * 0.8} credits
description_zh: -为其他的模块而释放此插槽\n-返还 ${core.price * 0.8} 资金
convertTo: EmptyS
text: Destroy
text_zh: 销毁
description: -Completely destroy the base and return 80% of the funds.
description_zh: -彻底销毁返还80%资金。
convertTo: 模块化炮塔底座Z
#和上面那个一样
addResources: ${core.price * 0.5}
addResources: ${core.price * 0.8}
#一种新的变量,目前我不知道是否可用于全局资源。
iconExtraImage: SHARED:icon_sell_top.png
iconExtraColor: #AAFFFFFF
[graphics]
total_frames: 1
image: SHARED:blank.png

View File

@ -2,4 +2,5 @@
dont_load:true
copyFrom: 核心-[非空白插槽].ini
tags:非空白插槽,空白插槽
#这个ini主要用于需要组装的单位上面在组装单位上面必须copyFrom它。
#这个ini主要用于需要组装的单位上面在组装单位上面必须copyFrom它。

View File

@ -23,13 +23,35 @@ displayText_zh: 碧绿炮塔
tags:LTX
displayDescription:Can only attack ground units.\n-Lasts laser damage continuously.\n-Excellent effect on single. \n-However,it needs energy.\n-When the energy is exhausted,it needs to be automatically charged before use.
displayDescription_zh:只能攻击地面单位,持续激光伤害,对单效果极好。但需要能量,能量耗尽需要自动充能后使用。
isUnselectable: false
energyMax:1
energyRegen: 0.0006
disableAllUnitCollisions:true
showInEditor:false
showOnMinimap:false
[action_upgradeT2]
text: Upgrade
textAddUnitName: ${section.convertTo}
descriptionAddFromUnit: ${section.convertTo}
descriptionAddUnitStats: ${section.convertTo}
isActive: if self.queueSize(empty=true)
buildSpeed: 20s
convertTo:碧绿炮塔T2
price: 7500
iconExtraImage: SHARED:icon_upgrade.png
iconExtraColor: #FFFFFFFF
[attachment_单位插槽1]
x: 0
y: 0
onCreateSpawnUnitOf:模块化炮塔底座
canBeAttackedAndDamaged:true
setDrawLayerOnBottom:true
keepAliveWhenParentDies:false
isUnselectable:false
[graphics]
total_frames:4
image:ROOT:/assets/magicdragonimg/modconon/碧绿炮塔.png
@ -54,19 +76,19 @@ animation_attack_speed: 25
[attack]
isFixedFiring:true
canAttack:true
canAttackFlyingUnits:true
canAttackFlyingUnits:false
canAttackLandUnits:true
canAttackUnderwaterUnits:true
turretSize:30
turretTurnSpeed:1
maxAttackRange:190
canAttackUnderwaterUnits:false
turretSize: 30
turretTurnSpeed: 1
maxAttackRange:240
shootDelay:30
[turret_1]
x:0
y:0
projectile:1
canAttackFlyingUnits:true
canAttackFlyingUnits:false
canAttackLandUnits:true
canAttackUnderwaterUnits:false
#delay:0.2
@ -75,9 +97,9 @@ delay:0.05s
shouldResetTurret:true
size:25
energyUsage:0.01
turnSpeed:1
[projectile_1]
directDamage:2
directDamage:6
life:6
#speed:1
frame:15
@ -97,7 +119,7 @@ sweepOffsetFromTargetRadius:0.5
[movement]
movementType: AIR
movementType: LAND
moveSpeed: 1.1
moveAccelerationSpeed: 0.01
moveDecelerationSpeed: 0.01

View File

@ -0,0 +1,124 @@
[core]
name:碧绿炮塔T2
class:CustomUnitMetadata
copyFrom: 核心3-武器附属.ini
price:1800
maxHp:1200
mass:9000
techLevel:1
buildSpeed:0.001
#availableInDemo:true
constructionFootprint:-1,-1,1,1
footprint:-1,-1,1,1
generation_credits:1
generation_delay:40
radius:35
#displayRadius:25
isBio:false
isBuilding:true
selfRegenRate:0
energyNeedsToRechargeToFull:true
displayText: Magic Green TowerT2
displayText_zh: 碧绿炮塔T2
tags:LTX
displayDescription:Can only attack ground units.\n-Lasts laser damage continuously.\n-Excellent effect on single. \n-However,it needs energy.\n-When the energy is exhausted,it needs to be automatically charged before use.
displayDescription_zh:只能攻击地面单位,持续激光伤害,造成范围伤害。二级能量更多。
isUnselectable: false
energyMax:3
energyRegen: 0.0006
disableAllUnitCollisions:true
showInEditor:false
showOnMinimap:false
[action_upgradeT2]
convertTo:NONE
[attachment_单位插槽1]
x: 0
y: 0
onCreateSpawnUnitOf:模块化炮塔底座
canBeAttackedAndDamaged:true
setDrawLayerOnBottom:true
keepAliveWhenParentDies:false
isUnselectable:false
[graphics]
total_frames:4
image:ROOT:/assets/magicdragonimg/modconon/碧绿炮塔.png
image_turret:NONE
image_wreak:NONE
scaleImagesTo:45
#scaleTurretImagesTo:40
#AUTO
image_shadow:AUTO
shadowOffsetX:1
shadowOffsetY:1
animation_idle_start: 0
animation_idle_end: 3
animation_idle_speed: 25
animation_attack_start: 0
animation_attack_end: 2
animation_attack_speed: 25
[attack]
isFixedFiring:true
canAttack:true
canAttackFlyingUnits:false
canAttackLandUnits:true
canAttackUnderwaterUnits:false
turretSize:30
turretTurnSpeed:1
maxAttackRange:280
shootDelay:30
[turret_1]
x:0
y:0
projectile:1
canAttackFlyingUnits:false
canAttackLandUnits:true
canAttackUnderwaterUnits:false
#delay:0.2
shoot_light:#AAD0CA
delay:0.05s
shouldResetTurret:true
size:25
turnSpeed:1
energyUsage:0.01
[projectile_1]
directDamage:10
areaRadius:90
areaDamage:15
life:6
#speed:1
frame:15
drawSize:1
#targetSpeed:3
deflectionPower:-1
instant:true
laserEffect:true
instantReuseLast_alsoChangeTurretAim:true
instantReuseLast:true
moveWithParent:true
beamImage:SHARED:beam1.png
beamImageEnd:SHARED:beam1_end.png
beamImageStart:SHARED:beam1_start.png
beamImageOffsetRate:0.6
sweepOffsetFromTargetRadius:0.5
[movement]
movementType: LAND
moveSpeed: 1.1
moveAccelerationSpeed: 0.01
moveDecelerationSpeed: 0.01
maxTurnSpeed: 1.3
turnAcceleration: 0.05
moveSlidingMode :true
moveIgnoringBody:true
moveSlidingDir: 45

View File

@ -8,17 +8,17 @@ maxHp: 300
mass: 9000
tags:LTX
footprint: -1,-1,1,1
showInEditor:false
#used for placement, and placement of other buildings
constructionFootprint: -1,-1,1,1
isUnselectable: false
techLevel: 1
buildSpeed: 0.001
#availableInDemo: true
#generation_credits: 20
#generation_delay: 30
generation_credits: 1
generation_delay: 100
radius:35
#displayRadius: 25
@ -31,13 +31,36 @@ displayText: Magic Music Tower
displayText_zh: 超音波塔
displayDescription:It can only attack ground units. It has a large attack range and causes AOE damage to the enemy.\n-The disadvantage is that the accuracy of artillery shells is not high. \n-And has weak laser interception effect and weak credits.
displayDescription_zh:只能攻击地面单位,超大的攻击范围,对敌人造成AOE伤害,缺点是炮弹精度不高。\n-并且拥有弱效的激光拦截效果和微弱的资金加成。
displayDescription_zh:只能攻击地面单位,超大的攻击范围,对敌人造成单体伤害,缺点是炮弹精度不高。\n-并且拥有弱效的激光拦截效果和微弱的资金加成。
disableDeathOnZeroHp:true
energyMax: 1
energyRegen: 0.0018
[attachment_单位插槽1]
x: 0
y: 0
onCreateSpawnUnitOf:模块化炮塔底座
canBeAttackedAndDamaged:true
setDrawLayerOnBottom:true
keepAliveWhenParentDies:false
isUnselectable:false
[action_upgradeT2]
text: Upgrade
textAddUnitName: ${section.convertTo}
descriptionAddFromUnit: ${section.convertTo}
descriptionAddUnitStats: ${section.convertTo}
isActive: if self.queueSize(empty=true)
buildSpeed: 16s
convertTo:超音波塔T2
price: 6000
iconExtraImage: SHARED:icon_upgrade.png
iconExtraColor: #FFFFFFFF
[graphics]
total_frames: 1
@ -63,8 +86,8 @@ canAttackUnderwaterUnits: false
turretSize: 30
turretTurnSpeed: 1
maxAttackRange: 375
shootDelay:2.5s
maxAttackRange: 275
shootDelay:1.25s
[turret_1]
x: 0
@ -72,7 +95,6 @@ y: 0
projectile: 1
#delay: 0.2s
warmup:1.5s
[turret_2]
@ -89,7 +111,7 @@ limitingRange:200
size:1
[projectile_1]
directDamage: 25
directDamage: 20
life: 200
#speed: 1

View File

@ -0,0 +1,120 @@
[core]
name: 超音波塔T2
copyFrom: 核心3-武器附属.ini,音塔.ini
class: CustomUnitMetadata
price: 800
maxHp: 1400
mass: 9000
tags:LTX
footprint: -1,-1,1,1
showInEditor:false
#used for placement, and placement of other buildings
constructionFootprint: -1,-1,1,1
isUnselectable: false
techLevel: 1
buildSpeed: 0.001
#availableInDemo: true
generation_credits: 1
generation_delay: 40
radius:35
#displayRadius: 25
isBio:false
isBuilding: true
selfRegenRate:0
displayText: Magic Music Tower-T2
displayText_zh: 超音波塔T2
displayDescription:It can only attack ground units. It has a large attack range and causes AOE damage to the enemy.\n-The disadvantage is that the accuracy of artillery shells is not high. \n-And has weak laser interception effect and weak credits.
displayDescription_zh:只能攻击地面单位,超大的攻击范围,散布式攻击,对敌人造成范围伤害,缺点是炮弹精度不高。\n-并且拥有中等的激光拦截效果和较弱的资金加成。
disableDeathOnZeroHp:true
energyMax: 5
energyRegen: 0.0018
[action_upgradeT2]
convertTo:NONE
[graphics]
total_frames: 1
image: ROOT:/assets/magicdragonimg/modconon/LST.png
image_turret: ROOT:/assets/magicdragonimg/modconon/音塔.png
image_wreak: NONE
#scaleImagesTo: 55
#scaleTurretImagesTo: 40
#AUTO
image_shadow: AUTO
shadowOffsetX:1
shadowOffsetY:1
[attack]
canAttack: true
canAttackFlyingUnits: false
canAttackLandUnits: true
canAttackUnderwaterUnits: false
turretSize: 30
turretTurnSpeed: 1
maxAttackRange: 375
shootDelay:1s
[turret_1]
x: 0
y: 0
warmup:1.75s
projectile: 1
#delay: 0.2s
[turret_2]
x: 0
y: 0
canShoot: false
invisible: true
laserDefenceEnergyUse: 0.25
limitingRange:200
size:1
[projectile_1]
directDamage: 35
spawnProjectilesOnCreate:1(offsetDir=12,recursionLimit=2)
life: 75
#speed: 1
areaDamage:75
areaRadius:100
largeHitEffect:true
frame: 15
turnSpeed:0
retargetingInFlight:true
drawSize: 1
#targetSpeed: 3
trailEffect: true
image:ROOT:/assets/magicdragonimg/modconon/音炮.png
[movement]
movementType: LAND
moveSpeed: 0
moveAccelerationSpeed: 0.01
moveDecelerationSpeed: 0.01
maxTurnSpeed: 0
turnAcceleration: 0.1

View File

@ -1,18 +0,0 @@
[core]
name:模块化炮塔底座X
displayText: Modular turret baseXXX
isUnselectable: true
copyFrom:魔法底座.ini
showInEditor:false
[hiddenAction_Test]
autoTrigger:if self.numberOfAttachedUnits(withTag='LTX',lessThan=1)
convertTo:模块化炮塔底座
[ai]
buildPriority: 0.13
noneInBaseExtraPriority: 0.04
noneGlobalExtraPriority: 0.1
maxGlobal: 2

View File

@ -1,20 +1,18 @@
[hiddenAction_Test]
autoTrigger:if not self.numberOfAttachedUnits(withTag='LTX',lessThan=1)
convertTo:模块化炮塔底座X
[core]
name:模块化炮塔底座
class:CustomUnitMetadata
price:400
maxHp:400
price:2400
maxHp:1000
mass:9000
#used for placement, and placement of other buildings
techLevel:3
buildSpeed:1s
#availableInDemo:true
radius:35
disableDeathOnZeroHp:true
#displayRadius:25
isBio:false
isUnselectable:false
@ -23,10 +21,25 @@ footprint: -1,-1,1,1
#used for placement, and placement of other buildings
constructionFootprint: -1,-1,1,1
displayText: Modular turret base
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.
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.
canNotBeDirectlyAttacked:true
displayText_zh: 模块化炮塔底座
displayDescription_zh: -当各个势力正在两败俱伤时,魔龙正在进行科技大革命\n-这个模块化炮塔底座便是最新科技,可以将炮塔融为一体。
displayDescription_zh: -当各个势力正在两败俱伤时,魔龙正在进行科技大革命\n-这个模块化炮塔底座便是最新科技,可以将炮塔融为一体。\n-无敌,跳过胜利判定,需要自行手动销毁
[action_reclaim]
buildSpeed: 3s
text: Destroy Base
text_zh: 销毁底座
description: -Completely destroy the base and return 50% of the funds.
description_zh: -彻底销毁底座返还50%资金。
convertTo: 模块化炮塔底座Z
#和上面那个一样
addResources: ${core.price * 0.5}
#一种新的变量,目前我不知道是否可用于全局资源。
iconExtraImage: SHARED:icon_sell_top.png
iconExtraColor: #AAFFFFFF
[graphics]
total_frames:4
@ -52,46 +65,28 @@ movementType:LAND
moveSpeed:0
maxTurnSpeed:5
[action_插槽1]
@define slotId: 1
[template_组装模块]
text: Add
text_zh: 组装
textAddUnitName: ${section.convertTo}
descriptionAddFromUnit: ${section.convertTo}
descriptionAddUnitStats: ${section.convertTo}
isActive: if self.queueSize(empty=true)
setBuilt:0
buildSpeed: 0s
#text: Slot ${slotId}
text: [
textAddUnitName: unitRef self.attachment(slot="单位插槽${slotId}")
textPostFix: ]
descriptionAddFromUnit: unitRef self.attachment(slot="单位插槽${slotId}")
descriptionAddUnitStats: unitRef self.attachment(slot="单位插槽${slotId}")
addResources: unsetFlag=1, setFlag=${slotId}
#注意unsetFlag=1-3相当于最多3个模块。如果需要更多就加大。比如25个就是unsetFlag=1-25
isGuiBlinking: if self.hasFlag(id=${slotId})
displayType: action
unitShownInUI: unitRef self.attachment(slot="单位插槽${slotId}")
#其他代码直接复制就是了
iconExtraIsVisible: if self.hasFlag(id=${slotId})
iconExtraImage: ROOT:/assets/magicdragonimg/modconon/UI.png
#设置选择的素材图
[action_组装碧绿模块核心]
@copyFromSection: template_组装模块
buildSpeed: 4s
convertTo: 碧绿炮塔X
#在这里定义单位
price: 1800
onlyOneUnitAtATime:false
[attachment_单位插槽1]
x: 0
y: 0
#idleDir:-60
idleDir:0
idleDirReversing:0
onCreateSpawnUnitOf:EmptyS
#指向核心2.ini
addTransportedUnits: true
setDrawLayerOnTop: true
lockLegMovement:false
canBeAttackedAndDamaged: true
isUnselectable: false
showAllActionsFrom:if self.hasFlag(id=1)
#注意后面的id
#resetRotationWhenNotAttacking:true
lockRotation: true
createIncompleteIfParentIs: false
redirectDamageToParent: true
redirectDamageToParent_shieldOnly: true
[action_组装音波模块核心]
@copyFromSection: template_组装模块
buildSpeed: 4s
convertTo: 超音波塔X
onlyOneUnitAtATime:false
[turret_1]
x:0

View File

@ -1,4 +1,14 @@
[action_Help]
price:3200
text:Upgrade
text_zh:升级
description:Upgraded to four anti-aircraft guns with high durability.
description_zh:升级后变为四门防空炮,拥有较高耐久值。
buildSpeed:25s
convertTo:四恒防空塔
[core]
name: 热流塔
class: CustomUnitMetadata
@ -16,7 +26,7 @@ buildSpeed: 0.002
#availableInDemo: true
displayText: Hot AA Tower
displayDescription: -The main air defense military buildings of the ancient Ma\n-country attacked unauthorized AIR Army that dared to invade.
displayDescription: -The main air defense military buildings of the ancient Magic Dragon\n-country attacked unauthorized AIR Army that dared to invade.
displayText_zh: 热流防空塔
displayDescription_zh: -魔龙古国的主要防空军事建筑,对胆敢来犯的未授权空军部队进行打击。
@ -97,7 +107,7 @@ autoTargetingOnDeadTarget: true
[movement]
movementType: AIR
movementType: LAND
moveSpeed: 0
moveAccelerationSpeed: 0.01
moveDecelerationSpeed: 0.01

View File

@ -0,0 +1,145 @@
[core]
name: 四恒防空塔
class: CustomUnitMetadata
price: 600
maxHp:2000
mass: 1200
footprint: -1,-1,1,1
#used for placement, and placement of other buildings
constructionFootprint: -1,-1,1,1
techLevel: 1
buildSpeed: 0.002
#availableInDemo: true
displayText: Siheng Anti-air Tower
displayDescription: -The main air defense military T2 buildings of the ancient Magic Dragon\n-country attacked unauthorized AIR Army that dared to invade.
displayText_zh: 四恒防空塔
displayDescription_zh: -魔龙古国的主要防空军事建筑T2对胆敢来犯的未授权空军部队进行打击。
radius: 16
#displayRadius: 25
isBuilding: true
[graphics]
total_frames: 1
image: ROOT:/assets/magicdragonimg/hotaa/热流塔T2.png
image_wreak: NONE
image_turret: NONE
#scaleImagesTo: 20
#caleTurretImagesTo: 3
#AUTO
image_shadow: AUTO
shadowOffsetX:1
shadowOffsetY:1
[attack]
canAttack: true
canAttackFlyingUnits: true
canAttackLandUnits: false
canAttackUnderwaterUnits: false
turretSize: 20
turretTurnSpeed: 3
maxAttackRange: 320
shootDelay:1.5s
[turret_1]
x:11.8
y:-11.1
warmup:1s
idleDir:0
size:1
canAttackFlyingUnits: true
canAttackLandUnits: false
canAttackUnderwaterUnits: false
#shoot_flame:large
shoot_light:#FFEECCCC
projectile:1
[turret_2]
x:-11.8
y:-11.1
warmup:1s
idleDir:0
size:1
canAttackFlyingUnits: true
canAttackLandUnits: false
canAttackUnderwaterUnits: false
#shoot_flame:large
shoot_light:#FFEECCCC
projectile:1
[turret_3]
x:11.8
y:12
warmup:1s
idleDir:0
size:1
canAttackFlyingUnits: true
canAttackLandUnits: false
canAttackUnderwaterUnits: false
#shoot_flame:large
shoot_light:#FFEECCCC
projectile:1
[turret_4]
x:-11.8
y:12
warmup:1s
idleDir:0
size:1
canAttackFlyingUnits: true
canAttackLandUnits: false
canAttackUnderwaterUnits: false
#shoot_flame:large
shoot_light:#FFEECCCC
projectile:1
[projectile_1]
#missile
directDamage: 75
life: 240
speed:0
targetSpeed: 8
trailEffect: true
largeHitEffect: true
ballistic: true
ballistic_delaymove_height:1000
ballistic_height: 200
frame: 4
autoTargetingOnDeadTarget: true
[movement]
movementType: LAND
moveSpeed: 0
moveAccelerationSpeed: 0.01
moveDecelerationSpeed: 0.01
maxTurnSpeed: 0
turnAcceleration: 0.1
[ai]
buildPriority: 0.23
noneInBaseExtraPriority: 0.04
noneGlobalExtraPriority: 0.1
maxEachBase: 2

View File

@ -13,7 +13,7 @@ tags:海军基地
#used for placement, and placement of other buildings
constructionFootprint: -2,-2,2,3
#overrideAndReplace: seaFactory
overrideAndReplace: seaFactory
extraBuildRangeWhenBuildingThis:65
techLevel: 1
@ -40,7 +40,7 @@ softCollisionOnAll: 10
canBuild_1_name: setRally
canBuild_1_pos: -1
canBuild_2_name: gunBoat,hovercraft,missileShip,battleShip
canBuild_2_name: gunBoat,hovercraft,missileShip,battleShip,lightSub,hovercraft,attackSubmarine,missileShip,battleShip
#canBuild_2_name: builderShip,动员炮艇,gunBoat,lightSub,hovercraft,attackSubmarine,missileShip,battleShip,白露级,无畏级
canBuild_2_pos: 1
@ -95,12 +95,12 @@ maxGlobal: 4
[action_升级]
convertTo: seaFactoryT2
price: 14000
price: 5000
text: i:gui.actions.upgradeT2
displayType: upgrade
description:-Upgrade and Unlock more Powerful T2 Sea Units.
description_zh:-升级并解锁更强大的T2海军单位
buildSpeed: 40s
buildSpeed: 20s
pos: 0
unitShownInUI: seaFactoryT2
iconExtraImage: SHARED:icon_upgrade_top.png

View File

@ -36,7 +36,7 @@ exit_y:-3
exit_moveAwayAmount:120
canBuild_2_name: gunBoat,hovercraft,missileShip,battleShip,卡洛尔重型战舰
canBuild_2_name:gunBoat,hovercraft,missileShip,battleShip,lightSub,hovercraft,attackSubmarine,missileShip,battleShip,卡洛尔重型战舰,RedCoral,cruiser,heavyAAShip,heavyMissileShip,attackLandingCraft
#canBuild_2_name: builderShip,动员炮艇,gunBoat,lightSub,hovercraft,attackSubmarine,missileShip,battleShip,白露级,无畏级
canBuild_2_pos: 1

View File

@ -9,7 +9,7 @@ displayDescription: -Fully armed tanks have laid a good fighting foundation for
displayDescription_zh:全副武装的坦克为旧日的T2时代打下了良好的战斗基础。\n拥有更强大的两管加农炮对空效果显著是称得上旧日T2全面化的战争重型坦克。
class: CustomUnitMetadata
price: 2500
maxHp: 1600
maxHp: 1200
mass: 5600
fogOfWarSightRange: 22
@ -195,7 +195,7 @@ speed: 8
targetGround: true
largeHitEffect: true
frame: 8
areaDamage: 100
areaDamage: 50
areaRadius: 50
lightColor: #ffff00
lightSize: 0.4
@ -213,7 +213,7 @@ lightSize: 0.4
[projectile_3]
#projectile type 23 (AIR)
directDamage: 20
directDamage: 15
life: 60
speed:-4
targetSpeed:2

View File

@ -0,0 +1,137 @@
[core]
name: attackLandingCraft
displayText: Attack Landing Craft
displayDescription: -Can transports units up to 8\n-Can move over land and water\n-Can now attack air and land\n-10% faster than normal Landing Crafts
displayText_zh: 重型登陆艇
displayDescription_zh: -最多可以运输8个单位\n-能在陆地和水上移动-能攻击空中和陆地-比普通登陆艇移速更快!
class: CustomUnitMetadata
price: 3200
maxHp: 1800
mass: 12000
techLevel: 2
buildSpeed: 0.00073
availableInDemo: true
radius: 28
#displayRadius: 15
maxTransportingUnits: 8
isBio: false
[graphics]
total_frames: 1
image: ROOT:/assets/oldsungodimg/T2/SuperCraft/attack_landing_craft_body.png
image_wreak: NONE
image_turret: NONE
#scaleImagesTo: 20
#scaleTurretImagesTo: 9
splastEffect: true
#AUTO
image_shadow: AUTO
shadowOffsetX:1
shadowOffsetY:1
turretImageScale: 1.1
[attack]
canAttack: true
canAttackFlyingUnits: true
canAttackLandUnits: true
canAttackUnderwaterUnits: false
maxAttackRange: 220
shootDelay: 0
turretTurnSpeed: 3.2
[turret_1]
x: -2
y: 0
invisible: true
copyFrom: 2
linkDelayWithTurret: 2
attachedTo: 2
slave: true
warmup: 10
recoilOffset: -1.5
recoilOutTime: 3
recoilReturnTime: 10
[turret_2]
x: 0
y: -8
image: ROOT:/assets/oldsungodimg/T2/SuperCraft/ultra_tank_turret.png
canAttack: true
canAttackFlyingUnits: true
canAttackLandUnits: true
canAttackUnderwaterUnits: false
size: 12
shoot_sound: large_gun_fire2
shoot_sound_vol: 0.3
shoot_flame: small
shoot_light:#FFEECCCC
projectile: 1
delay: 70
limitingRange: 220
turnSpeedAcceleration: 1.75
recoilOffset: -1.5
recoilOutTime: 3
recoilReturnTime: 10
[projectile_1]
#
directDamage: 37
life: 200
speed: 6
largeHitEffect: true
areaDamage: 28
areaRadius: 28
targetSpeed: 6
frame: 3
drawType: 2
[movement]
movementType: OVER_CLIFF_WATER
moveSpeed: 1
moveAccelerationSpeed: 0.03
moveDecelerationSpeed: 0.03
targetHeight: 3.5
targetHeightDrift: 1.5
maxTurnSpeed: 1.8
turnAcceleration: 0.084
moveSlidingMode :false
[ai]
useAsTransport: true

View File

@ -10,7 +10,7 @@ displayText: LandFactoryT2
displayText_zh:陆军工厂T2
[canBuild_Rally]
name:setRally,scout,tank,c_artillery,hoverTank,目视者,幻光者,superHeavyHoverTank,Igniter,superHeavyTank,combatEngineer,c_mammothTank,heavyTank,missileTank,heavyHoverTank,plasmaTank,c_laserTank,hovercraft
name:setRally,scout,tank,c_artillery,hoverTank,目视者,幻光者,superHeavyHoverTank,Igniter,superHeavyTank,combatEngineer,c_mammothTank,heavyTank,missileTank,heavyHoverTank,plasmaTank,c_laserTank,hovercraft,attackLandingCraft
[graphics]
total_frames: 1