Skip to content

Commit

Permalink
Faster snow removal for bigger xenomorphs (#6002)
Browse files Browse the repository at this point in the history
# About the pull request

makes the snow removal dependant of xenomorph size, making it 1,5 (
lesser) to 4 times (big xenos) faster ( still takes a while even for the
largest xenos to remove deap snow)

# Explain why it's good for the game

removing snow is painful job that makes maps with snow unwanted, huge
xenomorphs should not have that hard time showeling some snow out of
their way, makes it fair with the flames removing snow PR

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
balance: greatly decreses snow removal time, now it depends on xenomorph
size
/:cl:

---------

Co-authored-by: vincibrv <[email protected]>
  • Loading branch information
cuberound and uuuuhuuuu authored Apr 6, 2024
1 parent 5be8f29 commit 9b9ab1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/game/turfs/auto_turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@

while(bleed_layer > 0)
xeno_attack_delay(M)
if(!do_after(M, 12, INTERRUPT_ALL, BUSY_ICON_FRIENDLY))
var/size = max(M.mob_size, 1)
if(!do_after(M, 12/size, INTERRUPT_ALL, BUSY_ICON_FRIENDLY))
return XENO_NO_DELAY_ACTION

if(!bleed_layer)
Expand Down
3 changes: 2 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/attack_alien.dm
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,8 @@

while(bleed_layer > 0)
xeno_attack_delay(M)
if(!do_after(M, 12, INTERRUPT_ALL, BUSY_ICON_FRIENDLY))
var/size = max(M.mob_size, 1)
if(!do_after(M, 12/size, INTERRUPT_ALL, BUSY_ICON_FRIENDLY))
return XENO_NO_DELAY_ACTION

if(!bleed_layer)
Expand Down

0 comments on commit 9b9ab1f

Please sign in to comment.