mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-18 17:07:37 -04:00
Formatting
This commit is contained in:
parent
1b5450557e
commit
50ebf304c7
@ -49,11 +49,10 @@ namespace MWLua
|
||||
= sol::readonly_property([](const ESM::Region& rec) { return LuaUtil::serializeRefId(rec.mSleepList); });
|
||||
|
||||
regionT["weatherProbabilities"] = sol::readonly_property([lua = lua.lua_state()](const ESM::Region& rec) {
|
||||
|
||||
sol::table res(lua, sol::create);
|
||||
for (size_t i = 0; i < rec.mData.mProbabilities.size(); ++i)
|
||||
{
|
||||
const MWWorld::Weather* weather = MWBase::Environment::get().getWorld()->getWeather(i);
|
||||
const MWWorld::Weather* weather = MWBase::Environment::get().getWorld()->getWeather(i);
|
||||
res[weather->mId.serializeText()] = rec.mData.mProbabilities[i];
|
||||
}
|
||||
return res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user