Mecha Gamemode: Jockeys (#17148)

This commit is contained in:
Geeves
2023-10-18 16:49:44 +02:00
committed by GitHub
parent 665b1cd381
commit ebf0f3458f
22 changed files with 2013 additions and 2427 deletions
@@ -18,6 +18,7 @@
#define CHANNEL_NINJA "Ninja"
#define CHANNEL_BLUESPACE "Bluespace"
#define CHANNEL_BURGLAR "Burglar"
#define CHANNEL_JOCKEY "Jockey"
var/global/list/ALL_RADIO_CHANNELS = list(
CHANNEL_COMMON = TRUE,
@@ -37,5 +38,6 @@ var/global/list/ALL_RADIO_CHANNELS = list(
CHANNEL_MERCENARY = TRUE,
CHANNEL_NINJA = TRUE,
CHANNEL_BLUESPACE = TRUE,
CHANNEL_BURGLAR = TRUE
)
CHANNEL_BURGLAR = TRUE,
CHANNEL_JOCKEY = TRUE
)
@@ -63,6 +63,12 @@
origin_tech = list(TECH_ILLEGAL = 2)
syndie = TRUE
/obj/item/device/encryptionkey/jockey
icon_state = "cypherkey"
additional_channels = list(CHANNEL_JOCKEY = TRUE, CHANNEL_HAILING = TRUE)
origin_tech = list(TECH_ILLEGAL = 2)
syndie = TRUE
/obj/item/device/encryptionkey/ninja
icon_state = "cypherkey"
additional_channels = list(CHANNEL_NINJA = TRUE, CHANNEL_HAILING = TRUE)
@@ -679,6 +679,12 @@
syndie = TRUE
ks1type = /obj/item/device/encryptionkey/burglar
/obj/item/device/radio/headset/jockey
icon_state = "syn_headset"
origin_tech = list(TECH_ILLEGAL = 2)
syndie = TRUE
ks1type = /obj/item/device/encryptionkey/jockey
/obj/item/device/radio/headset/ninja
icon_state = "syn_headset"
origin_tech = list(TECH_ILLEGAL = 3)
+13 -9
View File
@@ -188,15 +188,15 @@ Then check if it's true, if true return. This will stop the normal menu appearin
// and if it's sanitized for html.
nanoui_data["exploit"]["nanoui_exploit_record"] = html_encode(L.exploit_record) // Change stuff into html
nanoui_data["exploit"]["nanoui_exploit_record"] = replacetext(nanoui_data["exploit"]["nanoui_exploit_record"], "\n", "<br>") // change line breaks into <br>
nanoui_data["exploit"]["name"] = html_encode(L.name)
nanoui_data["exploit"]["sex"] = html_encode(L.sex)
nanoui_data["exploit"]["age"] = html_encode(L.age)
nanoui_data["exploit"]["species"] = html_encode(L.species)
nanoui_data["exploit"]["rank"] = html_encode(L.rank)
nanoui_data["exploit"]["citizenship"] = html_encode(L.citizenship)
nanoui_data["exploit"]["employer"] = html_encode(L.employer)
nanoui_data["exploit"]["religion"] = html_encode(L.religion)
nanoui_data["exploit"]["fingerprint"] = html_encode(L.fingerprint)
nanoui_data["exploit"]["name"] = html_encode(L.name)
nanoui_data["exploit"]["sex"] = html_encode(L.sex)
nanoui_data["exploit"]["age"] = html_encode(L.age)
nanoui_data["exploit"]["species"] = html_encode(L.species)
nanoui_data["exploit"]["rank"] = html_encode(L.rank)
nanoui_data["exploit"]["citizenship"] = html_encode(L.citizenship)
nanoui_data["exploit"]["employer"] = html_encode(L.employer)
nanoui_data["exploit"]["religion"] = html_encode(L.religion)
nanoui_data["exploit"]["fingerprint"] = html_encode(L.fingerprint)
nanoui_data["exploit_exists"] = 1
break
@@ -441,6 +441,10 @@ Then check if it's true, if true return. This will stop the normal menu appearin
name = "sponsored uplink"
starting_telecrystals = 20
/obj/item/device/special_uplink/jockey
name = "jockey uplink"
starting_telecrystals = 10
/obj/item/device/special_uplink/raider
name = "underground uplink"
starting_telecrystals = 3
@@ -166,6 +166,28 @@
charge = min(charge + (maxcharge / 10), maxcharge)
next_recharge = world.time + 1 MINUTE
/obj/item/cell/nuclear
name = "miniaturized nuclear power core"
desc = "A small self-charging thorium core that can store an immense amount of charge."
origin_tech = list(TECH_POWER = 8, TECH_ILLEGAL = 4)
icon_state = "icell"
maxcharge = 50000
matter = null
var/next_recharge
/obj/item/cell/nuclear/Initialize()
. = ..()
START_PROCESSING(SSprocessing, src)
/obj/item/cell/nuclear/Destroy()
STOP_PROCESSING(SSprocessing, src)
return ..()
/obj/item/cell/nuclear/process()
if(next_recharge < world.time)
charge = min(charge + (maxcharge / 10), maxcharge)
next_recharge = world.time + 30 SECONDS
/obj/item/cell/device/emergency_light
name = "miniature power cell"
desc = "A small power cell intended for use with emergency lighting."