Coin Machine v1 
            1700
                 
         
             | 
    
    
              ID:              556 
             Family ID:       
             Author:          Boekie 
             Rarity:          rare 
             Element:         iron 
             Attack Type:     Physical 
             Attack Range:    1200 
             Attack CD:       2.5 
             Damage:  2955-2955 
             Abil. Factor:  0.7 
             Status:          Approved 
     | 
    
    
    
         
                        Golden Influence
                    This tower adds a buff to a tower in 400 range that lasts 10 seconds. The buff increases bounty gain by 40%. Everytime this spell is cast you gain 5 gold. Level Bonus: +0.4 seconds duration +0.6% bounty gain  
                        Multiply Gold
                    This tower increases the gold income of the player by 5%.
                 | 
    
    
    
        Download
        
        
        
        
         Toggle Triggers Autocast 
                        
                            caster_art: 
                        
                            AUTOCAST_cooldown: 4
                        
                            AUTOCAST_numBuffsBeforeIdle: 3
                        
                            AUTOCAST_isExtended: false
                        
                            AUTOCAST_autocastType: AC_TYPE_OFFENSIVE_BUFF
                        
                            AUTOCAST_manacost: 20
                        
                            AUTOCAST_range: 400
                        
                            AUTOCAST_buffType: boekie_goldBuff
                        
                            AUTOCAST_targetSelf: true
                        
                            AUTOCAST_targetType: TARGET_TYPE_TOWERS
                        
                            target_art: Abilities\Spells\Items\ResourceItems\ResourceEffectTarget.mdl
                        
                            AUTOCAST_autoRange: 400
                        
                         
                    
                    
                        private function onAutocast takes Tower tower returns nothing
local integer level = tower.getLevel()
call boekie_goldBuff.applyCustomTimed(tower,Event.getTarget(),level*6,10+(level*0.4)) 
call tower.getOwner().giveGold( 5,tower.getUnit(), true, true) 
 
endfunction
                    
                Header    globals 
    //@export
   BuffType boekie_goldBuff 
   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 m = Modifier.create()  
   set boekie_goldBuff = BuffType.create( 0.0, 0.0, true )  
   call boekie_goldBuff.setBuffIcon( '@@0@@' )  
   call m.addModification( MOD_BOUNTY_RECEIVED, 0.40, 0.001)  
   call boekie_goldBuff.setBuffModifier( m ) 
   call boekie_goldBuff.setStackingGroup("boekie_goldBuff")
   endfunction 
                    
                On Tower Creation function onCreate takes Tower tower returns nothing
call tower.getOwner().modifyIncomeRate(0.05)
endfunction
                    
                On Tower Destruction function onDestruct takes Tower tower returns nothing
call tower.getOwner().modifyIncomeRate(-0.05)
endfunction
                    
                 | 
    
    
Description:
Latest Upload Comment: