mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-24 21:56:55 +01:00
Porting flying robots from Bay. [IDB IGNORE] (#8885)
* Semiport of Allow_Spacemove from Bay. * Porting flying robots from Bay. * Converting platforms to an alt title of Robot. * Converting existing modules to new proc flow. * Cleaning up jetpack code for robots. * Making flyers and platforms buildable. * Debugging/refining robots port. * Reverting some unneeded spacemove changes. * Refining/debugging bots. * Removing Bay subtypes, adding flying subtypes of existing modules. * Icon rework for flying robots. * Working commit for flying borgs PR.
This commit is contained in:
@@ -29,18 +29,6 @@
|
||||
if(length(A.name) + length(label) > 64)
|
||||
to_chat(user, SPAN_WARNING("\The [src]'s label too big."))
|
||||
return
|
||||
if(istype(A, /mob/living/silicon/robot/platform))
|
||||
var/mob/living/silicon/robot/platform/P = A
|
||||
if(!P.allowed(user))
|
||||
to_chat(usr, SPAN_WARNING("Access denied."))
|
||||
else if(P.client || P.key)
|
||||
to_chat(user, SPAN_NOTICE("You rename \the [P] to [label]."))
|
||||
to_chat(P, SPAN_NOTICE("\The [user] renames you to [label]."))
|
||||
P.custom_name = label
|
||||
P.SetName(P.custom_name)
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("\The [src] is inactive and cannot be renamed."))
|
||||
return
|
||||
if(ishuman(A))
|
||||
to_chat(user, SPAN_WARNING("The label refuses to stick to [A.name]."))
|
||||
return
|
||||
@@ -80,4 +68,4 @@
|
||||
label = str
|
||||
to_chat(user, SPAN_NOTICE("You set the text to '[str]'."))
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("You turn off \the [src]."))
|
||||
to_chat(user, SPAN_NOTICE("You turn off \the [src]."))
|
||||
|
||||
Reference in New Issue
Block a user