summaryrefslogtreecommitdiff
path: root/src/game/decos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/decos.cpp')
-rw-r--r--src/game/decos.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/game/decos.cpp b/src/game/decos.cpp
index 53e9b88..eaa6c6b 100644
--- a/src/game/decos.cpp
+++ b/src/game/decos.cpp
@@ -70,6 +70,16 @@ static const struct {
&assets::deco.wart,
{-0.2f, +0.1f}, {+0.2f, +0.2f}, CF_DECOS,
{-0.2f, -0.2f}, {+0.2f, +0.2f}, 0.0
+ },
+ {
+ &assets::deco.crystal,
+ {-0.4f, -0.4f}, {+0.4f, +0.4f}, CF_SOLID,
+ {-0.4f, -0.4f}, {+0.4f, +0.4f}, 0.0
+ },
+ {
+ &assets::deco.crystal_broken,
+ {-0.4f, -0.4f}, {+0.4f, +0.4f}, CF_DECOS,
+ {-0.4f, -0.4f}, {+0.4f, +0.4f}, 0.0
}
};
@@ -105,9 +115,14 @@ void deco_t::damage(int points, unit_t *attacker)
type = DECO_SPIKE_BROKEN;
break;
+ case DECO_CRYSTAL:
+ type = DECO_CRYSTAL_BROKEN;
+ break;
+
case DECO_STONE_CRACKED:
case DECO_EYETHING_DEAD:
case DECO_SPIKE_BROKEN:
+ case DECO_CRYSTAL_BROKEN:
break;
default: