Skip to content
Snippets Groups Projects
Commit 9d79bbfd authored by Otowa Kotori's avatar Otowa Kotori
Browse files

give no_garroate a more indicative name

parent b8c73869
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -849,6 +849,7 @@ newEntity{ base = "BASE_KNIFE",
physcrit = 8,
dammod = {dex=0.55,str=0.35},
no_stealth_break = true,
no_garrote = true,
melee_project={[DamageType.RANDOM_SILENCE] = 10},
special_on_kill = {desc=_t"Enter stealth for 3 turns.", fct=function(combat, who, target)
who:setEffect(who.EFF_SILENT_STEALTH, 3, { power = 30 })
......
......@@ -130,7 +130,7 @@ newTalent{
end,
callbackOnMeleeAttack = function(self, t, target, hitted, crit, weapon, damtype, mult, dam)
local dam = t.getDamage(self,t)
if weapon.throwing_knives then return end
if weapon.no_garrote then return end
if target and not target.dead and self:isTalentActive(self.T_STEALTH) and not self:isTalentCoolingDown(t) and core.fov.distance(self.x, self.y, target.x, target.y) <= 1 then
self:startTalentCooldown(t)
-- check takes the place of normal melee hit chance
......
......@@ -34,7 +34,7 @@ local function knives(self)
physcrit = 0,
dammod = {dex=0.7, str=0.5},
melee_project = {},
throwing_knives = 1,
no_garrote = true,
special_on_crit = {fct=function(combat, who, target)
if not self:knowTalent(self.T_PRECISE_AIM) then return end
if not rng.percent(self:callTalent(self.T_PRECISE_AIM, "getChance")) then return end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment