| 3936 | } |
| 3937 | |
| 3938 | int |
| 3939 | lspo_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 | |
| 3957 | static const struct { |
| 3958 | const char *name; |
nothing calls this directly
no test coverage detected