Files
Bubberstation/code/modules/admin/create_turf.dm
Steve-Cambridge 6aaa6266cd fixes create_mob and create_turf, in line with create_object (#91518)
## About The Pull Request
As detailed in #91431, PR #91379 misplaced a few semicolons and broke
the functionality for these three admin tools. Only the object panel was
fixed, but the mob and turf panels remain broken. This fixes it, the
exact same issue was/is the problem.


## Why It's Good For The Game
Restores admin functionality that is currently missing.

## Changelog
🆑
fix: create mob and create turf both function correctly again.
/🆑
2025-06-09 16:21:03 +01:00

11 lines
483 B
Plaintext

/datum/admins/proc/create_turf(mob/user)
var/static/create_turf_html
if (!create_turf_html)
var/turfjs = null
turfjs = jointext(typesof(/turf), ";")
create_turf_html = file2text('html/create_object.html')
create_turf_html = replacetext(create_turf_html, "Create Object", "Create Turf")
create_turf_html = replacetext(create_turf_html, "null; /* object types */", "\"[turfjs]\";")
user << browse(create_panel_helper(create_turf_html), "window=create_turf;size=425x475")