Offship Piloting Fix (#22835)

Ghost roles or anything that doesn't use skills is no longer checked for
them by Pilot: Spacecraft.
(https://github.com/Aurorastation/Aurora.3/issues/22819)
Also fixes a similar oversight on using emitters.
(https://github.com/Aurorastation/Aurora.3/issues/22526)
This commit is contained in:
runecap
2026-07-14 10:07:23 +00:00
committed by GitHub
parent 3841300be3
commit 04efa85a7c
4 changed files with 30 additions and 12 deletions
+1 -1
View File
@@ -113,7 +113,7 @@
activate(user)
return TRUE
if(max_engineering_skill <= SKILL_LEVEL_TRAINED)
if(max_engineering_skill && max_engineering_skill <= SKILL_LEVEL_TRAINED)
to_chat(user, SPAN_WARNING("You try to find the switch on \the [src]... How do you even turn this thing on?"))
if(!do_after(user, 3 SECONDS + 1.5 SECONDS * (SKILL_LEVEL_TRAINED - max_engineering_skill)))
return