Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goliath Gupdate #2432

Merged
merged 4 commits into from
Dec 8, 2023
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
17 changes: 14 additions & 3 deletions code/game/objects/items/handcuffs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
desc = "Use this to keep prisoners in line."
gender = PLURAL
icon = 'icons/obj/items_and_weapons.dmi'
icon_state = "handcuff"
icon_state = "legcuff"
lefthand_file = 'icons/mob/inhands/equipment/security_lefthand.dmi'
righthand_file = 'icons/mob/inhands/equipment/security_righthand.dmi'
flags_1 = CONDUCT_1
Expand All @@ -235,6 +235,17 @@
var/armed = 0
var/trap_damage = 20

/obj/item/restraints/legcuffs/beartrap/goliath
name = "tentacle mass"
desc = "Ew."
icon_state = "goliathtrap"
flags_1 = NONE
slowdown = 10
breakouttime = 5 SECONDS
item_flags = DROPDEL
armed = 1
trap_damage = 0

/obj/item/restraints/legcuffs/beartrap/Initialize()
. = ..()
update_appearance()
Expand Down Expand Up @@ -294,8 +305,8 @@
snap = FALSE
if(snap)
close_trap()
L.visible_message("<span class='danger'>[L] triggers \the [src].</span>", \
"<span class='userdanger'>You trigger \the [src]!</span>")
L.visible_message("<span class='danger'>[L] gets caught by \the [src]!</span>", \
"<span class='userdanger'>You get caught by \the [src]!</span>")
L.apply_damage(trap_damage, BRUTE, def_zone)

/obj/item/restraints/legcuffs/beartrap/energy
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/carbon_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
var/silent = 0 ///Can't talk. Value goes down every life proc. NOTE TO FUTURE CODERS: DO NOT INITIALIZE NUMERICAL VARS AS NULL OR I WILL MURDER YOU.
var/dreaming = 0 ///How many dream images we have left to send

var/obj/item/handcuffed = null///Whether or not the mob is handcuffed
var/obj/item/handcuffed = null ///Whether or not the mob is handcuffed
var/obj/item/legcuffed = null ///Same as handcuffs but for legs. Bear traps use this.

var/disgust = 0
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ There are several things that need to be remembered:
remove_overlay(LEGCUFF_LAYER)
clear_alert("legcuffed")
if(legcuffed)
overlays_standing[LEGCUFF_LAYER] = mutable_appearance('icons/mob/mob.dmi', "legcuff1", -LEGCUFF_LAYER)
overlays_standing[LEGCUFF_LAYER] = mutable_appearance('icons/mob/mob.dmi', legcuffed.icon_state, -LEGCUFF_LAYER)
apply_overlay(LEGCUFF_LAYER)
throw_alert("legcuffed", /atom/movable/screen/alert/restrained/legcuffed, new_master = src.legcuffed)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
for(var/mob/living/L in loc)
if((!QDELETED(spawner) && spawner.faction_check_mob(L)) || L.stat == DEAD)
continue
visible_message("<span class='danger'>[src] grabs hold of [L]!</span>")
visible_message("<span class='danger'>[src] wraps a mass of tentacles around [L]!</span>")
on_hit(L)
latched = TRUE
if(!latched)
Expand All @@ -337,10 +337,11 @@
deltimer(timerid)
timerid = addtimer(CALLBACK(src, PROC_REF(retract)), 10, TIMER_STOPPABLE)

/obj/effect/temp_visual/goliath_tentacle/proc/on_hit(mob/living/L)
L.Stun(100)
L.adjustBruteLoss(rand(10,15))

/obj/effect/temp_visual/goliath_tentacle/proc/on_hit(mob/living/target)
target.apply_damage(rand(20,30), BRUTE, pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG))
if(iscarbon(target))
var/obj/item/restraints/legcuffs/beartrap/goliath/B = new /obj/item/restraints/legcuffs/beartrap/goliath(get_turf(target))
B.on_entered(src, target)

/obj/effect/temp_visual/goliath_tentacle/proc/retract()
icon_state = "marker"
Expand Down
Binary file modified icons/mob/mob.dmi
Binary file not shown.
Binary file modified icons/obj/items_and_weapons.dmi
Binary file not shown.