fix surgery cb, linter
This commit is contained in:
@@ -178,12 +178,12 @@ GLOBAL_LIST_EMPTY(custom_shuttle_machines) //Machines that require updating (He
|
||||
to_chat(user, "<span class='warning'>Invalid shuttle, restarting bluespace systems...</span>")
|
||||
return FALSE
|
||||
|
||||
var/datum/map_template/shuttle/new_shuttle = new /datum/map_template/shuttle()
|
||||
// var/datum/map_template/shuttle/new_shuttle = new /datum/map_template/shuttle()
|
||||
|
||||
var/obj/docking_port/mobile/port = new /obj/docking_port/mobile(get_turf(target))
|
||||
var/obj/docking_port/stationary/stationary_port = new /obj/docking_port/stationary(get_turf(target))
|
||||
port.callTime = 50
|
||||
port.dir = 1 //Point away from space.
|
||||
port.dir = NORTH //Point away from space.
|
||||
port.id = "custom_[GLOB.custom_shuttle_count]"
|
||||
linkedShuttleId = port.id
|
||||
port.ignitionTime = 25
|
||||
|
||||
@@ -81,6 +81,8 @@
|
||||
surgery.status++
|
||||
if(surgery.status > surgery.steps.len)
|
||||
surgery.complete()
|
||||
surgery.step_in_progress = FALSE
|
||||
return advance
|
||||
|
||||
if(target.stat == DEAD && user.client)
|
||||
user.client.give_award(/datum/award/achievement/misc/sandman, user)
|
||||
@@ -88,7 +90,7 @@
|
||||
surgery.step_in_progress = FALSE
|
||||
if(repeatable)
|
||||
return FALSE //This is how the repeatable surgery detects it shouldn't cycle
|
||||
return advance //Stop the attack chain! - Except on repeatable steps, because otherwise we land in an infinite loop.
|
||||
return TRUE //Stop the attack chain! - Except on repeatable steps, because otherwise we land in an infinite loop.
|
||||
|
||||
|
||||
/datum/surgery_step/proc/preop(mob/user, mob/living/target, target_zone, obj/item/tool, datum/surgery/surgery)
|
||||
|
||||
Reference in New Issue
Block a user