mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Splits placeontop proc (#79702)
## About The Pull Request I find the proc hard to read honestly. There's no reason we can't split this into two functions - the secondary functionality is used only once, in reader.dmm. ## Why It's Good For The Game Code improvement Glorious snake case ## Changelog N/A nothing player facing --------- Co-authored-by: san7890 <34697715+san7890@users.noreply.github.com>
This commit is contained in:
@@ -22,13 +22,13 @@
|
||||
if(istype(object,/turf) && left_click && !alt_click && !ctrl_click)
|
||||
var/turf/clicked_turf = object
|
||||
if(isplatingturf(object))
|
||||
clicked_turf.PlaceOnTop(/turf/open/floor/iron, flags = CHANGETURF_INHERIT_AIR)
|
||||
clicked_turf.place_on_top(/turf/open/floor/iron, flags = CHANGETURF_INHERIT_AIR)
|
||||
else if(isfloorturf(object))
|
||||
clicked_turf.PlaceOnTop(/turf/closed/wall)
|
||||
clicked_turf.place_on_top(/turf/closed/wall)
|
||||
else if(iswallturf(object))
|
||||
clicked_turf.PlaceOnTop(/turf/closed/wall/r_wall)
|
||||
clicked_turf.place_on_top(/turf/closed/wall/r_wall)
|
||||
else
|
||||
clicked_turf.PlaceOnTop(/turf/open/floor/plating, flags = CHANGETURF_INHERIT_AIR) // Gotta do something
|
||||
clicked_turf.place_on_top(/turf/open/floor/plating, flags = CHANGETURF_INHERIT_AIR) // Gotta do something
|
||||
log_admin("Build Mode: [key_name(c)] built [clicked_turf] at [AREACOORD(clicked_turf)]")
|
||||
return
|
||||
else if(right_click)
|
||||
|
||||
Reference in New Issue
Block a user