mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-27 23:16:19 +01:00
Reapply "Merge branch 'master' into trash-eat-Mk2"
This reverts commit d638582401.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
power = /obj/effect/proc_holder/spell/targeted/touch/fatfang
|
||||
instability = 10
|
||||
energy_coeff = 1
|
||||
power_coeff = 1
|
||||
|
||||
/obj/effect/proc_holder/spell/targeted/touch/fatfang
|
||||
name = "The Nibble"
|
||||
@@ -28,7 +29,8 @@
|
||||
icon_state = "power_feed"
|
||||
///How much weight is added?
|
||||
var/chem_to_add = 5
|
||||
///What verb is used for the spell?
|
||||
|
||||
var/starttime = 0
|
||||
|
||||
/obj/item/melee/touch_attack/fatfang/afterattack(atom/target, mob/living/carbon/user, proximity)
|
||||
if(!proximity || !iscarbon(target) || target == user)
|
||||
@@ -36,10 +38,18 @@
|
||||
|
||||
if(!target || !chem_to_add)
|
||||
return FALSE
|
||||
|
||||
target.reagents.add_reagent(/datum/reagent/consumable/lipoifier, chem_to_add)
|
||||
|
||||
target.visible_message("<span class='danger'>[user] nibbles [target]!</span>","<span class='userdanger'>[user] nibbles you!</span>")
|
||||
if(target == user.pulling && ishuman(user.pulling))
|
||||
starttime = world.time
|
||||
user.dna.get_mutation(FATFANG).power.charge_max = 600 * GET_MUTATION_ENERGY(user.dna.get_mutation(FATFANG))
|
||||
while(starttime + 300 > world.time && in_range(user, target))
|
||||
if(do_mob(user, target, 10, 0, 1))
|
||||
target.reagents.add_reagent(/datum/reagent/consumable/lipoifier, (chem_to_add * GET_MUTATION_POWER(user.dna.get_mutation(FATFANG))/2))
|
||||
target.visible_message("<span class='danger'>[user] pumps some venom in [target]!</span>","<span class='userdanger'>[user] pumps some venom in you!</span>")
|
||||
else
|
||||
user.dna.get_mutation(FATFANG).power.charge_max = 50 * GET_MUTATION_ENERGY(user.dna.get_mutation(FATFANG))
|
||||
target.reagents.add_reagent(/datum/reagent/consumable/lipoifier, chem_to_add * GET_MUTATION_POWER(user.dna.get_mutation(FATFANG)))
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/item/dnainjector/antifang
|
||||
|
||||
Reference in New Issue
Block a user