mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
Adds several more uses for plastics (Trinkets, Trash, Decor, and Killing the Environment) (#48337)
* Initial Commit, Plastic Boxes and Soda Rings. Basic carp interaction. * Beads, trash created from breaking plastic, carp eat plastic properly. * Cleans up sprites, adds designs to autolathe, and adds plastic plants * Icon Conflict more like Ion Comblict because I can't spell * Oh neat, there's already a party crate. Added Beer/Soda 6packs to the crate, adjusted price accordingly. * Aaaaaaaaaa runtime loop. * You win this round travis. * Makes the in-hand sprite the soda can sprite because honestly it's close enough don't @ me * Typo. * Merge conflict, style changes, FINE CARP DON'T BREATHE. * BEGONE CONFLICT BEGONE FROM ME
This commit is contained in:
@@ -224,3 +224,10 @@
|
||||
icon = 'icons/effects/confetti_and_decor.dmi'
|
||||
icon_state = "confetti"
|
||||
mouse_opacity = MOUSE_OPACITY_TRANSPARENT //the confetti itself might be annoying enough
|
||||
|
||||
/obj/effect/decal/cleanable/plastic
|
||||
name = "plastic shreds"
|
||||
desc = "Bits of torn, broken, worthless plastic."
|
||||
icon = 'icons/obj/objects.dmi'
|
||||
icon_state = "shards"
|
||||
color = "#c6f4ff"
|
||||
|
||||
@@ -1202,6 +1202,15 @@
|
||||
)
|
||||
generate_items_inside(items_inside,src)
|
||||
|
||||
/obj/item/storage/box/plastic
|
||||
name = "plastic box"
|
||||
desc = "It's a solid, plastic shell box."
|
||||
icon_state = "plasticbox"
|
||||
foldable = null
|
||||
illustration = "writing"
|
||||
custom_materials = list(/datum/material/plastic = 1000) //You lose most if recycled.
|
||||
|
||||
|
||||
/obj/item/storage/box/fireworks
|
||||
name = "box of fireworks"
|
||||
desc = "Contains an assortment of fireworks."
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/obj/item/storage/cans
|
||||
name = "can ring"
|
||||
desc = "Holds up to six drink cans, and select bottles."
|
||||
icon = 'icons/obj/storage.dmi'
|
||||
icon_state = "canholder"
|
||||
item_state = "cola"
|
||||
lefthand_file = 'icons/mob/inhands/misc/food_lefthand.dmi'
|
||||
righthand_file = 'icons/mob/inhands/misc/food_righthand.dmi'
|
||||
custom_materials = list(/datum/material/plastic = 1200)
|
||||
max_integrity = 500
|
||||
|
||||
/obj/item/storage/cans/suicide_act(mob/living/carbon/user)
|
||||
user.visible_message("<span class='suicide'>[user] begins popping open a final cold one with the boys! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
||||
return BRUTELOSS
|
||||
|
||||
/obj/item/storage/cans/update_icon()
|
||||
var/icon_status = 0
|
||||
icon_status = contents.len
|
||||
icon_state = "[initial(icon_state)][icon_status]"
|
||||
|
||||
/obj/item/storage/cans/Initialize()
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/storage/cans/ComponentInitialize()
|
||||
. = ..()
|
||||
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
|
||||
STR.max_w_class = WEIGHT_CLASS_SMALL
|
||||
STR.max_combined_w_class = 12
|
||||
STR.max_items = 6
|
||||
STR.set_holdable(list(
|
||||
/obj/item/reagent_containers/food/drinks/soda_cans,
|
||||
/obj/item/reagent_containers/food/drinks/beer,
|
||||
/obj/item/reagent_containers/food/drinks/ale,
|
||||
/obj/item/reagent_containers/food/drinks/waterbottle
|
||||
))
|
||||
|
||||
/obj/item/storage/cans/sixsoda
|
||||
name = "soda bottle ring"
|
||||
desc = "Holds six soda cans. Remember to recycle when you're done!"
|
||||
|
||||
/obj/item/storage/cans/sixsoda/PopulateContents()
|
||||
for(var/i in 1 to 6)
|
||||
new /obj/item/reagent_containers/food/drinks/soda_cans/cola(src)
|
||||
|
||||
/obj/item/storage/cans/sixbeer
|
||||
name = "beer bottle ring"
|
||||
desc = "Holds six beer bottles. Remember to recycle when you're done!"
|
||||
|
||||
/obj/item/storage/cans/sixbeer/PopulateContents()
|
||||
for(var/i in 1 to 6)
|
||||
new /obj/item/reagent_containers/food/drinks/beer(src)
|
||||
@@ -464,6 +464,7 @@
|
||||
to_chat(Mob, "<span class='warning'>The chair begins to pop and crack, you're too heavy!</span>")
|
||||
if(do_after(Mob, 60, 1, Mob, 0))
|
||||
Mob.visible_message("<span class='notice'>The plastic chair snaps under [Mob]'s weight!</span>")
|
||||
new /obj/effect/decal/cleanable/plastic(loc)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/chair/plastic
|
||||
|
||||
@@ -354,6 +354,15 @@
|
||||
light_color = "#2cb2e8"
|
||||
light_range = 3
|
||||
|
||||
/obj/item/twohanded/required/kirbyplants/fullysynthetic
|
||||
name = "plastic potted plant"
|
||||
desc = "A fake, cheap looking, plastic tree. Perfect for people who kill every plant they touch."
|
||||
icon_state = "plant-26"
|
||||
custom_materials = (list(/datum/material/plastic = 8000))
|
||||
|
||||
/obj/item/twohanded/required/kirbyplants/fullysynthetic/Initialize()
|
||||
. = ..()
|
||||
icon_state = "plant-[rand(26, 29)]"
|
||||
|
||||
//a rock is flora according to where the icon file is
|
||||
//and now these defines
|
||||
@@ -438,3 +447,4 @@
|
||||
/obj/structure/flora/rock/pile/largejungle/Initialize()
|
||||
. = ..()
|
||||
icon_state = "[initial(icon_state)][rand(1,3)]"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user