Skip to content

Commit

Permalink
add: Vending machine falling hazard (#6256)
Browse files Browse the repository at this point in the history
* add: Vending machine falling hazard

* доработка

---------

Co-authored-by: Antoonij <[email protected]>
  • Loading branch information
BeebBeebBoob and Antoonij authored Dec 27, 2024
1 parent 6aa3c15 commit f0cb448
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/game/machinery/vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,14 @@
for(var/typepath in subtypesof(/datum/vendor_crit))
all_possible_crits[typepath] = new typepath()

AddElement( \
/datum/element/falling_hazard, \
damage = 80, \
hardhat_safety = FALSE, \
crushes = TRUE, \
impact_sound = 'sound/effects/vending_hit.ogg', \
)

update_icon(UPDATE_OVERLAYS)

/obj/machinery/vending/examine(mob/user)
Expand Down
Binary file added sound/effects/vending_hit.ogg
Binary file not shown.

0 comments on commit f0cb448

Please sign in to comment.