Skip to content

Commit e1abcac

Browse files
Fantom-BalatrostephenkirkSleepyG11
authored
0.4.1 (#465)
* chore(release): bump version to 0.4.1~DEV * fixes (#462) * Update standard.lua WSOB Ruleset lets go --------- Co-authored-by: Stephen Kirk <me@thestephen.net> Co-authored-by: SleepyG11 <35398172+SleepyG11@users.noreply.github.com>
1 parent 27a0ffb commit e1abcac

3 files changed

Lines changed: 20 additions & 25 deletions

File tree

Multiplayer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"priority": 10000000,
1313
"badge_colour": "AC3232",
1414
"badge_text_colour": "FFFFFF",
15-
"version": "0.4.0",
15+
"version": "0.4.1~DEV",
1616
"dependencies": [
1717
"Steamodded (>=1.0.0~BETA-1221a)",
1818
"Lovely (>=0.8)",

layers/standard.lua

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
11
MP.Layer("standard", {
2-
multiplayer_content = true,
2+
multiplayer_content = false,
33
standard = true,
44
banned_silent = {
55
"j_hanging_chad",
6-
"j_ticket",
7-
"j_selzer",
8-
"j_turtle_bean",
96
"j_bloodstone",
10-
"c_ouija",
117
},
128
banned_consumables = {
139
"c_justice",
1410
},
1511
reworked_jokers = {
1612
"j_mp_hanging_chad",
17-
"j_mp_ticket",
18-
"j_mp_seltzer",
19-
"j_mp_turtle_bean",
2013
"j_mp_bloodstone",
2114
},
22-
reworked_consumables = {
23-
"c_mp_ouija_standard",
24-
},
2515
reworked_enhancements = {
2616
"m_glass",
2717
},

ui/game/timer.lua

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function MP.UI.cam_timer_opponent()
44
if not MP.LOBBY.config.timer then return false end
55
if MP.GAME.pvp_countdown_in_progress then return false end
6+
if MP.GAME.timer <= 0 then return false end
67
if MP.is_pvp_boss() and MP.is_layer_active("pvp_timer") then
78
if G.STATE == G.STATES.ROUND_EVAL or G.STATE == G.STATES.NEW_ROUND then return false end
89
if MP.INSANE_INT.greater_than(MP.GAME.score, MP.GAME.enemy.score) then return true end
@@ -194,7 +195,7 @@ SMODS.Gradient({
194195

195196
-- When you "timering" opponent, timer stops and you cannot see is button pressed
196197
-- So we need switch to real timer to make it flush
197-
local time_value = (MP.GAME.timer_started and G.TIMERS.REAL or -(MP.GAME.timer or 0))
198+
local time_value = MP.GAME.timer_started and G.TIMERS.REAL or -(MP.GAME.timer or 0)
198199
local timer = (time_value / speedup) % self.cycle
199200
local start_index = math.ceil(timer * #self.colours / self.cycle)
200201
if start_index == 0 then start_index = 1 end
@@ -225,7 +226,8 @@ SMODS.Gradient({
225226
if #self.colours < 2 or not MP.speedlatro_timer then return end
226227
local speedup = MP.current_ruleset().timer_speedup_multiplier or 1
227228

228-
local timer = MP.GAME.ready_blind and 0 or ((-(MP.speedlatro_timer.real or 0) / speedup) % self.cycle) + 0.5
229+
local timer_value = MP.GAME.ready_blind and 0 or -(MP.speedlatro_timer.real or 0)
230+
local timer = (timer_value / speedup) % self.cycle
229231
local start_index = math.ceil(timer * #self.colours / self.cycle)
230232
if start_index == 0 then start_index = 1 end
231233
local end_index = start_index == #self.colours and 1 or start_index + 1
@@ -363,17 +365,20 @@ function Game:update(dt)
363365

364366
if MP.GAME.timer == 0 then
365367
MP.GAME.timer_consumed = true
366-
if is_pvp_timer then
367-
-- PvP timer: end PvP immediately as a loss
368-
MP.ACTIONS.fail_pvp_timer()
369-
else
370-
-- Old, No-animations, Pressure timers: lose a live
371-
if MP.GAME.timers_forgiven < MP.LOBBY.config.timer_forgiveness then
372-
MP.GAME.timers_forgiven = MP.GAME.timers_forgiven + 1
373-
else
374-
MP.ACTIONS.fail_timer()
375-
end
376-
end
368+
-- PvP timer: end PvP immediately as a loss (only when timered by opponent)
369+
if is_pvp_timer then
370+
if MP.GAME.nemesis_timer_started then
371+
MP.ACTIONS.fail_pvp_timer()
372+
end
373+
-- Old, No-animations: lose a live when timered by opponent
374+
-- Pressure timers: lose a live regardless
375+
elseif (is_pressure_timer or MP.GAME.nemesis_timer_started) then
376+
if MP.GAME.timers_forgiven < MP.LOBBY.config.timer_forgiveness then
377+
MP.GAME.timers_forgiven = MP.GAME.timers_forgiven + 1
378+
else
379+
MP.ACTIONS.fail_timer()
380+
end
381+
end
377382
end
378383
end
379384

0 commit comments

Comments
 (0)