Skip to content

Commit

Permalink
Final Bug Fixes
Browse files Browse the repository at this point in the history
Same Spoiler Warning as Before
  • Loading branch information
NamesAreHard6600 committed Apr 1, 2024
1 parent 9f3b9ad commit 3c9e0f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions scripts/enemies/haste.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end
-- eggman
local options = mod_loader.currentModContent[mod.id].options
local date = os.date("*t")
local is_april_first = (date["month"] == 4 and date["day"] == 1) or (options.DNT_FoolEnabled and options.DNT_FoolEnabled.enabled)
local is_april_first = (date["month"] == 4 and date["day"] == 1) or (options.DNT_FoolEnabled and options.DNT_FoolEnabled.value)

-------------
-- Icons --
Expand Down Expand Up @@ -119,18 +119,18 @@ DNT_Haste_Passive_Tip = DNT_Haste_Passive:new{}

function DNT_Haste_Passive_Tip:GetSkillEffect(p1,p2)
local ret = SkillEffect()

Board:Ping(Point(1,0),GL_Color(0,255,0))
Board:GetPawn(Point(1,0)):AddMoveBonus(2)

if is_april_first then
ret:AddMove(Board:GetPath(Point(1,0), Point(2,1), PATH_GROUND), FULL_DELAY)
else
ret:AddMove(Board:GetPath(Point(1,0), Point(3,3), PATH_GROUND), FULL_DELAY)
end

ret:AddDelay(1)

return ret
end

Expand Down
3 changes: 1 addition & 2 deletions scripts/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ local function init(self)
local date = os.date("*t")
local is_april_first = date["month"] == 4 and date["day"] == 1

if (options.DNT_FoolEnabled and options.DNT_FoolEnabled.enabled) or is_april_first then
if (options.DNT_FoolEnabled and options.DNT_FoolEnabled.value) or is_april_first then
require(self.scriptPath.."fool/init")
end
end
Expand Down Expand Up @@ -139,7 +139,6 @@ local function metadata()
values = {true, true, false},
strings = {"Spoiler Content Ahead", "Turn on Fool", "Turn off Fool"},
tooltips = {"You've been spoiled. April Fools!", "Turn on the April Fools Content (requires restart)", "Turn off the April Fools Content (requires restart)"},
value = "Spoiler Content Ahead",
}
)

Expand Down

0 comments on commit 3c9e0f6

Please sign in to comment.