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

Function add_materials

plugins/prospector.cpp:417–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void add_materials(EmbarkTileLayout &tile, matdata &data, float amount, int min_z, int max_z)
418{
419 for (int z = min_z; z <= max_z; z++)
420 data.add(z, map_find(tile.penalty, z, 1) * amount);
421}
422
423bool estimate_materials(color_ostream &out, EmbarkTileLayout &tile, MatMap &layerMats, MatMap &veinMats)
424{

Callers 1

estimate_materialsFunction · 0.85

Calls 2

map_findFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected