mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Buffs the uplink thermal safe drill (#21312)
* commit stuff for safety * making sure this shit saves * I am commiting every 5 frames now, sorry. I lost 25 frames as the file got corrupted * 45 frames * 51 total frames now * 55 * 65 * 70 frames * 75 * 80 frames almost there * Behold, a useful uplink item. * removes debug message * Apply suggestions from code review Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --------- Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
This commit is contained in:
@@ -547,6 +547,43 @@
|
||||
else
|
||||
to_chat(owner, "<span class='cultitalic'>[pick(un_hopeful_messages)]</span>")
|
||||
|
||||
/datum/status_effect/drill_payback
|
||||
duration = -1
|
||||
status_type = STATUS_EFFECT_UNIQUE
|
||||
alert_type = null
|
||||
var/drilled_successfully = FALSE
|
||||
var/times_warned = 0
|
||||
var/obj/structure/safe/drilled
|
||||
|
||||
/datum/status_effect/drill_payback/on_creation(mob/living/new_owner, obj/structure/safe/S)
|
||||
drilled = S
|
||||
return ..()
|
||||
|
||||
/datum/status_effect/drill_payback/on_apply()
|
||||
owner.overlay_fullscreen("payback", /obj/screen/fullscreen/payback, 0)
|
||||
addtimer(CALLBACK(src, PROC_REF(payback_phase_2)), 2.7 SECONDS)
|
||||
return TRUE
|
||||
|
||||
/datum/status_effect/drill_payback/proc/payback_phase_2()
|
||||
owner.clear_fullscreen("payback")
|
||||
owner.overlay_fullscreen("payback", /obj/screen/fullscreen/payback, 1)
|
||||
|
||||
/datum/status_effect/drill_payback/tick() //They are not staying down. This will be a fight.
|
||||
if(!drilled_successfully && (get_dist(owner, drilled) >= 9)) //We don't want someone drilling the safe at arivals then raiding bridge with the buff
|
||||
to_chat(owner, "<span class='userdanger'>Get back to the safe, they are going to get the drill!</span>")
|
||||
times_warned++
|
||||
if(times_warned >= 6)
|
||||
owner.remove_status_effect(STATUS_EFFECT_DRILL_PAYBACK)
|
||||
return
|
||||
if(owner.stat != DEAD)
|
||||
owner.adjustBruteLoss(-3)
|
||||
owner.adjustFireLoss(-3)
|
||||
owner.adjustStaminaLoss(-25)
|
||||
|
||||
/datum/status_effect/drill_payback/on_remove()
|
||||
. = ..()
|
||||
owner.clear_fullscreen("payback")
|
||||
|
||||
/datum/status_effect/thrall_net
|
||||
id = "thrall_net"
|
||||
tick_interval = 2 SECONDS
|
||||
|
||||
@@ -410,10 +410,10 @@
|
||||
// DEVICES AND TOOLS
|
||||
|
||||
/datum/uplink_item/device_tools/diamond_drill
|
||||
name = "Diamond Tipped Thermal Safe Drill"
|
||||
desc = "A diamond tipped thermal drill with magnetic clamps for the purpose of quickly drilling hardened objects. Guaranteed 100% jam proof."
|
||||
name = "Amplifying Diamond Tipped Thermal Safe Drill"
|
||||
desc = "A diamond tipped thermal drill with magnetic clamps for the purpose of quickly drilling hardened objects. Comes with built in security detection and nanite system, to keep you up if security comes a-knocking."
|
||||
reference = "DDRL"
|
||||
item = /obj/item/thermal_drill/diamond_drill
|
||||
item = /obj/item/thermal_drill/diamond_drill/syndicate
|
||||
cost = 1
|
||||
uplinktypes = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
|
||||
|
||||
|
||||
@@ -373,10 +373,10 @@
|
||||
excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
|
||||
|
||||
/datum/uplink_item/device_tools/thermal_drill // Nukies get Diamond Tipped Thermal Safe Drill instead
|
||||
name = "Thermal Safe Drill"
|
||||
desc = "A tungsten carbide thermal drill with magnetic clamps for the purpose of drilling hardened objects. Guaranteed 100% jam proof."
|
||||
name = "Amplifying Thermal Safe Drill"
|
||||
desc = "A tungsten carbide thermal drill with magnetic clamps for the purpose of drilling hardened objects. Comes with built in security detection and nanite system, to keep you up if security comes a-knocking."
|
||||
reference = "DRL"
|
||||
item = /obj/item/thermal_drill
|
||||
item = /obj/item/thermal_drill/syndicate
|
||||
cost = 1
|
||||
excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user