Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [RngBuff1] => 250
            [MissileHoming] => 1
            [Upgrade] => Array
                (
                )

            [targs1] => ground,enemies
            [splashTargs1] => enemies
            [goldcost] => 300
            [weapsOn] => 1
            [Hfact1] => 0.4
            [dice1] => 1
            [Missilespeed] => 900
            [moveHeight] => 23.5
            [impactZ] => 15
            [file] => units\human\MortarTeam\MortarTeam.mdl
            [Harea1] => 150
            [atkType1] => siege
            [modelScale] => 0.25
            [weapTp1] => msplash
            [Missilearc] => 0.35
            [acquire] => 800
            [rangeN1] => 900
            [upgrades] => Array
                (
                )

            [cool1] => 1.7
            [Ubertip] => A small rowing boat with two seamen.
            [Farea1] => 25
            [abilList] => Array
                (
                )

            [Qarea1] => 250
            [launchZ] => 23.5
            [Name] => Rowing Boat
            [Missileart] => Abilities\Weapons\CannonTowerMissile\CannonTowerMissile.mdl
            [launchY] => 6.25
            [Art] => ReplaceableTextures\CommandButtons\BTNHumanDestroyer.blp
            [launchX] => 12.5
            [buildingShadow] => Array
                (
                )

            [unitSound] => MortarTeam
            [turnRate] => 0.5
            [Qfact1] => 0.1
            [sides1] => 1
            [auto] => Array
                (
                )

            [dmgplus1] => 433
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => Natac
            [element] => iron
            [authorDisplay] => Natac
            [alpha] => 255
            [balanceTip] => |cffFF0000Attacks GROUND only|r|n|cffCCFF00Splash attack:|n   |cffFFFF0025|r AoE: |cff00FF00100%|r damage|r|n   |cffFFFF00150|r AoE: |cffFFFF0040%|r damage|r|n   |cffFFFF00250|r AoE: |cffFF800010%|r damage|r
            [rarity] => uncommon
            [version] => 1.0
            [abil_factor] => 0.75
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 39.1491
                    [y] => 25.9769
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 3.7378
                    [file] => Doodads\LordaeronSummer\Terrain\StoneWall0\StoneWall02.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -41.0635
                    [y] => 23.8349
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 5.80793
                    [file] => Doodads\LordaeronSummer\Terrain\StoneWall0\StoneWall02.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 0.108587
                    [y] => 8.57515
                    [z] => 6.4
                    [scale] => 1
                    [rot] => 5.47702
                    [file] => Abilities\Spells\NightElf\MoonWell\MoonWellTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => -3.61127
                    [y] => 49.1658
                    [z] => 0
                    [scale] => 0.18
                    [rot] => 0.795365
                    [file] => Doodads\LordaeronSummer\Terrain\StoneWall135\StoneWall1354.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 40.287
                    [y] => -26.6059
                    [z] => 0
                    [scale] => 0.18
                    [rot] => 5.02014
                    [file] => Doodads\LordaeronSummer\Terrain\StoneWall135\StoneWall1354.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => 1.80704
                    [y] => -49.9868
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 4.71239
                    [file] => Doodads\LordaeronSummer\Terrain\StoneWall0\StoneWall02.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -41.4682
                    [y] => -21.6721
                    [z] => 0
                    [scale] => 0.18
                    [rot] => 2.90422
                    [file] => Doodads\LordaeronSummer\Terrain\StoneWall135\StoneWall1354.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => -0.952432
                    [y] => 6.15373
                    [z] => 19.2
                    [scale] => 0.4
                    [rot] => 4.69871
                    [file] => Doodads\Northrend\Water\Rowboat\Rowboat.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Tower Creation
                    [code] => 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
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Tower Details
                    [code] => // Show total gold, stolen by this tower pirates ability
    call   natac_pirates_MultiboardValue.setValue(0,R2S(tower.userReal)) 
    return natac_pirates_MultiboardValue
                    [values] => Array
                        (
                        )

                )

            [2] => Array
                (
                    [name] => Header
                    [code] => 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
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [3] => Array
                (
                    [name] => On Attack
                    [code] => 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)
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNOrcBattleStandard.blp
                            [visible] => true
                            [name] => Pirates
                            [short_explain] => Grants gold on attack.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => This tower plunders |cffFFFF800.3|r gold each attack.
                        )

                )

            [4] => Array
                (
                    [name] => Tower Aura
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNMGExchange.blp
                            [visible] => true
                            [AURA_auraEffect] => natac_treasureSeeker_Buff
                            [AURA_power] => 100
                            [long_explain] => Increases the bounty gain of towers in |cffFFFF80300|r range by |cffFFFF8010%|r.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.5%|r bounty
                            [AURA_level] => 100
                            [AURA_auraRange] => 300
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [AURA_levelAdd] => 5
                            [AURA_powerAdd] => 5
                            [name] => Treasure Seeker
                            [AURA_targetSelf] => true
                            [short_explain] => Increases the bounty gain of nearby towers.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Bufftip] => Treasure Seeker
                            [Buffubertip] => The bounty gain of this tower is increased.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNMGExchange.blp
                            [TargetArt] => Array
                                (
                                )

                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => natac_treasureSeeker_Buff
                )

            [1] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => MultiboardValues
                    [name] => natac_pirates_MultiboardValue
                )

        )

)