mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user