mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Better feedback
- Attempting to hack already hacked APC now correctly produces "You already control this APC" message.
This commit is contained in:
@@ -163,14 +163,13 @@
|
|||||||
|
|
||||||
command_announcement.Announce(fulltext)
|
command_announcement.Announce(fulltext)
|
||||||
|
|
||||||
// Proc: get_unhacked_apcs()
|
// Proc: get_all_apcs()
|
||||||
// Parameters: None
|
// Parameters: None
|
||||||
// Description: Returns a list of APCs that are not yet hacked.
|
// Description: Returns a list of all APCs
|
||||||
/proc/get_unhacked_apcs()
|
/proc/get_all_apcs()
|
||||||
var/list/H = list()
|
var/list/H = list()
|
||||||
for(var/obj/machinery/power/apc/A in machines)
|
for(var/obj/machinery/power/apc/A in machines)
|
||||||
if(!A.hacker)
|
H.Add(A)
|
||||||
H.Add(A)
|
|
||||||
return H
|
return H
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
// END RESEARCH DATUMS
|
// END RESEARCH DATUMS
|
||||||
// BEGIN ABILITY VERBS
|
// BEGIN ABILITY VERBS
|
||||||
|
|
||||||
/datum/game_mode/malfunction/verb/basic_encryption_hack(obj/machinery/power/apc/A as obj in get_unhacked_apcs())
|
/datum/game_mode/malfunction/verb/basic_encryption_hack(obj/machinery/power/apc/A as obj in get_all_apcs())
|
||||||
set category = "Software"
|
set category = "Software"
|
||||||
set name = "Basic Encryption Hack"
|
set name = "Basic Encryption Hack"
|
||||||
set desc = "10 CPU - Basic encryption hack that allows you to overtake APCs on the station."
|
set desc = "10 CPU - Basic encryption hack that allows you to overtake APCs on the station."
|
||||||
|
|||||||
Reference in New Issue
Block a user