Makes lightbulbs destructible (#2955)

* Renames WindowBreak soundCollection to GlassBreak

* Implements destructible lightbulbs
moved the parent to the top as well

* Fixes the old `glassbreak` soundCollection, renames it

* Deletes the windows.yml version of glassbreak

* Fixes the sound for bulbs being thrown

* Removes name from abstract lightbulb

* Implements IDestroyAct for lightbulbs

* Implements onBreak for lightbulbs

* Lights get damaged by getting hit and throwing

* Lights now have an intermediate 'broken' state before destruction
This commit is contained in:
ZeWaka
2021-01-08 18:06:36 -07:00
committed by GitHub
parent 76d2729722
commit 75c4ed6a09
5 changed files with 48 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
- type: soundCollection
id: glassbreak
id: GlassBreak
files:
- /Audio/Effects/glassbreak1.ogg
- /Audio/Effects/glassbreak2.ogg
- /Audio/Effects/glassbreak3.ogg
- /Audio/Effects/glass_break1.ogg
- /Audio/Effects/glass_break2.ogg
- /Audio/Effects/glass_break3.ogg