Files
vgstation13/code/_onclick
Hinaichigo b1be3a753d Basic framework for generic breakable items. (#32007)
* Basic framework for generic breakable items.

* Fixed comment.

* Fixed up a few things and generalized breakability to obj/item.

* .

* .

* .

* Fixed up the attack message generation for breakable items. Made items transfer their fingerprints, fibers, and bloodstains to their fragments when broken. Added capability to specify a list ofitems that bypass breaking an otherwise breakable item.

* Breaking via kicking with propulsion of fragments. Breaking upon ballistic impacts. Removed open-handed harm-intent breaking by humans.

* Adding breakability to kick_act().

* Specifying glanced attack text.

* Added general broken check to obj/item/throw_at() so that any time an item takes breaks apart from a blow that also propelled it, the fragments get propelled instead.

* Can specify multiples of a given fragment type via fragment_amounts.

* Items can be shot and broken by projectiles.

* Renamed defines.

* Projectiles will break impacted items and send them flying.

* Fixed projectile impact momentum transfer.

* The contents of containers will be dropped when the item is destroyed. Also fixed diagonal fragment propulsion by projectiles.

* Spilling reagents when an item breaks.

* Placeholder proc for any damage-related icon updates.

* Fixed conflict between container-smashing and container-insertion on harm intent.

* Breaking items by biting them.

* Sounds for when an item is hit.

* Breaking items when they are used to attack a mob.

* Unset default breakability values.

* Added extra check for breakability in break_item.

* Update breakable.dm

* Update breakable.dm

* Update breakable.dm

* Update breakable.dm

* Set health_item to health_item_max by default.

* Removed redundant reagent spilling.

* Melee target will be splashed with contained reagents when an item breaks on them.

* .

* .

* Update breakable.dm

Throw impact damage to an item takes into account the weight of its contents as well.

* Fixed up syntax in a few places.

* .

* Changed BREAKABLE_NOMOB to BREAKABLE_MOB

* Changed health_item to health, and health_item_max to maxHealth.

* Create breakable_defines.dm

removed extra newline

* Update breakable.dm

spelling fix

* Made take_damage() call try_break() by default, and other changes.

* Update storage.dm

Removed unneeded variable.
2022-03-07 13:38:17 +01:00
..
2022-02-18 21:45:57 +01:00
2022-01-31 18:18:06 -06:00
2021-10-11 11:56:44 -05:00
2022-01-21 10:08:07 +00:00