Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
660 B
Raw Blame
local testing = require('testing_util')
local core = require('openmw.core')
local util = require('openmw.util')

testing.registerGlobalTest('[regions] Should expose Bitter Coast', function()
    local record = core.regions.records['bitter coast region']
    testing.expect(record ~= nil, 'Bitter Coast Region to exist')
    testing.expectEqual(record.mapColor, util.color.hex('2227FF'))
    for id, probability in pairs(record.weatherProbabilities) do
        testing.expect(core.weather.records[id] ~= nil, 'weather ' .. id .. 'to exist')
    end
    testing.expectEqual(record.weatherProbabilities.cloudy, 60, 'cloudy weather to occur 60% of the time')
end)