MCPcopy Create free account
hub / github.com/NetHack/NetHack / lspo_mineralize

Function lspo_mineralize

src/sp_lev.c:3938–3955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3936}
3937
3938int
3939lspo_mineralize(lua_State *L)
3940{
3941 int gem_prob, gold_prob, kelp_moat, kelp_pool;
3942
3943 create_des_coder();
3944
3945 lcheck_param_table(L);
3946 /* -1 produces default mineralize behavior */
3947 gem_prob = get_table_int_opt(L, "gem_prob", -1);
3948 gold_prob = get_table_int_opt(L, "gold_prob", -1);
3949 kelp_moat = get_table_int_opt(L, "kelp_moat", -1);
3950 kelp_pool = get_table_int_opt(L, "kelp_pool", -1);
3951
3952 mineralize(kelp_pool, kelp_moat, gold_prob, gem_prob, TRUE);
3953
3954 return 0;
3955}
3956
3957static const struct {
3958 const char *name;

Callers

nothing calls this directly

Calls 4

create_des_coderFunction · 0.85
lcheck_param_tableFunction · 0.85
get_table_int_optFunction · 0.85
mineralizeFunction · 0.85

Tested by

no test coverage detected