Skip to content

Commit

Permalink
Can only acid
Browse files Browse the repository at this point in the history
  • Loading branch information
private-tristan committed Dec 21, 2023
1 parent 477c4c0 commit db6e165
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
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, very sharp reinforced ones.
// Determines how xenos interact with walls, normal nothing, sharp can destroy normal walls and window frame, very sharp reinforced ones.
#define CLAW_TYPE_NORMAL 1
#define CLAW_TYPE_SHARP 2
#define CLAW_TYPE_VERY_SHARP 3
Expand Down
8 changes: 8 additions & 0 deletions code/game/objects/structures/window_frame.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,18 @@
. = ..()

/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

0 comments on commit db6e165

Please sign in to comment.