Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Update transit.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 committed Jul 2, 2024
1 parent 8801a2e commit 1b69cfc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/turfs/space/transit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
..()
if(!locate(/obj/structure/lattice) in src) //todo wtf is this even
throw_atom(arrived)
*/
/turf/open/space/transit/proc/throw_atom(atom/movable/AM)
set waitfor = FALSE
Expand Down Expand Up @@ -85,6 +84,7 @@
update_icon()
for(var/atom/movable/AM in src)
throw_atom(AM)
*/

/turf/open/space/transit/update_icon()
. = ..()
Expand Down
14 changes: 14 additions & 0 deletions modular_RUtgmc/code/game/turfs/transit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
INVOKE_ASYNC(crosser, TYPE_PROC_REF(/atom/movable, throw_at), projected, 50, 2, null, TRUE, targetted_throw = TRUE)
addtimer(CALLBACK(src, PROC_REF(handle_crosser), crosser), 0.5 SECONDS)

/turf/open/space/transit/Initialize(mapload)
. = ..()
update_icon()
if(isobserver(crosser) || crosser.anchored)

Check failure on line 18 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "crosser"

Check failure on line 18 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "crosser"

Check warning on line 18 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "anchored"
return

if(!isobj(crosser) && !isliving(crosser))

Check failure on line 21 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "crosser"

Check failure on line 21 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "crosser"
return

if(!isspaceturf(old_loc))

Check failure on line 24 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "old_loc"
var/turf/projected = get_ranged_target_turf(crosser.loc, dir, 10)

Check failure on line 25 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "crosser"

Check warning on line 25 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "loc"
INVOKE_ASYNC(crosser, TYPE_PROC_REF(/atom/movable, throw_at), projected, 50, 2, null, TRUE, targetted_throw = TRUE)

Check failure on line 26 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "crosser"

Check failure on line 26 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "crosser"
addtimer(CALLBACK(src, PROC_REF(handle_crosser), crosser), 0.5 SECONDS)

Check failure on line 27 in modular_RUtgmc/code/game/turfs/transit.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "crosser"

/turf/open/space/transit/proc/handle_crosser(atom/movable/crosser)
if(QDELETED(crosser))
return
Expand Down

0 comments on commit 1b69cfc

Please sign in to comment.