Fixed worldgen to only use tiles without collision in filling rooms, then a couple more changes to lighting so that if the light is <= 1 it just assumes the base light strength which ends up looking nicer and more like the kind of light I want.

This commit is contained in:
Zed A. Shaw 2024-12-29 04:53:59 -05:00
parent 59bbae0af0
commit 28d19d80a2
8 changed files with 36 additions and 29 deletions

View file

@ -17,17 +17,6 @@ std::wstring Config::wstring(const std::string key) {
return $converter.from_bytes(str_val);
}
std::vector<std::string> Config::keys() {
// BUG: I mean, c'mon seriously this is how?
std::vector<std::string> keys;
for(const auto& el : $config.items()) {
keys.push_back(el.key());
}
return keys;
}
std::wstring Config::wstring(const std::string main_key, const std::string sub_key) {
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> $converter;
const std::string& str_val = $config[main_key][sub_key];