From 97ae857c38f7a4b580d67a3ee675d2ca531d9517 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Fri, 7 Mar 2014 17:42:49 +0400 Subject: [PATCH] Always shatter glass items within bins thrown by a catapult. The glass materials have impact strength copied from compression strength, so the items had 1/5 chance to survive without damage. Since glass is infinite, it makes sense to make it single-use. --- plugins/siege-engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/siege-engine.cpp b/plugins/siege-engine.cpp index a65b6a21c..37ddc0603 100644 --- a/plugins/siege-engine.cpp +++ b/plugins/siege-engine.cpp @@ -275,7 +275,7 @@ static bool apply_impact_damage(df::item *item, int minv, int maxv) // Instant fracture? int fracture = strength.fracture[type]; - if (fracture <= power) + if (fracture <= power || info.material->flags.is_set(material_flags::IS_GLASS)) { item->setWear(3); return false;