From 0807c89343480b15c7b63a0e864782179eb28ef5 Mon Sep 17 00:00:00 2001 From: "Emil A. Overbeck" Date: Sat, 18 Jul 2026 02:40:25 +0200 Subject: More Forts assets --- src/game/data.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/data.cpp') diff --git a/src/game/data.cpp b/src/game/data.cpp index 54f7fdb..654cac6 100644 --- a/src/game/data.cpp +++ b/src/game/data.cpp @@ -37,6 +37,7 @@ MaterialDef read_material(const sol::table& m) { d.tension_only = m.get_or("tension_only", false); d.half_width = m.get_or("half_width", 0.15f); d.texture = m.get_or("texture", std::string("")); + d.texture_forts = m.get_or("texture_forts", std::string("")); sol::optional col = m["color"]; d.r = col ? col->get_or(1, 0.8f) : 0.8f; @@ -138,6 +139,8 @@ WeaponDef read_weapon(const sol::table& w) { d.energy_cost = w.get_or("energy_cost", 0.0f); d.texture = w.get_or("texture", std::string("")); d.projectile_texture = w.get_or("projectile_texture", std::string("")); + d.texture_forts = w.get_or("texture_forts", std::string("")); + d.projectile_texture_forts = w.get_or("projectile_texture_forts", std::string("")); return d; } } // namespace @@ -213,6 +216,7 @@ DeviceDef read_device(const sol::table& d) { v.cost_metal = d.get_or("cost_metal", 0.0f); v.cost_energy = d.get_or("cost_energy", 0.0f); v.texture = d.get_or("texture", std::string("")); + v.texture_forts = d.get_or("texture_forts", std::string("")); sol::optional col = d["color"]; v.r = col ? col->get_or(1, 0.8f) : 0.8f; v.g = col ? col->get_or(2, 0.8f) : 0.8f; -- cgit v1.3