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

@@ -15,7 +15,7 @@
var/large = 1
var/pick_up_stuff = 1 // Pick up things that spawn at this location.
var/wall_mounted = 0 //never solid (You can always pass over it)
var/health = 100
health = 100
var/lastbang
var/storage_capacity = 30 //This is so that someone can't pack hundreds of items in a locker/crate
//then open it in a populated area to crash clients.