mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
Ports the shuttle console hijack from TG. Tweaks malf AI hijack. (#19018)
* *puts on sunglasses* "I'm in." * whoops * Apply suggestions from code review Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Caching, danger, range, xenomorphs can no longer hijack * Update code/modules/shuttle/emergency.dm Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> * Update code/modules/shuttle/emergency.dm Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
This commit is contained in:
co-authored by
Luc
Sirryan2002
Charlie
parent
b8885719f4
commit
ae0efa00b5
@@ -1539,6 +1539,17 @@
|
||||
/datum/mind/proc/remove_all_antag_datums() //For the Lazy amongst us.
|
||||
QDEL_LIST(antag_datums)
|
||||
|
||||
/// This proc sets the hijack speed for a mob. If greater than zero, they can hijack. Outputs in seconds.
|
||||
/datum/mind/proc/get_hijack_speed()
|
||||
var/hijack_speed = 0
|
||||
if(special_role)
|
||||
hijack_speed = 15 SECONDS
|
||||
if(locate(/datum/objective/hijack) in get_all_objectives())
|
||||
hijack_speed = 10 SECONDS
|
||||
return hijack_speed
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns an antag datum instance if the src mind has the specified `datum_type`. Returns `null` otherwise.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user