mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-27 01:51:50 +00:00
Fixes the handheld arcade game not working as intended (#49823)
* Fixes the handheld arcade game not working as intended * Removed misleading parameter from ui_act * Further fixes in light of build errors
This commit is contained in:
@@ -94,14 +94,14 @@
|
|||||||
data["BossID"] = "boss[boss_id].gif"
|
data["BossID"] = "boss[boss_id].gif"
|
||||||
return data
|
return data
|
||||||
|
|
||||||
/datum/computer_file/program/arcade/ui_act(action, list/params, mob/user)
|
/datum/computer_file/program/arcade/ui_act(action, list/params)
|
||||||
if(..())
|
if(..())
|
||||||
return TRUE
|
return TRUE
|
||||||
var/obj/item/computer_hardware/printer/printer
|
var/obj/item/computer_hardware/printer/printer
|
||||||
if(computer)
|
if(computer)
|
||||||
printer = computer.all_components[MC_PRINT]
|
printer = computer.all_components[MC_PRINT]
|
||||||
|
|
||||||
var/gamerSkillLevel = user.mind?.get_skill_level(/datum/skill/gaming)
|
var/gamerSkillLevel = usr.mind?.get_skill_level(/datum/skill/gaming)
|
||||||
var/gamerSkill = usr.mind?.get_skill_modifier(/datum/skill/gaming, SKILL_RANDS_MODIFIER)
|
var/gamerSkill = usr.mind?.get_skill_modifier(/datum/skill/gaming, SKILL_RANDS_MODIFIER)
|
||||||
switch(action)
|
switch(action)
|
||||||
if("Attack")
|
if("Attack")
|
||||||
@@ -157,11 +157,11 @@
|
|||||||
computer.visible_message("<span class='notice'>\The [computer] prints out paper.</span>")
|
computer.visible_message("<span class='notice'>\The [computer] prints out paper.</span>")
|
||||||
if(ticket_count >= 1)
|
if(ticket_count >= 1)
|
||||||
new /obj/item/stack/arcadeticket((get_turf(computer)), 1)
|
new /obj/item/stack/arcadeticket((get_turf(computer)), 1)
|
||||||
to_chat(user, "<span class='notice'>[src] dispenses a ticket!</span>")
|
to_chat(usr, "<span class='notice'>[src] dispenses a ticket!</span>")
|
||||||
ticket_count -= 1
|
ticket_count -= 1
|
||||||
printer.stored_paper -= 1
|
printer.stored_paper -= 1
|
||||||
else
|
else
|
||||||
to_chat(user, "<span class='notice'>You don't have any stored tickets!</span>")
|
to_chat(usr, "<span class='notice'>You don't have any stored tickets!</span>")
|
||||||
return TRUE
|
return TRUE
|
||||||
if("Start_Game")
|
if("Start_Game")
|
||||||
game_active = TRUE
|
game_active = TRUE
|
||||||
|
|||||||
Reference in New Issue
Block a user