forked from HearthOfHestia/Nebula
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'Nebula/dev' into update/devmerge-2022-0…
…3-17
- Loading branch information
Showing
50 changed files
with
549 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
157 changes: 157 additions & 0 deletions
157
code/game/objects/structures/stool_bed_chair_nest_sofa/sofa.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
/obj/structure/bed/sofa | ||
name = "sofa" | ||
desc = "A wide and comfy sofa - no one assistant was ate by it due production! It's made of wood and covered with colored cloth." | ||
icon_state = "sofa" | ||
color = "#666666" | ||
buckle_dir = FALSE | ||
buckle_lying = FALSE //force people to sit up in chairs when buckled | ||
obj_flags = OBJ_FLAG_ROTATABLE | ||
material = /decl/material/solid/wood | ||
|
||
var/has_special_overlay = FALSE | ||
|
||
/obj/structure/bed/sofa/do_simple_ranged_interaction(var/mob/user) | ||
if(!buckled_mob && user) | ||
rotate(user) | ||
return TRUE | ||
|
||
/obj/structure/bed/sofa/post_buckle_mob() | ||
update_icon() | ||
return ..() | ||
|
||
/obj/structure/bed/attackby(obj/item/W, mob/user) //made to be able to rotate the sofa | ||
. = ..() | ||
if(.) | ||
return | ||
if(!isWrench(W)) | ||
return | ||
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) | ||
anchored = !anchored | ||
if(anchored) | ||
to_chat(user, "You disanchored \the [src].") | ||
else | ||
to_chat(user, "You anchored \the [src].") | ||
|
||
/obj/structure/bed/sofa/on_update_icon() | ||
..() | ||
var/image/I = image(icon, "[icon_state]_over") | ||
I.layer = buckled_mob ? ABOVE_HUMAN_LAYER : FLOAT_LAYER | ||
if(material_alteration & MAT_FLAG_ALTERATION_COLOR) | ||
I.appearance_flags |= RESET_COLOR | ||
I.color = material.color | ||
add_overlay(I) | ||
I = image(icon, "[icon_state]_armrest") | ||
I.layer = buckled_mob ? ABOVE_HUMAN_LAYER : FLOAT_LAYER | ||
if(material_alteration & MAT_FLAG_ALTERATION_COLOR) | ||
I.appearance_flags |= RESET_COLOR | ||
I.color = material.color | ||
add_overlay(I) | ||
if(reinf_material) | ||
I = image(icon, "[icon_state]_padding_over") | ||
I.layer = buckled_mob ? ABOVE_HUMAN_LAYER : FLOAT_LAYER | ||
if(material_alteration & MAT_FLAG_ALTERATION_COLOR) | ||
I.appearance_flags |= RESET_COLOR | ||
I.color = reinf_material.color | ||
add_overlay(I) | ||
I = image(icon, "[icon_state]_padding_armrest") | ||
I.layer = buckled_mob ? ABOVE_HUMAN_LAYER : FLOAT_LAYER | ||
if(material_alteration & MAT_FLAG_ALTERATION_COLOR) | ||
I.appearance_flags |= RESET_COLOR | ||
I.color = reinf_material.color | ||
add_overlay(I) | ||
if(has_special_overlay && buckled_mob) | ||
I = image(icon, "[icon_state]_special") | ||
I.layer = buckled_mob ? ABOVE_HUMAN_LAYER : FLOAT_LAYER | ||
if(material_alteration & MAT_FLAG_ALTERATION_COLOR) | ||
I.appearance_flags |= RESET_COLOR | ||
I.color = material.color | ||
add_overlay(I) | ||
|
||
/obj/structure/bed/sofa/rotate(mob/user) | ||
if(!CanPhysicallyInteract(user) || anchored) | ||
to_chat(user, SPAN_NOTICE("You can't interact with \the [src] right now!")) | ||
return | ||
|
||
set_dir(turn(dir, 90)) | ||
update_icon() | ||
|
||
/obj/structure/bed/sofa/m/rotate(mob/user) | ||
if(!CanPhysicallyInteract(user) || anchored) | ||
to_chat(user, SPAN_NOTICE("You can't interact with \the [src] right now!")) | ||
return | ||
|
||
set_dir(turn(dir, 45)) | ||
update_icon() | ||
|
||
/obj/structure/bed/sofa/m/red | ||
reinf_material = /decl/material/solid/carpet | ||
/obj/structure/bed/sofa/m/brown | ||
reinf_material = /decl/material/solid/leather | ||
/obj/structure/bed/sofa/m/teal | ||
reinf_material = /decl/material/solid/cloth/teal | ||
/obj/structure/bed/sofa/m/black | ||
reinf_material = /decl/material/solid/cloth/black | ||
/obj/structure/bed/sofa/m/green | ||
reinf_material = /decl/material/solid/cloth/green | ||
/obj/structure/bed/sofa/m/purple | ||
reinf_material = /decl/material/solid/cloth/purple | ||
/obj/structure/bed/sofa/m/blue | ||
reinf_material = /decl/material/solid/cloth/blue | ||
/obj/structure/bed/sofa/m/beige | ||
reinf_material = /decl/material/solid/cloth/beige | ||
/obj/structure/bed/sofa/m/lime | ||
reinf_material = /decl/material/solid/cloth/lime | ||
/obj/structure/bed/sofa/m/yellow | ||
reinf_material = /decl/material/solid/cloth/yellow | ||
|
||
/obj/structure/bed/sofa/r | ||
name = "sofa" | ||
desc = "A wide and comfy sofa - no one assistant was ate by it due production! It's made of wood and covered with colored cloth." | ||
icon_state = "sofa_r" | ||
|
||
/obj/structure/bed/sofa/r/red | ||
reinf_material = /decl/material/solid/carpet | ||
/obj/structure/bed/sofa/r/brown | ||
reinf_material = /decl/material/solid/leather | ||
/obj/structure/bed/sofa/r/teal | ||
reinf_material = /decl/material/solid/cloth/teal | ||
/obj/structure/bed/sofa/r/black | ||
reinf_material = /decl/material/solid/cloth/black | ||
/obj/structure/bed/sofa/r/green | ||
reinf_material = /decl/material/solid/cloth/green | ||
/obj/structure/bed/sofa/r/purple | ||
reinf_material = /decl/material/solid/cloth/purple | ||
/obj/structure/bed/sofa/r/blue | ||
reinf_material = /decl/material/solid/cloth/blue | ||
/obj/structure/bed/sofa/r/beige | ||
reinf_material = /decl/material/solid/cloth/beige | ||
/obj/structure/bed/sofa/r/lime | ||
reinf_material = /decl/material/solid/cloth/lime | ||
/obj/structure/bed/sofa/r/yellow | ||
reinf_material = /decl/material/solid/cloth/yellow | ||
|
||
/obj/structure/bed/sofa/l | ||
name = "sofa" | ||
desc = "A wide and comfy sofa - no one assistant was ate by it due production! It's made of wood and covered with colored cloth." | ||
icon_state = "sofa_l" | ||
|
||
/obj/structure/bed/sofa/l/red | ||
reinf_material = /decl/material/solid/carpet | ||
/obj/structure/bed/sofa/l/brown | ||
reinf_material = /decl/material/solid/leather | ||
/obj/structure/bed/sofa/l/teal | ||
reinf_material = /decl/material/solid/cloth/teal | ||
/obj/structure/bed/sofa/l/black | ||
reinf_material = /decl/material/solid/cloth/black | ||
/obj/structure/bed/sofa/l/green | ||
reinf_material = /decl/material/solid/cloth/green | ||
/obj/structure/bed/sofa/l/purple | ||
reinf_material = /decl/material/solid/cloth/purple | ||
/obj/structure/bed/sofa/l/blue | ||
reinf_material = /decl/material/solid/cloth/blue | ||
/obj/structure/bed/sofa/l/beige | ||
reinf_material = /decl/material/solid/cloth/beige | ||
/obj/structure/bed/sofa/l/lime | ||
reinf_material = /decl/material/solid/cloth/lime | ||
/obj/structure/bed/sofa/l/yellow | ||
reinf_material = /decl/material/solid/cloth/yellow |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.