Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pointcap = 5
- if target.rank == 1 then pointcap = 3 //critter
- elseif target.rank == 2 then pointcap = 4 //normal
- elseif target.rank == 3 then pointcap = 8 //elite
- elseif target.rank == 3.5 then pointcap = 25 //boss
- elseif target.rank == 4 then pointcap = 25 //boss
- end
- local rankmod = 1
- if target.rank == 1 then rankmod = 1
- elseif target.rank == 2 then rankmod = 1
- elseif target.rank == 3 then rankmod = 1.5
- elseif target.rank == 3.5 then rankmod = 2
- elseif target.rank == 4 then rankmod = 2
- end
- local tameskill = self:combatMindpower() * ( 1 + 0.1 * self:getTalentLevel(self:getTalentFromId(self.T_ELITE_BEASTMASTERY)))
- tameskill = (tameskill * tameskill)
- game.logPlayer(self, "Debug: Tameskill: "..tameskill)
- local animalwill = (target:combatMindpower()*0.8 + target:combatPhysicalpower()*0.4 + target:combatSpellpower()*0.4) * rankmod
- if(target.type == "dragon")then animalwill = (animalwill * 1.5) end
- if(target.level > self.level) then animalwill = animalwill * (1 + 0.05 * (target.level - self.level)) end
- animalwill = (animalwill * animalwill)
- game.logPlayer(self, "Debug: Animalwill: "..animalwill)
- if (rng.range(1, animalwill) < rng.range(1, tameskill)) then
- target:setEffect(self.EFF_SUPPRESSED, 4, {power=2})
- game.logPlayer(self, "#{bold}#You successfully further supress the animal!#{normal}#")
- else
- game.logPlayer(self, "#{bold}#The animal resists your tame attempt!#{normal}#")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement