[MIRROR] Swaps sleep() to use SECONDS define [MDB IGNORE] (#16973)

* Swaps sleep() to use SECONDS define

* merge conflicts and skyrat modules

Co-authored-by: san7890 <the@san7890.com>
Co-authored-by: tastyfish <crazychris32@gmail.com>
This commit is contained in:
SkyratBot
2022-10-20 01:43:24 +02:00
committed by GitHub
parent 59dc5c36b7
commit 612568daa0
99 changed files with 280 additions and 279 deletions
@@ -24,7 +24,7 @@
var/boss_id = 1
/datum/computer_file/program/arcade/proc/game_check(mob/user)
sleep(5)
sleep(0.5 SECONDS)
user?.mind?.adjust_experience(/datum/skill/gaming, 1)
if(boss_hp <= 0)
heads_up = "You have crushed [boss_name]! Rejoice!"
@@ -36,7 +36,7 @@
ticket_count += 1
user?.mind?.adjust_experience(/datum/skill/gaming, 50)
usr.won_game()
sleep(10)
sleep(1 SECONDS)
else if(player_hp <= 0 || player_mp <= 0)
heads_up = "You have been defeated... how will the station survive?"
playsound(computer.loc, 'sound/arcade/lose.ogg', 50)
@@ -46,7 +46,7 @@
computer.update_appearance()
user?.mind?.adjust_experience(/datum/skill/gaming, 10)
usr.lost_game()
sleep(10)
sleep(1 SECONDS)
/datum/computer_file/program/arcade/proc/enemy_check(mob/user)
var/boss_attackamt = 0 //Spam protection from boss attacks as well.
@@ -114,7 +114,7 @@
heads_up = "You attack for [attackamt] damage."
playsound(computer.loc, 'sound/arcade/hit.ogg', 50, TRUE)
boss_hp -= attackamt
sleep(10)
sleep(1 SECONDS)
game_check()
enemy_check()
return TRUE
@@ -132,7 +132,7 @@
playsound(computer.loc, 'sound/arcade/heal.ogg', 50, TRUE)
player_hp += healamt
player_mp -= healcost
sleep(10)
sleep(1 SECONDS)
game_check()
enemy_check()
return TRUE
@@ -144,7 +144,7 @@
heads_up = "You regain [rechargeamt] magic power."
playsound(computer.loc, 'sound/arcade/mana.ogg', 50, TRUE)
player_mp += rechargeamt
sleep(10)
sleep(1 SECONDS)
game_check()
enemy_check()
return TRUE