Rowing Boat v1
300
|
ID: 608
Family ID:
Author: Natac
Rarity: uncommon
Element: iron
Attack Type: Physical
Attack Range: 900
Attack CD: 1.7
Damage: 434-434
Abil. Factor: 0.75
Status: Approved
|
Specials:
Attacks GROUND only Splash attack: 25 AoE: 100% damage 150 AoE: 40% damage 250 AoE: 10% damage
Pirates
This tower plunders 0.3 gold each attack.
Treasure Seeker
Increases the bounty gain of towers in 300 range by 10%. Level Bonus: +0.5% bounty |
Download
Toggle Triggers Header globals
//@export
BuffType natac_treasureSeeker_Buff
//@export
MultiboardValues natac_pirates_MultiboardValue
endglobals
//Do not remove or rename this function!
//Put your initialization tasks here, this function will be called on map init
private function init takes nothing returns nothing
local Modifier bountyMod = Modifier.create()
set natac_treasureSeeker_Buff = BuffType.createAuraEffectType(true)
call bountyMod.addModification(MOD_BOUNTY_RECEIVED, 0.0 , 0.001 ) // Set by aura
call natac_treasureSeeker_Buff.setBuffModifier(bountyMod)
call natac_treasureSeeker_Buff.setBuffIcon('@@0@@')
set natac_pirates_MultiboardValue = MultiboardValues.create(1)
call natac_pirates_MultiboardValue.setKey(0,"Gold Plundered")
endfunction
On Attack
ONATTACK_chance: 1.0
ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
local real goldGranted = 0.3// The gold, that will be granted to the player on this attack
set tower.userReal = tower.userReal + goldGranted // Set the statistics
call tower.getOwner().giveGold(goldGranted, tower.getUnit(), false, true)
endfunction
On Tower Creation function onCreate takes Tower tower returns nothing
local Tower parent = Event.getPrecedingTower()
if parent.getFamily() == parent.getFamily() then
set tower.userReal = parent.userReal
else
set tower.userReal = 0
endif // Total gold, earned by this towers pirates ability
endfunction
On Tower Details function onTowerDetails takes Tower tower returns MultiboardValues
// Show total gold, stolen by this tower pirates ability
call natac_pirates_MultiboardValue.setValue(0,R2S(tower.userReal))
return natac_pirates_MultiboardValue
endfunction
Tower Aura
AURA_auraEffect: natac_treasureSeeker_Buff
AURA_power: 100
AURA_level: 100
AURA_auraRange: 300
AURA_targetType: TARGET_TYPE_TOWERS
AURA_levelAdd: 5
AURA_powerAdd: 5
AURA_targetSelf: true
|
Description:
Latest Upload Comment: