Swaps sleep() to use SECONDS define, changes some sleep(1) to sleep(1 TICKS) (#70452)

This commit is contained in:
san7890
2022-10-18 21:25:23 -07:00
committed by GitHub
parent bcb6cc1c45
commit 2878345ebb
94 changed files with 263 additions and 263 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