Skip to content

Commit

Permalink
Add Ashfall to Dialog Result Box Context
Browse files Browse the repository at this point in the history
Add Interop.hasTea, checks player inventory for a specific tea type
Add hot/cold shader
  • Loading branch information
jhaakma committed Jul 23, 2024
1 parent e61135c commit 9ae543a
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 194 deletions.
19 changes: 19 additions & 0 deletions Data Files/MWSE/mods/mer/ashfall/effects/shader.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
local common = require("mer.ashfall.common.common")

local shader

---@return mgeShaderHandle | { temperature: number }
local function getShader()
shader = mgeShadersConfig.load{ name = "ashfall"}
return shader
end

event.register("load", function()
local shader = getShader()
shader.enabled = true
end)

event.register("Ashfall:UpdateHud", function()
local shader = getShader()
shader.temperature = common.data.temp
end)
Loading

0 comments on commit 9ae543a

Please sign in to comment.
  翻译: