[MIRROR] Removes fishing minimum duration check [MDB IGNORE] (#16147)

* Removes fishing minimum duration check (#69783)

* Removes fishing minimum duration check

Co-authored-by: AnturK <AnturK@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-11 16:12:16 +01:00
committed by GitHub
co-authored by AnturK
parent 3818285275
commit a9d201032e
-10
View File
@@ -4,8 +4,6 @@
#define BITING_PHASE 2
// UI minigame phase
#define MINIGAME_PHASE 3
// Shortest time the minigame can be won
#define MINIMUM_MINIGAME_DURATION 140
/datum/fishing_challenge
/// When the ui minigame phase started
@@ -114,13 +112,6 @@
UnregisterSignal(used_rod, COMSIG_ITEM_DROPPED)
if(phase == MINIGAME_PHASE)
used_rod.consume_bait()
if(win)
// validate timings to have at least basic abuse prevention, though it's kinda impossible task here
// 140 from minimum completion bar fill time
var/minimum_time = start_time + MINIMUM_MINIGAME_DURATION
if(world.time < minimum_time)
win = FALSE
stack_trace("Fishing minimum time check failed")
if(win)
if(reward_path != FISHING_DUD)
playsound(lure, 'sound/effects/bigsplash.ogg', 100)
@@ -212,4 +203,3 @@
#undef WAIT_PHASE
#undef BITING_PHASE
#undef MINIGAME_PHASE
#undef MINIMUM_MINIGAME_DURATION