Skip to content

Commit

Permalink
Add covered wells
Browse files Browse the repository at this point in the history
  • Loading branch information
out-of-phaze committed Dec 26, 2024
1 parent 4c1de0d commit 14cd7d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/game/objects/structures/well.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
. = ..()
if(reagents?.total_volume)
add_overlay(overlay_image(icon, "[icon_state]-fluid", reagents.get_color(), (RESET_COLOR | RESET_ALPHA)))
if(istype(reinf_material)) // reinf_material -> roof and posts, at this point in time
var/image/roof_image = overlay_image(icon, "[icon_state]-roof", reinf_material.color, RESET_COLOR | RESET_ALPHA | KEEP_APART)
roof_image.pixel_y = 16 // we have to use 32x32 sprites but want this to be, effectively, 48x32
add_overlay(roof_image)

/obj/structure/reagent_dispensers/well/on_reagent_change()
if(!(. = ..()))
Expand Down Expand Up @@ -64,6 +68,9 @@
/obj/structure/reagent_dispensers/well/mapped
auto_refill = /decl/material/liquid/water

/obj/structure/reagent_dispensers/well/mapped/covered
reinf_material = /decl/material/solid/organic/wood/walnut

/obj/structure/reagent_dispensers/well/wall_fountain
name = "wall fountain"
desc = "An intricately-constructed fountain set into a wall."
Expand Down
Binary file modified icons/obj/structures/well.dmi
Binary file not shown.

0 comments on commit 14cd7d0

Please sign in to comment.