mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
Attack Chain Migration: Screwdriver (#27563)
* screwing * revert test_tiny and config.toml * forgot the power variant switch * eyestabbing --------- Co-authored-by: Toastical <toastical@toaster.com>
This commit is contained in:
@@ -23,9 +23,12 @@
|
||||
tool_behaviour = TOOL_SCREWDRIVER
|
||||
var/random_color = TRUE //if the screwdriver uses random coloring
|
||||
|
||||
new_attack_chain = TRUE
|
||||
|
||||
/obj/item/screwdriver/Initialize(mapload)
|
||||
. = ..()
|
||||
AddComponent(/datum/component/surgery_initiator/robo)
|
||||
RegisterSignal(src, COMSIG_ATTACK, PROC_REF(on_attack))
|
||||
|
||||
/obj/item/screwdriver/nuke
|
||||
name = "screwdriver"
|
||||
@@ -50,14 +53,15 @@
|
||||
if(prob(75))
|
||||
src.pixel_y = rand(0, 16)
|
||||
|
||||
/obj/item/screwdriver/attack__legacy__attackchain(mob/living/carbon/M, mob/living/carbon/user)
|
||||
if(!istype(M) || user.a_intent == INTENT_HELP)
|
||||
return ..()
|
||||
/obj/item/screwdriver/proc/on_attack(datum/source, mob/living/carbon/target, mob/living/user)
|
||||
if(!istype(target) || user.a_intent == INTENT_HELP)
|
||||
return
|
||||
if(user.zone_selected != "eyes" && user.zone_selected != "head")
|
||||
return ..()
|
||||
return
|
||||
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(50))
|
||||
M = user
|
||||
return eyestab(M,user)
|
||||
target = user
|
||||
eyestab(target, user)
|
||||
return COMPONENT_SKIP_ATTACK
|
||||
|
||||
/obj/item/screwdriver/brass
|
||||
name = "brass screwdriver"
|
||||
@@ -118,7 +122,10 @@
|
||||
user.visible_message("<span class='suicide'>[user] is putting [src] to [user.p_their()] temple. It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
||||
return BRUTELOSS
|
||||
|
||||
/obj/item/screwdriver/power/attack_self__legacy__attackchain(mob/user)
|
||||
/obj/item/screwdriver/power/activate_self(mob/user)
|
||||
if(..())
|
||||
return
|
||||
|
||||
playsound(get_turf(user), 'sound/items/change_drill.ogg', 50, 1)
|
||||
var/obj/item/wrench/power/b_drill = new /obj/item/wrench/power
|
||||
to_chat(user, "<span class='notice'>You attach the bolt driver bit to [src].</span>")
|
||||
|
||||
Reference in New Issue
Block a user