Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions code/game/objects/items/implants/implant_honor.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/obj/item/implant/honor
name = "honor implant"
desc = "For the honorable."
activated = 0

/obj/item/implant/honor/implant(mob/living/target, mob/user, silent = FALSE, force = FALSE) //Copied and adjusted from mindshields
if(..())
if(!target.mind)
ADD_TRAIT(target, TRAIT_NOGUNS, "implant")
return TRUE
if(!silent)
to_chat(target, span_notice("You feel that the use of guns would bring you shame. You no longer think that you can hold the trigger."))
ADD_TRAIT(target, TRAIT_NOGUNS, "implant")
return TRUE

/obj/item/implant/honor/removed(mob/target, silent = FALSE, special = 0)
if(..())
if(isliving(target))
var/mob/living/L = target
REMOVE_TRAIT(L, TRAIT_NOGUNS, "implant")
if(target.stat != DEAD && !silent)
to_chat(target, span_boldnotice("Your mind no longer sees ranged weaponry as dishonorable. You can now bear the thought of pulling the trigger."))
return TRUE

/obj/item/implanter/honor
name = "implanter (honor)"
imp_type = /obj/item/implant/honor

/obj/item/implantcase/honor
name = "implant case - 'Honor'"
desc = "A glass case containing a honorable implant for those who seek to not use guns."
imp_type = /obj/item/implant/honor
19 changes: 18 additions & 1 deletion code/modules/ninja/energy_katana.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,25 @@
playsound(user, 'sound/weapons/blade1.ogg', 50, 1)
target.emag_act(user)

/obj/item/energy_katana/pickup(mob/living/user)
/obj/item/energy_katana/pickup(mob/living/carbon/human/user)
. = ..()
if(!is_ninja(user)) //stolen directly from the bloody bastard sword
if(HAS_TRAIT (user, TRAIT_SHOCKIMMUNE))
to_chat(user, span_warning("[src] attempts to shock you."))
user.electrocute_act(15,src)
return
if(user.gloves)
if(!user.gloves.siemens_coefficient)
to_chat(user, span_warning("[src] attempts to shock you."))
user.electrocute_act(15,src)
return
else
to_chat(user, span_userdanger("[src] shocks you!"))
user.emote("scream")
user.electrocute_act(15,src)
user.dropItemToGround(src, TRUE)
user.Paralyze(50)
return
jaunt.Grant(user, src)
user.update_icons()
playsound(src, 'sound/items/unsheath.ogg', 25, 1)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/ninja/outfit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
r_pocket = /obj/item/tank/internals/emergency_oxygen
internals_slot = SLOT_R_STORE
belt = /obj/item/energy_katana
implants = list(/obj/item/implant/explosive)
implants = list(/obj/item/implant/explosive, /obj/item/implant/honor)


/datum/outfit/ninja/post_equip(mob/living/carbon/human/H)
Expand Down
1 change: 1 addition & 0 deletions yogstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,7 @@
#include "code\game\objects\items\implants\implant_explosive.dm"
#include "code\game\objects\items\implants\implant_freedom.dm"
#include "code\game\objects\items\implants\implant_greytide.dm"
#include "code\game\objects\items\implants\implant_honor.dm"
#include "code\game\objects\items\implants\implant_krav_maga.dm"
#include "code\game\objects\items\implants\implant_mindshield.dm"
#include "code\game\objects\items\implants\implant_mindshieldtot.dm"
Expand Down