Skip to content

Commit

Permalink
Merge pull request NebulaSS13#3475 from MistakeNot4892/invis
Browse files Browse the repository at this point in the history
Allows spawn_atom to spawn invisible atoms.
  • Loading branch information
out-of-phaze authored Oct 31, 2023
2 parents bf161a1 + 3781487 commit fea31f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/modules/admin/admin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ var/global/floorIsLava = 0
for(var/path in subtypesof(/atom))
var/atom/path_cast = path
if(TYPE_IS_SPAWNABLE(path_cast) && findtext(lowertext("[path]"), object))
matches += path
matches += "[path]" // We need to use a string because input() checks invisibility on types for Reasons:tm:.

if(matches.len==0)
return
Expand All @@ -1157,6 +1157,7 @@ var/global/floorIsLava = 0
if(!chosen)
return

chosen = text2path(chosen)
if(ispath(chosen,/turf))
var/turf/T = get_turf(usr.loc)
T.ChangeTurf(chosen)
Expand Down
2 changes: 1 addition & 1 deletion test/check-paths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ exactly 1 "world.log<< uses" 'world.log<<|world.log[[:space:]]<<'
exactly 18 "<< uses" '(?<!<)<<(?!<)' -P
exactly 10 ">> uses" '>>(?!>)' -P
exactly 0 "incorrect indentations" '^( {4,})' -P
exactly 23 "text2path uses" 'text2path'
exactly 24 "text2path uses" 'text2path'
exactly 4 "update_icon() override" '/update_icon\((.*)\)' -P
exactly 0 "goto uses" 'goto '
exactly 6 "atom/New uses" '^/(obj|atom|area|mob|turf).*/New\('
Expand Down

0 comments on commit fea31f0

Please sign in to comment.