mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Reworks Curtains (#28163)
* Reworks Curtains * Update code/game/objects/structures/curtains.dm Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * New Overlay Code * THE BEGINNING OF HELL * Interact with Atom on mountable * Fixes return, looks mergable. * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update code/game/objects/structures/curtains.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> * Update Overlays Refactor --------- Signed-off-by: Tojo <32783144+Alecksohs@users.noreply.github.com> Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
@@ -4,19 +4,19 @@
|
||||
/turf/simulated/wall
|
||||
)
|
||||
var/allow_floor_mounting = FALSE
|
||||
new_attack_chain = TRUE
|
||||
|
||||
|
||||
/obj/item/mounted/afterattack__legacy__attackchain(atom/A, mob/user, proximity_flag)
|
||||
if(is_type_in_list(A, buildon_types))
|
||||
if(try_build(A, user, proximity_flag))
|
||||
return do_build(A, user)
|
||||
/obj/item/mounted/interact_with_atom(atom/target, mob/living/user, list/modifiers)
|
||||
. = ..()
|
||||
if(is_type_in_list(target, buildon_types))
|
||||
if(try_build(target, user))
|
||||
do_build(target, user)
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
..()
|
||||
|
||||
/obj/item/mounted/proc/try_build(turf/on_wall, mob/user, proximity_flag) //checks
|
||||
/obj/item/mounted/proc/try_build(turf/on_wall, mob/user) //checks
|
||||
if(!on_wall || !user)
|
||||
return FALSE
|
||||
if(!proximity_flag) //if we aren't next to the turf
|
||||
return FALSE
|
||||
|
||||
if(!allow_floor_mounting)
|
||||
if(!(get_dir(on_wall, user) in GLOB.cardinal))
|
||||
|
||||
Reference in New Issue
Block a user