mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Breakable objects: cameras, wall-mounted lanterns, beakers, and flashlights (#32184)
* Generalize breakability to obj. Standardize health and maxHealth for objs. Make flashlights, cameras, beakers, and wall-mounted lanterns breakable. * Moved breakable.dm. * Fix metaclub beepsky's maxhealth to maxHealth. * Attempted to fix named argument error. * Attempt to fix take_damage() derived proc named argument error. * Attempt to fixed named argument error. * Fragments can be obj not just item. * Remove debug. * . * Fixed conflicting proc definitions. * Attempt to fix runtime. * Partly dissolve existing implementations of object health into general framework. * Declare parent args in take_damage() proc overrides. * Typo fix. * Comment change. * Change destroy to qdel. * Update breakable.dm Check for null teeth. * Teeth check. * . * Gum check.
This commit is contained in:
@@ -737,7 +737,7 @@
|
||||
level = LEVEL_BELOW_FLOOR // underfloor only
|
||||
var/dpdir = 0 // bitmask of pipe directions
|
||||
dir = 0 // dir will contain dominant direction for junction pipes
|
||||
var/health = 10 // health points 0-10
|
||||
health = 10 // health points 0-10
|
||||
layer = DISPOSALS_PIPE_LAYER
|
||||
plane = ABOVE_TURF_PLANE //Set above turf for mapping preview only, supposed to be ABOVE_PLATING_PLANE, handled in New()
|
||||
var/base_icon_state // initial icon state on map
|
||||
|
||||
Reference in New Issue
Block a user