mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
refactor 'dir = ' into 'set_dir()'
This should have little/no gameplay effect right now, just paving the way for directional lights. Replaced handle_rotation() on buckly things with this. Signed-off-by: Mloc-Argent <colmohici@gmail.com>
This commit is contained in:
@@ -32,9 +32,9 @@ obj/structure/windoor_assembly/New(Loc, start_dir=NORTH, constructed=0)
|
||||
anchored = 0
|
||||
switch(start_dir)
|
||||
if(NORTH, SOUTH, EAST, WEST)
|
||||
dir = start_dir
|
||||
set_dir(start_dir)
|
||||
else //If the user is facing northeast. northwest, southeast, southwest or north, default to north
|
||||
dir = NORTH
|
||||
set_dir(NORTH)
|
||||
|
||||
update_nearby_tiles(need_rebuild=1)
|
||||
|
||||
@@ -220,7 +220,7 @@ obj/structure/windoor_assembly/Del()
|
||||
else
|
||||
windoor.icon_state = "rightsecureopen"
|
||||
windoor.base_state = "rightsecure"
|
||||
windoor.dir = src.dir
|
||||
windoor.set_dir(src.dir)
|
||||
windoor.density = 0
|
||||
|
||||
if(src.electronics.one_access)
|
||||
@@ -238,7 +238,7 @@ obj/structure/windoor_assembly/Del()
|
||||
else
|
||||
windoor.icon_state = "rightopen"
|
||||
windoor.base_state = "right"
|
||||
windoor.dir = src.dir
|
||||
windoor.set_dir(src.dir)
|
||||
windoor.density = 0
|
||||
|
||||
if(src.electronics.one_access)
|
||||
@@ -272,7 +272,7 @@ obj/structure/windoor_assembly/Del()
|
||||
if(src.state != "01")
|
||||
update_nearby_tiles(need_rebuild=1) //Compel updates before
|
||||
|
||||
src.dir = turn(src.dir, 270)
|
||||
src.set_dir(turn(src.dir, 270))
|
||||
|
||||
if(src.state != "01")
|
||||
update_nearby_tiles(need_rebuild=1)
|
||||
|
||||
Reference in New Issue
Block a user