mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Merge remote-tracking branch 'upstream/master' into dev-freeze
Conflicts: code/game/objects/items/devices/uplink.dm code/modules/nano/modules/human_appearance.dm
This commit is contained in:
@@ -24,7 +24,7 @@ var/global/datum/emergency_shuttle_controller/emergency_shuttle
|
|||||||
|
|
||||||
/datum/emergency_shuttle_controller/proc/process()
|
/datum/emergency_shuttle_controller/proc/process()
|
||||||
if (wait_for_launch)
|
if (wait_for_launch)
|
||||||
if (auto_recall && world.time >= auto_recall_time)
|
if (evac && auto_recall && world.time >= auto_recall_time)
|
||||||
recall()
|
recall()
|
||||||
if (world.time >= launch_time) //time to launch the shuttle
|
if (world.time >= launch_time) //time to launch the shuttle
|
||||||
stop_launch_countdown()
|
stop_launch_countdown()
|
||||||
|
|||||||
@@ -436,6 +436,8 @@ var/global/list/additional_antag_types = list()
|
|||||||
for(var/mob/player in player_list)
|
for(var/mob/player in player_list)
|
||||||
if(!player.client)
|
if(!player.client)
|
||||||
continue
|
continue
|
||||||
|
if(istype(player, /mob/new_player))
|
||||||
|
continue
|
||||||
if(!role || (player.client.prefs.be_special & role))
|
if(!role || (player.client.prefs.be_special & role))
|
||||||
log_debug("[player.key] had [antag_id] enabled, so we are drafting them.")
|
log_debug("[player.key] had [antag_id] enabled, so we are drafting them.")
|
||||||
candidates |= player.mind
|
candidates |= player.mind
|
||||||
|
|||||||
@@ -197,7 +197,6 @@
|
|||||||
build_overlays()
|
build_overlays()
|
||||||
|
|
||||||
/obj/machinery/recharge_station/Bumped(var/mob/living/silicon/robot/R)
|
/obj/machinery/recharge_station/Bumped(var/mob/living/silicon/robot/R)
|
||||||
if(istype(R))
|
|
||||||
go_in(R)
|
go_in(R)
|
||||||
|
|
||||||
/obj/machinery/recharge_station/proc/go_in(var/mob/living/silicon/robot/R)
|
/obj/machinery/recharge_station/proc/go_in(var/mob/living/silicon/robot/R)
|
||||||
@@ -206,10 +205,18 @@
|
|||||||
if(occupant)
|
if(occupant)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
// TODO : Change to incapacitated() on merge.
|
||||||
|
if(R.stat || R.lying || R.resting || R.buckled)
|
||||||
|
return
|
||||||
|
if(!R.cell)
|
||||||
|
return
|
||||||
|
|
||||||
|
add_fingerprint(R)
|
||||||
R.reset_view(src)
|
R.reset_view(src)
|
||||||
R.forceMove(src)
|
R.forceMove(src)
|
||||||
occupant = R
|
occupant = R
|
||||||
update_icon()
|
update_icon()
|
||||||
|
return 1
|
||||||
|
|
||||||
/obj/machinery/recharge_station/proc/go_out()
|
/obj/machinery/recharge_station/proc/go_out()
|
||||||
if(!occupant)
|
if(!occupant)
|
||||||
@@ -238,9 +245,4 @@
|
|||||||
set name = "Enter Recharger"
|
set name = "Enter Recharger"
|
||||||
set src in oview(1)
|
set src in oview(1)
|
||||||
|
|
||||||
// TODO : Change to incapacitated() on merge.
|
|
||||||
if(usr.stat || usr.lying || usr.resting || usr.buckled)
|
|
||||||
return
|
|
||||||
|
|
||||||
go_in(usr)
|
go_in(usr)
|
||||||
add_fingerprint(usr)
|
|
||||||
|
|||||||
@@ -8,17 +8,24 @@
|
|||||||
w_class = 2.0
|
w_class = 2.0
|
||||||
var/obj/item/weapon/implant/imp = null
|
var/obj/item/weapon/implant/imp = null
|
||||||
|
|
||||||
|
/obj/item/weapon/implanter/attack_self(var/mob/user)
|
||||||
|
if(!imp)
|
||||||
|
return ..()
|
||||||
|
imp.loc = get_turf(src)
|
||||||
|
user.put_in_hands(imp)
|
||||||
|
user << "<span class='notice'>You remove \the [imp] from \the [src].</span>"
|
||||||
|
name = "implanter"
|
||||||
|
imp = null
|
||||||
|
update()
|
||||||
|
return
|
||||||
|
|
||||||
/obj/item/weapon/implanter/proc/update()
|
/obj/item/weapon/implanter/proc/update()
|
||||||
|
|
||||||
|
|
||||||
/obj/item/weapon/implanter/update()
|
|
||||||
if (src.imp)
|
if (src.imp)
|
||||||
src.icon_state = "implanter1"
|
src.icon_state = "implanter1"
|
||||||
else
|
else
|
||||||
src.icon_state = "implanter0"
|
src.icon_state = "implanter0"
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
/obj/item/weapon/implanter/attack(mob/M as mob, mob/user as mob)
|
/obj/item/weapon/implanter/attack(mob/M as mob, mob/user as mob)
|
||||||
if (!istype(M, /mob/living/carbon))
|
if (!istype(M, /mob/living/carbon))
|
||||||
return
|
return
|
||||||
@@ -52,8 +59,6 @@
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/obj/item/weapon/implanter/loyalty
|
/obj/item/weapon/implanter/loyalty
|
||||||
name = "implanter-loyalty"
|
name = "implanter-loyalty"
|
||||||
|
|
||||||
|
|||||||
@@ -778,7 +778,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
if(confirm != "Yes") return
|
if(confirm != "Yes") return
|
||||||
|
|
||||||
var/choice
|
var/choice
|
||||||
if(ticker.mode.name == "revolution" || ticker.mode.name == "confliction")
|
if(ticker.mode.auto_recall_shuttle)
|
||||||
choice = input("The shuttle will just return if you call it. Call anyway?") in list("Confirm", "Cancel")
|
choice = input("The shuttle will just return if you call it. Call anyway?") in list("Confirm", "Cancel")
|
||||||
if(choice == "Confirm")
|
if(choice == "Confirm")
|
||||||
emergency_shuttle.auto_recall = 1 //enable auto-recall
|
emergency_shuttle.auto_recall = 1 //enable auto-recall
|
||||||
|
|||||||
@@ -91,6 +91,10 @@
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
/datum/nano_module/appearance_changer/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1, var/datum/topic_state/state = default_state)
|
/datum/nano_module/appearance_changer/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1, var/datum/topic_state/state = default_state)
|
||||||
|
|
||||||
|
if(!owner || !owner.species)
|
||||||
|
return
|
||||||
|
|
||||||
generate_data(check_whitelist, whitelist, blacklist)
|
generate_data(check_whitelist, whitelist, blacklist)
|
||||||
var/data[0]
|
var/data[0]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user