Space update

This commit is contained in:
ariaworld
2024-09-02 00:20:38 +02:00
parent 7a33682cfc
commit 0601002cd1
48 changed files with 10227 additions and 36 deletions
@@ -6,6 +6,7 @@
* Bamboo
* Cloth
* Durathread
* Wax
* Cardboard
* Runed Metal (cult)
* Brass (clockwork cult)
@@ -484,6 +485,24 @@ GLOBAL_LIST_INIT(durathread_recipes, list ( \
. = ..()
. += GLOB.durathread_recipes
/* Wax */
GLOBAL_LIST_INIT(wax_recipes, list (new/datum/stack_recipe("Wax tile", /obj/item/stack/tile/mineral/wax, 1, 4, 20)))
/obj/item/stack/sheet/wax
name = "wax"
icon_state = "sheet-wax"
item_state = "sheet-wax"
singular_name = "wax block"
force = 1
throwforce = 2
grind_results = list(/datum/reagent/consumable/honey = 20)
merge_type = /obj/item/stack/sheet/wax
/obj/item/stack/sheet/wax/get_main_recipes()
. = ..()
. += GLOB.wax_recipes
/*
* Cardboard
*/
@@ -78,3 +78,13 @@
turf_type = /turf/open/floor/mineral/plastitanium
mineralType = "plastitanium"
custom_materials = list(/datum/material/titanium=250, /datum/material/plasma=250)
/obj/item/stack/tile/mineral/wax
name = "wax tile"
singular_name = "wax tile"
desc = "A large, flat sheet of wax."
icon_state = "tile_wax"
item_state = "tile-wax"
turf_type = /turf/open/floor/wax
mineralType = "wax"
merge_type = /obj/item/stack/tile/mineral/wax
@@ -329,6 +329,14 @@
turf_type = /turf/open/floor/carpet/royalblue
tableVariant = /obj/structure/table/wood/fancy/royalblue
/obj/item/stack/tile/eighties
name = "retro tile"
singular_name = "retro floor tile"
desc = "A stack of floor tiles that remind you of simpler times.."
icon_state = "tile_eighties"
merge_type = /obj/item/stack/tile/eighties
turf_type = /turf/open/floor/eighties
/obj/item/stack/tile/carpet/ten
amount = 10
@@ -413,6 +413,23 @@
for(var/i in 1 to 5)
new /obj/item/reagent_containers/pill/neurine(src)
/obj/item/storage/pill_bottle/floorpill
name = "bottle of floorpills"
desc = "An old pill bottle. It smells musty."
/obj/item/storage/pill_bottle/floorpill/Initialize(mapload)
. = ..()
var/obj/item/reagent_containers/pill/P = locate() in src
name = "bottle of [P.name]s"
/obj/item/storage/pill_bottle/floorpill/PopulateContents()
for(var/i in 1 to rand(1,7))
new /obj/item/reagent_containers/pill/floorpill(src)
/obj/item/storage/pill_bottle/floorpill/full/PopulateContents()
for(var/i in 1 to 7)
new /obj/item/reagent_containers/pill/floorpill(src)
/////////////
//Organ Box//
/////////////
+73
View File
@@ -1458,3 +1458,76 @@
icon_state = "shell[rand(1,3)]"
color = pickweight(possible_colors)
setDir(pick(GLOB.cardinals))
////////////////////
//money eater/maker//
////////////////////
/obj/item/gobbler
name = "Coin Gobbler"
desc = "Feed it credits, and activate it, with a chance to spit out DOUBLE the amount!"
icon = 'icons/obj/plushes.dmi'
icon_state = "debug"
var/money = 0
var/moneyeaten = 0
var/cooldown = 0
var/cooldowndelay = 20
w_class = WEIGHT_CLASS_NORMAL
/obj/item/gobbler/examine(mob/user)
. = ..()
. += "<span class='notice'>The Coin Gobbler holds [money] credits.</span>"
/obj/item/gobbler/attackby()
return
/obj/item/gobbler/attack_self(mob/user)
if(cooldown > world.time)
return
cooldown = world.time + cooldowndelay
if (money<=0)
to_chat(user, "<span class='notice'>The [src] has no money stored.</span>")
return
playsound(src.loc, 'sound/creatures/rattle.ogg', 10, 1)
user.visible_message("<span class='notice'>[src]'s eyes start spinning! What will happen?</span>", \
"<span class='notice'>You activate [src].</span>")
sleep(10)
if(prob(33*(777+moneyeaten-money)/777))
playsound(src.loc, 'sound/arcade/win.ogg', 10, 1)
user.visible_message("<span class='warning'>[src] cashes out! [user] starts spitting credits!</span>", \
"<span class='notice'>[src] cashes out!</span>")
var/obj/item/holochip/payout = new (user.drop_location(), money*2)
payout.throw_at( get_step(loc,user.dir) ,3,1,user)
moneyeaten-=money
money=0
else
user.visible_message("<span class='notice'>[src] gobbles up all the money!</span>", \
"<span class='notice'>[src] gobbles up all the money!</span>")
moneyeaten+=money
money=0
playsound(src.loc, 'sound/machines/buzz-sigh.ogg', 10, 1)
/obj/item/gobbler/afterattack(atom/A, mob/user, proximity)
. = ..()
if(!proximity)
return
var/cash_money = 0
if(istype(A, /obj/item/holochip))
var/obj/item/holochip/HC = A
cash_money = HC.get_item_credit_value()
else if(istype(A, /obj/item/stack/spacecash))
var/obj/item/stack/spacecash/SC = A
cash_money = SC.get_item_credit_value()
else if(istype(A, /obj/item/coin))
var/obj/item/coin/CN = A
cash_money = CN.get_item_credit_value()
if (!cash_money)
to_chat(user, "<span class='warning'>[src] spits out [A] as it is not worth anything!</span>")
return
money+=cash_money
to_chat(user, "<span class='notice'>[src] quicky gobbles up [A], and the value goes up by [cash_money].</span>")
qdel(A)