Thief Apprentice v1
65
ID:
108
Family ID:
Author:
i_mOck_death
Rarity:
uncommon
Element:
darkness
Attack Type:
Physical
Attack Range:
800
Attack CD:
1.5
Damage:
103-103
Status:
Approved

Description:

Trained in the shadows, the thief is an expert in finding gold.
Specials:
-10% dmg to undead (+0.4%/lvl)
+0.5% bounty collected/lvl
+5% item chance (+0.2%/lvl)
+5% item quality (+0.2%/lvl)
Steal
Every time the thief damages a creep there is a 10% chance he steals 0.3 gold.

Level Bonus:
+0.012 gold
+0.4% chance
Download

Toggle Triggers

Header

    globals
        //@export
        ProjectileType mOck_steal
        //@export
        MultiboardValues mOck_thief_multiboard
    endglobals
    function steal takes Projectile p,Unit creep returns nothing
          local Tower tower= p.getCaster()
          local real goldGranted = (tower.userInt+(tower.getLevel()*tower.userInt*.04))/10
          call tower.getOwner().giveGold(goldGranted,tower.getUnit(),false,true)
          set tower.userReal = tower.userReal + goldGranted
    endfunction
        
        
    //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
          set mOck_steal = ProjectileType.createInterpolate("Abilities\\Weapons\\WardenMissile\\WardenMissile.mdl",1000)
          call mOck_steal.setEventOnInterpolationFinished(ProjectileTargetEvent.steal)
          
          set mOck_thief_multiboard = MultiboardValues.create(1)
          call mOck_thief_multiboard.setKey(0,"Gold Stolen")
    endfunction

On Damage

ONDAMAGE_chance: .1 ONDAMAGE_chanceLevelAdd: 0.004
function onDamage takes Tower tower returns nothing
    call Projectile.createLinearInterpolationFromUnitToUnit(mOck_steal,tower,0,0,Event.getTarget(),tower,0,true)
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
    set tower.userReal = 0.0 
    set tower.userInt = 3
    call AddUnitAnimationProperties(tower.getUnit(), "stand alternate", false)
endfunction

On Tower Details

function onTowerDetails takes Tower tower returns MultiboardValues
    call mOck_thief_multiboard.setValue(0,I2S(R2I(tower.userReal)))
    return mOck_thief_multiboard
endfunction
Thief Novice v1
195
ID:
109
Family ID:
Author:
i_mOck_death
Rarity:
uncommon
Element:
darkness
Attack Type:
Physical
Attack Range:
800
Attack CD:
1.5
Damage:
305-305
Status:
Approved

Description:

Trained in the shadows, the thief is an expert in finding gold.
Specials:
-10% dmg to undead (+0.4%/lvl)
+0.75% bounty collected/lvl
+6% item chance (+0.24%/lvl)
+6% item quality (+0.24%/lvl)
Steal
Every time the thief damages a creep there is a 10% chance he steals 0.9 gold.

Level Bonus:
+0.036 gold
+0.4% chance
Download

Toggle Triggers

Header

    globals
        //@import
        ProjectileType mOck_steal
        //@import
        MultiboardValues mOck_thief_multiboard
    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
    endfunction

On Damage

ONDAMAGE_chance: .1 ONDAMAGE_chanceLevelAdd: 0.004
function onDamage takes Tower tower returns nothing
    call Projectile.createLinearInterpolationFromUnitToUnit(mOck_steal,tower,0,0,Event.getTarget(),tower,0,true)
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
    local Tower super = Event.getPrecedingTower()
    call AddUnitAnimationProperties(tower.getUnit(), "stand alternate", false)
    if super.getFamily() == tower.getFamily() then
        set tower.userReal = super.userReal
    else
        set tower.userReal = 0.0 
    endif
    set tower.userInt = 9
endfunction

On Tower Details

function onTowerDetails takes Tower tower returns MultiboardValues
    call mOck_thief_multiboard.setValue(0,I2S(R2I(tower.userReal)))
    return mOck_thief_multiboard
endfunction
Thief v1
585
ID:
110
Family ID:
Author:
i_mOck_death
Rarity:
uncommon
Element:
darkness
Attack Type:
Physical
Attack Range:
800
Attack CD:
1.5
Damage:
904-904
Status:
Approved

Description:

Trained in the shadows, the thief is an expert in finding gold.
Specials:
-10% dmg to undead (+0.4%/lvl)
+1% bounty collected/lvl
+7% item chance (+0.28%/lvl)
+7% item quality (+0.28%/lvl)
Steal
Every time the thief damages a creep there is a 10% chance he steals 2.7 gold.

Level Bonus:
+0.108 gold
+0.4% chance
Download

Toggle Triggers

Header

    globals
        //@import
        ProjectileType mOck_steal
        //@import
        MultiboardValues mOck_thief_multiboard
    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
    endfunction

On Damage

ONDAMAGE_chance: .1 ONDAMAGE_chanceLevelAdd: 0.004
function onDamage takes Tower tower returns nothing
    call Projectile.createLinearInterpolationFromUnitToUnit(mOck_steal,tower,0,0,Event.getTarget(),tower,0,true)
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
    local Tower super = Event.getPrecedingTower()
    call AddUnitAnimationProperties(tower.getUnit(), "stand alternate", false)
    if super.getFamily() == tower.getFamily() then
        set tower.userReal = super.userReal
    else
        set tower.userReal = 0.0 
    endif
    set tower.userInt = 27
endfunction

On Tower Details

function onTowerDetails takes Tower tower returns MultiboardValues
    call mOck_thief_multiboard.setValue(0,I2S(R2I(tower.userReal)))
    return mOck_thief_multiboard
endfunction
Thief Master v1
1300
ID:
111
Family ID:
Author:
i_mOck_death
Rarity:
uncommon
Element:
darkness
Attack Type:
Physical
Attack Range:
800
Attack CD:
1.5
Damage:
1987-1987
Status:
Approved

Description:

Trained in the shadows, the thief is an expert in finding gold.
Specials:
-10% dmg to undead (+0.4%/lvl)
+1.25% bounty collected/lvl
+8% item chance (+0.32%/lvl)
+8% item quality (+0.32%/lvl)
Steal
Every time the thief damages a creep there is a 10% chance he steals 6 gold.

Level Bonus:
+0.24 gold
+0.4% chance
Download

Toggle Triggers

Header

    globals
        //@import
        ProjectileType mOck_steal
        //@import
        MultiboardValues mOck_thief_multiboard
    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
    endfunction

On Damage

ONDAMAGE_chance: .1 ONDAMAGE_chanceLevelAdd: 0.004
function onDamage takes Tower tower returns nothing
    call Projectile.createLinearInterpolationFromUnitToUnit(mOck_steal,tower,0,0,Event.getTarget(),tower,0,true)
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
 local Tower super = Event.getPrecedingTower()
 call AddUnitAnimationProperties(tower.getUnit(), "stand alternate", false)
    if super.getFamily() == tower.getFamily() then
        set tower.userReal = super.userReal
    else
        set tower.userReal = 0.0 
    endif
    set tower.userInt = 60
endfunction

On Tower Details

function onTowerDetails takes Tower tower returns MultiboardValues
    call mOck_thief_multiboard.setValue(0,I2S(R2I(tower.userReal)))
    return mOck_thief_multiboard
endfunction
Thief Grand Master v1
2600
ID:
113
Family ID:
Author:
i_mOck_death
Rarity:
uncommon
Element:
darkness
Attack Type:
Physical
Attack Range:
800
Attack CD:
1.5
Damage:
3930-3930
Status:
Approved

Description:

Trained in the shadows, the thief is an expert in finding gold.
Specials:
-10% dmg to undead (+0.4%/lvl)
+1.5% bounty collected/lvl
+9% item chance (+0.36%/lvl)
+9% item quality (+0.36%/lvl)
Steal
Every time the thief damages a creep there is a 10% chance he steals 12 gold.

Level Bonus:
+0.48 gold
+0.4% chance
Download

Toggle Triggers

Header

    globals
        //@import
        ProjectileType mOck_steal
        //@import
        MultiboardValues mOck_thief_multiboard
    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
    endfunction

On Damage

ONDAMAGE_chance: .1 ONDAMAGE_chanceLevelAdd: 0.004
function onDamage takes Tower tower returns nothing
call Projectile.createLinearInterpolationFromUnitToUnit(mOck_steal,tower,0,0,Event.getTarget(),tower,0,true)
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
    local Tower super = Event.getPrecedingTower()
    call AddUnitAnimationProperties(tower.getUnit(), "stand alternate", false)
    if super.getFamily() == tower.getFamily() then
        set tower.userReal = super.userReal
    else
        set tower.userReal = 0.0 
    endif
    set tower.userInt = 120
endfunction

On Tower Details

function onTowerDetails takes Tower tower returns MultiboardValues
    call mOck_thief_multiboard.setValue(0,I2S(R2I(tower.userReal)))
    return mOck_thief_multiboard
endfunction