Skip to content

Commit

Permalink
clicking holes, aren't ya?
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Oct 30, 2023
1 parent 9ec8e2d commit b5211aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions code/game/objects/effects/acid_hole.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@
qdel(src) //no wall?! then cease existence...
return

if(!use_wall_hole(user))
if(user.mob_size >= MOB_SIZE_BIG)
expand_hole(user)
return XENO_NO_DELAY_ACTION
expand_hole(user)
return XENO_NO_DELAY_ACTION

/obj/effect/acid_hole/proc/expand_hole(mob/living/carbon/xenomorph/user)
if(user.action_busy || user.lying)
return

playsound(src, "pry", 25, 1)
xeno_attack_delay(user)
user.freeze()
if(do_after(user, 60, INTERRUPT_ALL, BUSY_ICON_GENERIC) && !QDELETED(src) && holed_wall && !user.lying && istype(holed_wall))
holed_wall.take_damage(rand(2000,3500))
user.emote("roar")
user.unfreeze()

/obj/effect/acid_hole/proc/use_wall_hole(mob/user)

Expand Down
5 changes: 4 additions & 1 deletion code/game/turfs/walls/walls.dm
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@
acided_hole.expand_hole(user) //This proc applies the attack delay itself.
return XENO_NO_DELAY_ACTION

if(!hull && user.claw_type >= claws_minimum && !acided_hole)
if(!hull && user.claw_type >= claws_minimum)
if(acided_hole)
acided_hole.attack_alien(user)
return XENO_NO_DELAY_ACTION
user.animation_attack_on(src)
playsound(src, 'sound/effects/metalhit.ogg', 25, 1)
if(damage >= (damage_cap - (damage_cap / XENO_HITS_TO_DESTROY_WALL)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@
return 0

return FIRE_PENALTY

// HOLES
/obj/effect/acid_hole/xeno_ai_act(mob/living/carbon/xenomorph/X)
X.do_click(src, "", list())
return TRUE

0 comments on commit b5211aa

Please sign in to comment.