MCPcopy Create free account
hub / github.com/DFHack/dfhack / get_engine_range

Function get_engine_range

plugins/siege-engine.cpp:185–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185static std::pair<int, int> get_engine_range(df::building_siegeenginest *bld, float quality)
186{
187 if (bld->type == siegeengine_type::Ballista)
188 return std::make_pair(1, 200 + int(10 * quality));
189 else
190 return std::make_pair(30 - int(quality), 100 + int(5 * quality));
191}
192
193static void orient_engine(df::building_siegeenginest *bld, df::coord target)
194{

Callers 1

find_engineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected