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:
Hinaichigo
2022-03-15 10:15:58 -04:00
committed by GitHub
parent 939588ed53
commit 8ea93dd579
73 changed files with 578 additions and 628 deletions

View File

@@ -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