From 52bef1d730e52d243691add8f08ba20104e5a0eb Mon Sep 17 00:00:00 2001 From: Blim Date: Wed, 1 Jan 2025 22:28:10 +0000 Subject: [PATCH] Made Tough weapon Teth (#2661) --- .../ego_weapons/ranged/ego_bullets/teth.dm | 7 +++ .../ego_weapons/ranged/ego_bullets/zayin.dm | 6 +- ModularTegustation/ego_weapons/ranged/teth.dm | 61 +++++++++++++++++++ .../ego_weapons/ranged/zayin.dm | 60 ------------------ code/datums/abnormality/_ego_datum/teth.dm | 6 ++ code/datums/abnormality/_ego_datum/zayin.dm | 5 -- 6 files changed, 75 insertions(+), 70 deletions(-) diff --git a/ModularTegustation/ego_weapons/ranged/ego_bullets/teth.dm b/ModularTegustation/ego_weapons/ranged/ego_bullets/teth.dm index deb6645d266f..9f5362acbaf0 100644 --- a/ModularTegustation/ego_weapons/ranged/ego_bullets/teth.dm +++ b/ModularTegustation/ego_weapons/ranged/ego_bullets/teth.dm @@ -136,3 +136,10 @@ speed = 0.45 range = 14 hit_nondense_targets = TRUE + +/obj/projectile/ego_bullet/ego_tough + name = "9mm tough bullet" + damage = 16 // Being bald is the optimal gameplay choice! + damage_type = WHITE_DAMAGE + + diff --git a/ModularTegustation/ego_weapons/ranged/ego_bullets/zayin.dm b/ModularTegustation/ego_weapons/ranged/ego_bullets/zayin.dm index aeb6632933c3..07b5c138f9ae 100644 --- a/ModularTegustation/ego_weapons/ranged/ego_bullets/zayin.dm +++ b/ModularTegustation/ego_weapons/ranged/ego_bullets/zayin.dm @@ -1,8 +1,3 @@ -/obj/projectile/ego_bullet/ego_tough - name = "9mm tough bullet" - damage = 12 // Being bald is the optimal gameplay choice! - damage_type = WHITE_DAMAGE - /obj/projectile/ego_bullet/ego_soda name = "9mm soda bullet" damage = 11 @@ -57,3 +52,4 @@ name = "oceanic" damage = 11 //Worse than tough lol damage_type = WHITE_DAMAGE + diff --git a/ModularTegustation/ego_weapons/ranged/teth.dm b/ModularTegustation/ego_weapons/ranged/teth.dm index fb979c5db079..54df1e9dfdaf 100644 --- a/ModularTegustation/ego_weapons/ranged/teth.dm +++ b/ModularTegustation/ego_weapons/ranged/teth.dm @@ -210,3 +210,64 @@ weapon_weight = WEAPON_HEAVY autofire = 0.6 SECONDS fire_sound = 'sound/items/handling/paper_pickup.ogg' //Mostly just using this for a lack of a better "card-flicking" noise + +/obj/item/ego_weapon/ranged/pistol/tough + name = "tough pistol" + desc = "A glock reminiscent of a certain detective who fought evil for 25 years, losing hair as time went by." + special = "Use this weapon in your hand when wearing matching armor to turn others nearby bald." + icon_state = "bald" + inhand_icon_state = "bald" + damtype = WHITE_DAMAGE + projectile_path = /obj/projectile/ego_bullet/ego_tough + burst_size = 1 + fire_delay = 10 + fire_sound = 'sound/weapons/gun/pistol/shot.ogg' + vary_fire_sound = FALSE + fire_sound_volume = 70 + var/pulse_cooldown + var/pulse_cooldown_time = 60 SECONDS + var/blast_delay = 3 SECONDS + +/obj/item/ego_weapon/ranged/pistol/tough/attack_self(mob/user) + if(!ishuman(user)) + return + var/mob/living/carbon/human/H = user + if(pulse_cooldown > world.time) + to_chat(H, "You have used this ability too recently!") + return + var/obj/item/clothing/suit/armor/ego_gear/zayin/tough/T = H.get_item_by_slot(ITEM_SLOT_OCLOTHING) + if(!istype(T)) + to_chat(H, "You must have the corrosponding armor equipped to use this ability!") + return + to_chat(H, "You use the [src] to create a field of baldness!") + H.playsound_local(get_turf(H), 'sound/abnormalities/wrath_servant/hermit_magic.ogg', 25, 0) + BaldBlast(user) + pulse_cooldown = world.time + pulse_cooldown_time + +/obj/item/ego_weapon/ranged/pistol/tough/proc/BaldBlast(mob/living/carbon/human/user ,list/baldtargets = list(), burst_chain) + for(var/mob/living/carbon/human/L in livinginview(5, user)) //not even the dead are safe. + if(!ishuman(L)) + continue + if(HAS_TRAIT(L, TRAIT_BALD)) + continue + if(L in baldtargets) + to_chat(L, "You feel awesome!") + ADD_TRAIT(L, TRAIT_BALD, "ABNORMALITY_BALD") + L.hairstyle = "Bald" + L.update_hair() + continue + + baldtargets += L + to_chat(L, "You have been hit by the baldy-bald psychological attack. If a non-bald person is reading this, they will be granted the privilege of going bald at an extremely rapid pace if they stay within range of [user]!") + if(!burst_chain) + addtimer(CALLBACK(src, PROC_REF(BaldBlast), user, baldtargets, TRUE), blast_delay) + +/obj/item/ego_weapon/ranged/pistol/tough/SpecialEgoCheck(mob/living/carbon/human/H) + if(HAS_TRAIT(H, TRAIT_BALD)) + return TRUE + to_chat(H, "Only the ones with dedication to clean hairstyle can use [src]!") + return FALSE + +/obj/item/ego_weapon/ranged/pistol/tough/SpecialGearRequirements() + return "\nThe user must have clean hairstyle." + diff --git a/ModularTegustation/ego_weapons/ranged/zayin.dm b/ModularTegustation/ego_weapons/ranged/zayin.dm index 2a7a1669b91e..62a47345ea53 100644 --- a/ModularTegustation/ego_weapons/ranged/zayin.dm +++ b/ModularTegustation/ego_weapons/ranged/zayin.dm @@ -1,64 +1,4 @@ // All zayin pistols use the default 6 force for ego_gun pistols -/obj/item/ego_weapon/ranged/pistol/tough - name = "tough pistol" - desc = "A glock reminiscent of a certain detective who fought evil for 25 years, losing hair as time went by." - special = "Use this weapon in your hand when wearing matching armor to turn others nearby bald." - icon_state = "bald" - inhand_icon_state = "bald" - damtype = WHITE_DAMAGE - projectile_path = /obj/projectile/ego_bullet/ego_tough - burst_size = 1 - fire_delay = 10 - fire_sound = 'sound/weapons/gun/pistol/shot.ogg' - vary_fire_sound = FALSE - fire_sound_volume = 70 - var/pulse_cooldown - var/pulse_cooldown_time = 60 SECONDS - var/blast_delay = 3 SECONDS - -/obj/item/ego_weapon/ranged/pistol/tough/attack_self(mob/user) - if(!ishuman(user)) - return - var/mob/living/carbon/human/H = user - if(pulse_cooldown > world.time) - to_chat(H, "You have used this ability too recently!") - return - var/obj/item/clothing/suit/armor/ego_gear/zayin/tough/T = H.get_item_by_slot(ITEM_SLOT_OCLOTHING) - if(!istype(T)) - to_chat(H, "You must have the corrosponding armor equipped to use this ability!") - return - to_chat(H, "You use the [src] to create a field of baldness!") - H.playsound_local(get_turf(H), 'sound/abnormalities/wrath_servant/hermit_magic.ogg', 25, 0) - BaldBlast(user) - pulse_cooldown = world.time + pulse_cooldown_time - -/obj/item/ego_weapon/ranged/pistol/tough/proc/BaldBlast(mob/living/carbon/human/user ,list/baldtargets = list(), burst_chain) - for(var/mob/living/carbon/human/L in livinginview(5, user)) //not even the dead are safe. - if(!ishuman(L)) - continue - if(HAS_TRAIT(L, TRAIT_BALD)) - continue - if(L in baldtargets) - to_chat(L, "You feel awesome!") - ADD_TRAIT(L, TRAIT_BALD, "ABNORMALITY_BALD") - L.hairstyle = "Bald" - L.update_hair() - continue - - baldtargets += L - to_chat(L, "You have been hit by the baldy-bald psychological attack. If a non-bald person is reading this, they will be granted the privilege of going bald at an extremely rapid pace if they stay within range of [user]!") - if(!burst_chain) - addtimer(CALLBACK(src, PROC_REF(BaldBlast), user, baldtargets, TRUE), blast_delay) - -/obj/item/ego_weapon/ranged/pistol/tough/SpecialEgoCheck(mob/living/carbon/human/H) - if(HAS_TRAIT(H, TRAIT_BALD)) - return TRUE - to_chat(H, "Only the ones with dedication to clean hairstyle can use [src]!") - return FALSE - -/obj/item/ego_weapon/ranged/pistol/tough/SpecialGearRequirements() - return "\nThe user must have clean hairstyle." - /obj/item/ego_weapon/ranged/pistol/soda name = "soda pistol" desc = "A pistol painted in a refreshing purple. Whenever this EGO is used, a faint scent of grapes wafts through the air." diff --git a/code/datums/abnormality/_ego_datum/teth.dm b/code/datums/abnormality/_ego_datum/teth.dm index 0989aab7cf0d..2b7c35c20ad7 100644 --- a/code/datums/abnormality/_ego_datum/teth.dm +++ b/code/datums/abnormality/_ego_datum/teth.dm @@ -356,3 +356,9 @@ /datum/ego_datum/armor/clayman item_path = /obj/item/clothing/suit/armor/ego_gear/teth/clayman cost = 20 + +// You are bald - Tough +/datum/ego_datum/weapon/tough + item_path = /obj/item/ego_weapon/ranged/pistol/tough + cost = 20 + diff --git a/code/datums/abnormality/_ego_datum/zayin.dm b/code/datums/abnormality/_ego_datum/zayin.dm index cfcf377a40af..2dcff9320d87 100644 --- a/code/datums/abnormality/_ego_datum/zayin.dm +++ b/code/datums/abnormality/_ego_datum/zayin.dm @@ -7,11 +7,6 @@ item_path = /obj/item/clothing/suit/armor/ego_gear/zayin/penitence cost = 12 -// You are bald - Tough -/datum/ego_datum/weapon/tough - item_path = /obj/item/ego_weapon/ranged/pistol/tough - cost = 12 - /datum/ego_datum/armor/tough item_path = /obj/item/clothing/suit/armor/ego_gear/zayin/tough cost = 12