Skip to content

Commit

Permalink
nerfs window frames
Browse files Browse the repository at this point in the history
  • Loading branch information
private-tristan committed Dec 21, 2023
1 parent 72282fb commit 477c4c0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion code/__DEFINES/xeno.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/// Usually half a second's delay.
#define xeno_miss_delay(X) (X.next_move = world.time + ((10 + X.caste.attack_delay + X.attack_speed_modifier) * 0.5))

// Determines how xenos interact with walls, normal nothing, sharp can destroy normal walls and window frame, very sharp reinforced ones.
// Determines how xenos interact with walls. normal nothing, sharp can destroy normal walls, very sharp reinforced ones.
#define CLAW_TYPE_NORMAL 1
#define CLAW_TYPE_SHARP 2
#define CLAW_TYPE_VERY_SHARP 3
Expand Down
8 changes: 0 additions & 8 deletions code/game/objects/structures/window_frame.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,10 @@
. = ..()

/obj/structure/window_frame/attack_alien(mob/living/carbon/xenomorph/user)
if(!reinforced && user.claw_type >= CLAW_TYPE_SHARP)
user.animation_attack_on(src)
playsound(src, 'sound/effects/metalhit.ogg', 25, 1)
take_damage((max_health / XENO_HITS_TO_DESTROY_WINDOW_FRAME) + 1)
return XENO_ATTACK_ACTION
else if (reinforced && user.claw_type >= CLAW_TYPE_SHARP)
user.animation_attack_on(src)
playsound(src, 'sound/effects/metalhit.ogg', 25, 1)
take_damage((max_health / XENO_HITS_TO_DESTROY_R_WINDOW_FRAME) + 1)
return XENO_ATTACK_ACTION

. = ..()

/obj/structure/window_frame/bullet_act(obj/projectile/P)
bullet_ping(P)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
if(isobj(O))
I = O

if(istype(I, /obj/structure/window_frame))
var/obj/structure/window_frame/WF = I
if(WF.reinforced && acid_type != /obj/effect/xenomorph/acid/strong)
to_chat(src, SPAN_WARNING("This [O.name] is too tough to be melted by our weak acid."))
return

wait_time = I.get_applying_acid_time()
if(wait_time == -1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@
if(isobj(affected_atom))
object = affected_atom

if(istype(object, /obj/structure/window_frame))
var/obj/structure/window_frame/window_frame = object
if(window_frame.reinforced && acid_type != /obj/effect/xenomorph/acid/strong)
to_chat(src, SPAN_WARNING("This [object.name] is too tough to be melted by our weak acid."))
return

wait_time = object.get_applying_acid_time()
if(wait_time == -1)
to_chat(src, SPAN_WARNING("We cannot dissolve [object]."))
Expand Down

0 comments on commit 477c4c0

Please sign in to comment.