Files
Alphas00 7604d9a008 Fatfang changes
The Nibble mutation now allows you to bite yourself. The fangs no longer disappear after use, making drawing them out again needed, but remain in the hand. After an attack with them, you'll go into a 5 seconds melee cooldown.
Internal change for admin memery, chem and amount injected can be changed as they are now tied to vars inside the mutation
2024-09-09 18:18:49 +02:00

64 lines
2.9 KiB
Plaintext

/datum/mutation/human/fatfang
name = "The Nibble"
desc = "A rare mutation that grows a pair of fangs in the user's mouth that inject a chemical that develops the target's adipose tissue."
quality = POSITIVE
text_gain_indication = "<span class='notice'>You feel something growing in your mouth!</span>"
text_lose_indication = "<span class='notice'>You feel your fangs shrink away.</span>"
difficulty = 8
power = /obj/effect/proc_holder/spell/targeted/touch/fatfang
instability = 10
energy_coeff = 1
power_coeff = 1
///Which chem is added (lipo default) and how much?
var/chem_to_add = /datum/reagent/consumable/lipoifier
var/chem_amount = 5
/obj/effect/proc_holder/spell/targeted/touch/fatfang
name = "The Nibble"
desc = "Draw out fangs that inject fattening venom"
drawmessage = "You draw out your fangs."
dropmessage = "You retract your fangs."
hand_path = /obj/item/melee/touch_attack/fatfang
action_icon = 'icons/mob/actions/bloodsucker.dmi'
action_icon_state = "power_feed"
charge_max = 50
clothes_req = FALSE
/obj/item/melee/touch_attack/fatfang
name = "\improper fattening fangs"
desc = "Fangs armed with a venom most ample."
catchphrase = null
icon = 'icons/mob/actions/bloodsucker.dmi'
icon_state = "power_feed"
var/starttime = 0
/obj/item/melee/touch_attack/fatfang/afterattack(atom/target, mob/living/carbon/user, proximity)
if(!proximity || !iscarbon(target))
return FALSE
if(!target || !user.dna.get_mutation(FATFANG).chem_to_add || !user.dna.get_mutation(FATFANG).chem_amount)
return FALSE
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(user.dna.get_mutation(FATFANG).chem_to_add, (user.dna.get_mutation(FATFANG).chem_amount * 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(user.dna.get_mutation(FATFANG).chem_to_add, user.dna.get_mutation(FATFANG).chem_amount * GET_MUTATION_POWER(user.dna.get_mutation(FATFANG)))
user.changeNext_move(50)
/obj/item/dnainjector/antifang
name = "\improper DNA injector (Anti-The Nibble)"
desc = "By the power of sugar, their fangs shall fall."
remove_mutations = list(FATFANG)
/obj/item/dnainjector/fatfang
name = "\improper DNA injector (The Nibble)"
desc = "Give 'em just a teeny tiny bite."
add_mutations = list(FATFANG)