mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Balloon Alerts (#7877)
This commit is contained in:
@@ -242,13 +242,15 @@
|
||||
|
||||
if(istype(O, /obj/item/weapon/cell))
|
||||
if(cell)
|
||||
to_chat(user, "The drill already has a cell installed.")
|
||||
// to_chat(user, "The drill already has a cell installed.")
|
||||
balloon_alert(user, "The drill already has a cell installed.") // CHOMPEdit - Changed to balloon alert
|
||||
else
|
||||
user.drop_item()
|
||||
O.forceMove(src)
|
||||
cell = O
|
||||
component_parts += O
|
||||
to_chat(user, "You install \the [O].")
|
||||
// to_chat(user, "You install \the [O].")
|
||||
balloon_alert(user, "You install \the [O]") // CHOMPEdit - Changed to balloon alert
|
||||
return
|
||||
..()
|
||||
|
||||
@@ -257,13 +259,15 @@
|
||||
RefreshParts()
|
||||
|
||||
if (panel_open && cell && user.Adjacent(src))
|
||||
to_chat(user, "You take out \the [cell].")
|
||||
// to_chat(user, "You take out \the [cell].")
|
||||
balloon_alert(user, "You take out \the [cell]") // CHOMPEdit - Changed to balloon alert
|
||||
user.put_in_hands(cell)
|
||||
component_parts -= cell
|
||||
cell = null
|
||||
return
|
||||
else if(need_player_check)
|
||||
to_chat(user, "You hit the manual override and reset the drill's error checking.")
|
||||
// to_chat(user, "You hit the manual override and reset the drill's error checking.")
|
||||
balloon_alert(user, "Manual override hit, the drill's error checking resets.") // CHOMPEdit - Changed to balloon alert
|
||||
need_player_check = 0
|
||||
if(anchored)
|
||||
get_resource_field()
|
||||
@@ -405,9 +409,11 @@
|
||||
B.stored_ore[ore] += ore_amount // Add the ore to the machine.
|
||||
stored_ore[ore] = 0 // Set the value of the ore in the satchel to 0.
|
||||
current_capacity = 0 // Set the amount of ore in the drill to 0.
|
||||
to_chat(usr, "<span class='notice'>You unload the drill's storage cache into the ore box.</span>")
|
||||
// to_chat(usr, "<span class='notice'>You unload the drill's storage cache into the ore box.</span>")
|
||||
balloon_alert(usr, "You onload the drill's storage cache into the ore box.") // CHOMPEdit - Changed to balloon alert
|
||||
else
|
||||
to_chat(usr, "<span class='notice'>You must move an ore box up to the drill before you can unload it.</span>")
|
||||
// to_chat(usr, "<span class='notice'>You must move an ore box up to the drill before you can unload it.</span>")
|
||||
balloon_alert(usr, "Move an ore box to the droll before unloading it.") // CHOMPEdit - Changed to balloon alert
|
||||
|
||||
|
||||
/obj/machinery/mining/brace
|
||||
@@ -435,7 +441,8 @@
|
||||
|
||||
/obj/machinery/mining/brace/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(connected && connected.active)
|
||||
to_chat(user, "<span class='notice'>You can't work with the brace of a running drill!</span>")
|
||||
// to_chat(user, "<span class='notice'>You can't work with the brace of a running drill!</span>")
|
||||
balloon_alert(user, "You can't work with the brace of a running drill.") // CHOMPEdit - Changed to balloon alert
|
||||
return
|
||||
|
||||
if(default_deconstruction_screwdriver(user, W))
|
||||
@@ -448,11 +455,13 @@
|
||||
if(W.has_tool_quality(TOOL_WRENCH))
|
||||
|
||||
if(istype(get_turf(src), /turf/space))
|
||||
to_chat(user, "<span class='notice'>You can't anchor something to empty space. Idiot.</span>")
|
||||
// to_chat(user, "<span class='notice'>You can't anchor something to empty space. Idiot.</span>")
|
||||
balloon_alert(user, "You can't anchor something to empty space. Idiot.") // CHOMPEdit - Changed to balloon alert
|
||||
return
|
||||
|
||||
playsound(src, W.usesound, 100, 1)
|
||||
to_chat(user, "<span class='notice'>You [anchored ? "un" : ""]anchor the brace.</span>")
|
||||
// to_chat(user, "<span class='notice'>You [anchored ? "un" : ""]anchor the brace.</span>")
|
||||
balloon_alert(user, "[anchored ? "Una" : "A"]nchored the brace") // CHOMPEdit - Changed to balloon alert
|
||||
|
||||
anchored = !anchored
|
||||
if(anchored)
|
||||
@@ -500,7 +509,8 @@
|
||||
if(usr.stat) return
|
||||
|
||||
if (src.anchored)
|
||||
to_chat(usr, "It is anchored in place!")
|
||||
// to_chat(usr, "It is anchored in place!")
|
||||
balloon_alert(usr, "It is anchored in place!") // CHOMPEdit - Changed to balloon alert
|
||||
return 0
|
||||
|
||||
src.set_dir(turn(src.dir, 270))
|
||||
|
||||
Reference in New Issue
Block a user