mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #4469 from VOREStation/upstream-merge-5662
[MIRROR] Biogenerator improvements.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/obj/machinery/biogenerator
|
/obj/machinery/biogenerator
|
||||||
name = "biogenerator"
|
name = "biogenerator"
|
||||||
desc = ""
|
desc = "Converts plants into biomass, which can be used for fertilizer and sort-of-synthetic products."
|
||||||
icon = 'icons/obj/biogenerator.dmi'
|
icon = 'icons/obj/biogenerator.dmi'
|
||||||
icon_state = "biogen-stand"
|
icon_state = "biogen-stand"
|
||||||
density = 1
|
density = 1
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
return
|
return
|
||||||
if(istype(O, /obj/item/weapon/reagent_containers/glass))
|
if(istype(O, /obj/item/weapon/reagent_containers/glass))
|
||||||
if(beaker)
|
if(beaker)
|
||||||
to_chat(user, "<span class='notice'>]The [src] is already loaded.</span>")
|
to_chat(user, "<span class='notice'>\The [src] is already loaded.</span>")
|
||||||
else
|
else
|
||||||
user.remove_from_mob(O)
|
user.remove_from_mob(O)
|
||||||
O.loc = src
|
O.loc = src
|
||||||
@@ -104,23 +104,25 @@
|
|||||||
if(beaker)
|
if(beaker)
|
||||||
dat += "<A href='?src=\ref[src];action=activate'>Activate Biogenerator!</A><BR>"
|
dat += "<A href='?src=\ref[src];action=activate'>Activate Biogenerator!</A><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=detach'>Detach Container</A><BR><BR>"
|
dat += "<A href='?src=\ref[src];action=detach'>Detach Container</A><BR><BR>"
|
||||||
dat += "Food<BR>"
|
dat += "Food:<BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=milk;cost=20'>10 milk</A> <FONT COLOR=blue>([round(20/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=milk;cost=20'>10 milk</A> <FONT COLOR=blue>([round(20/build_eff)])</FONT> | <A href='?src=\ref[src];action=create;item=milk5;cost=95'>x5</A><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=meat;cost=50'>Slab of meat</A> <FONT COLOR=blue>([round(50/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=cream;cost=30'>10 cream</A> <FONT COLOR=blue>([round(20/build_eff)])</FONT> | <A href='?src=\ref[src];action=create;item=cream5;cost=120'>x5</A><BR>"
|
||||||
dat += "Nutrient<BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=meat;cost=50'>Slab of meat</A> <FONT COLOR=blue>([round(50/build_eff)])</FONT> | <A href='?src=\ref[src];action=create;item=meat5;cost=24s0'>x5</A><BR>"
|
||||||
|
dat += "Nutrient:<BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=ez;cost=60'>E-Z-Nutrient</A> <FONT COLOR=blue>([round(60/build_eff)])</FONT> | <A href='?src=\ref[src];action=create;item=ez5;cost=300'>x5</A><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=ez;cost=60'>E-Z-Nutrient</A> <FONT COLOR=blue>([round(60/build_eff)])</FONT> | <A href='?src=\ref[src];action=create;item=ez5;cost=300'>x5</A><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=l4z;cost=120'>Left 4 Zed</A> <FONT COLOR=blue>([round(120/build_eff)])</FONT> | <A href='?src=\ref[src];action=create;item=l4z5;cost=600'>x5</A><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=l4z;cost=120'>Left 4 Zed</A> <FONT COLOR=blue>([round(120/build_eff)])</FONT> | <A href='?src=\ref[src];action=create;item=l4z5;cost=600'>x5</A><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=rh;cost=150'>Robust Harvest</A> <FONT COLOR=blue>([round(150/build_eff)])</FONT> | <A href='?src=\ref[src];action=create;item=rh5;cost=750'>x5</A><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=rh;cost=150'>Robust Harvest</A> <FONT COLOR=blue>([round(150/build_eff)])</FONT> | <A href='?src=\ref[src];action=create;item=rh5;cost=750'>x5</A><BR>"
|
||||||
dat += "Leather<BR>"
|
dat += "Leather:<BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=wallet;cost=100'>Wallet</A> <FONT COLOR=blue>([round(100/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=wallet;cost=100'>Wallet</A> <FONT COLOR=blue>([round(100/build_eff)])</FONT><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=gloves;cost=250'>Botanical gloves</A> <FONT COLOR=blue>([round(250/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=gloves;cost=250'>Botanical gloves</A> <FONT COLOR=blue>([round(250/build_eff)])</FONT><BR>"
|
||||||
|
dat += "<A href='?src=\ref[src];action=create;item=plantbag;cost=320'>Plant bag</A> <FONT COLOR=blue>([round(250/build_eff)])</FONT><BR>"
|
||||||
|
dat += "<A href='?src=\ref[src];action=create;item=plantbaglarge;cost=640'>Large plant bag</A> <FONT COLOR=blue>([round(250/build_eff)])</FONT><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=tbelt;cost=300'>Utility belt</A> <FONT COLOR=blue>([round(300/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=tbelt;cost=300'>Utility belt</A> <FONT COLOR=blue>([round(300/build_eff)])</FONT><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=satchel;cost=400'>Leather Satchel</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=satchel;cost=400'>Leather Satchel</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=cashbag;cost=400'>Cash Bag</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=cashbag;cost=400'>Cash Bag</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=chembag;cost=400'>Chemistry Bag</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=chembag;cost=400'>Chemistry Bag</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=workboots;cost=400'>Workboots</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=workboots;cost=400'>Workboots</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=leathershoes;cost=400'>Leather Shoes</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=leathershoes;cost=400'>Leather Shoes</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
||||||
|
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=leatherchaps;cost=400'>Leather Chaps</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=leatherchaps;cost=400'>Leather Chaps</A> <FONT COLOR=blue>([round(400/build_eff)])</FONT><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=leathercoat;cost=500'>Leather Coat</A> <FONT COLOR=blue>([round(500/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=leathercoat;cost=500'>Leather Coat</A> <FONT COLOR=blue>([round(500/build_eff)])</FONT><BR>"
|
||||||
dat += "<A href='?src=\ref[src];action=create;item=leatherjacket;cost=500'>Leather Jacket</A> <FONT COLOR=blue>([round(500/build_eff)])</FONT><BR>"
|
dat += "<A href='?src=\ref[src];action=create;item=leatherjacket;cost=500'>Leather Jacket</A> <FONT COLOR=blue>([round(500/build_eff)])</FONT><BR>"
|
||||||
@@ -165,10 +167,11 @@
|
|||||||
processing = 1
|
processing = 1
|
||||||
update_icon()
|
update_icon()
|
||||||
updateUsrDialog()
|
updateUsrDialog()
|
||||||
playsound(src.loc, 'sound/machines/blender.ogg', 50, 1)
|
playsound(src.loc, 'sound/machines/blender.ogg', 40, 1)
|
||||||
use_power(S * 30)
|
use_power(S * 30)
|
||||||
sleep((S + 15) / eat_eff)
|
sleep((S + 15) / eat_eff)
|
||||||
processing = 0
|
processing = 0
|
||||||
|
playsound(src.loc, 'sound/machines/biogenerator_end.ogg', 40, 1)
|
||||||
update_icon()
|
update_icon()
|
||||||
else
|
else
|
||||||
menustat = "void"
|
menustat = "void"
|
||||||
@@ -187,8 +190,20 @@
|
|||||||
switch(item)
|
switch(item)
|
||||||
if("milk")
|
if("milk")
|
||||||
beaker.reagents.add_reagent("milk", 10)
|
beaker.reagents.add_reagent("milk", 10)
|
||||||
|
if("milk5")
|
||||||
|
beaker.reagents.add_reagent("milk", 50)
|
||||||
|
if("cream")
|
||||||
|
beaker.reagents.add_reagent("cream", 10)
|
||||||
|
if("cream5")
|
||||||
|
beaker.reagents.add_reagent("cream", 50)
|
||||||
if("meat")
|
if("meat")
|
||||||
new/obj/item/weapon/reagent_containers/food/snacks/meat(loc)
|
new/obj/item/weapon/reagent_containers/food/snacks/meat(loc)
|
||||||
|
if("meat5")
|
||||||
|
new/obj/item/weapon/reagent_containers/food/snacks/meat(loc) //This is ugly.
|
||||||
|
new/obj/item/weapon/reagent_containers/food/snacks/meat(loc)
|
||||||
|
new/obj/item/weapon/reagent_containers/food/snacks/meat(loc)
|
||||||
|
new/obj/item/weapon/reagent_containers/food/snacks/meat(loc)
|
||||||
|
new/obj/item/weapon/reagent_containers/food/snacks/meat(loc)
|
||||||
if("ez")
|
if("ez")
|
||||||
new/obj/item/weapon/reagent_containers/glass/bottle/eznutrient(loc)
|
new/obj/item/weapon/reagent_containers/glass/bottle/eznutrient(loc)
|
||||||
if("l4z")
|
if("l4z")
|
||||||
@@ -217,6 +232,10 @@
|
|||||||
new/obj/item/weapon/storage/wallet(loc)
|
new/obj/item/weapon/storage/wallet(loc)
|
||||||
if("gloves")
|
if("gloves")
|
||||||
new/obj/item/clothing/gloves/botanic_leather(loc)
|
new/obj/item/clothing/gloves/botanic_leather(loc)
|
||||||
|
if("plantbag")
|
||||||
|
new/obj/item/weapon/storage/bag/plants(loc)
|
||||||
|
if("plantbaglarge")
|
||||||
|
new/obj/item/weapon/storage/bag/plants/large(loc)
|
||||||
if("tbelt")
|
if("tbelt")
|
||||||
new/obj/item/weapon/storage/belt/utility(loc)
|
new/obj/item/weapon/storage/belt/utility(loc)
|
||||||
if("satchel")
|
if("satchel")
|
||||||
|
|||||||
@@ -170,6 +170,10 @@
|
|||||||
w_class = ITEMSIZE_SMALL
|
w_class = ITEMSIZE_SMALL
|
||||||
can_hold = list(/obj/item/weapon/reagent_containers/food/snacks/grown,/obj/item/seeds,/obj/item/weapon/grown)
|
can_hold = list(/obj/item/weapon/reagent_containers/food/snacks/grown,/obj/item/seeds,/obj/item/weapon/grown)
|
||||||
|
|
||||||
|
/obj/item/weapon/storage/bag/plants/large
|
||||||
|
name = "large plant bag"
|
||||||
|
w_class = ITEMSIZE_SMALL
|
||||||
|
max_storage_space = ITEMSIZE_COST_NORMAL * 45
|
||||||
|
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
// Sheet Snatcher
|
// Sheet Snatcher
|
||||||
|
|||||||
44
html/changelogs/Lbnesquik - Botany improvements #5662.yml
Normal file
44
html/changelogs/Lbnesquik - Botany improvements #5662.yml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
################################
|
||||||
|
# Example Changelog File
|
||||||
|
#
|
||||||
|
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
|
||||||
|
#
|
||||||
|
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
|
||||||
|
# When it is, any changes listed below will disappear.
|
||||||
|
#
|
||||||
|
# Valid Prefixes:
|
||||||
|
# bugfix
|
||||||
|
# wip (For works in progress)
|
||||||
|
# tweak
|
||||||
|
# soundadd
|
||||||
|
# sounddel
|
||||||
|
# rscadd (general adding of nice things)
|
||||||
|
# rscdel (general deleting of nice things)
|
||||||
|
# imageadd
|
||||||
|
# imagedel
|
||||||
|
# maptweak
|
||||||
|
# spellcheck (typo fixes)
|
||||||
|
# experiment
|
||||||
|
#################################
|
||||||
|
|
||||||
|
# Your name.
|
||||||
|
author: Lbnesquik
|
||||||
|
|
||||||
|
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
|
||||||
|
delete-after: True
|
||||||
|
|
||||||
|
# Any changes you've made. See valid prefix list above.
|
||||||
|
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
|
||||||
|
# SCREW THIS UP AND IT WON'T WORK.
|
||||||
|
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
|
||||||
|
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
|
||||||
|
changes:
|
||||||
|
- rscadd: "General biogenerator improvements:"
|
||||||
|
- rscadd: "Added feedback noise to the processing."
|
||||||
|
- rscadd: "Allow for cream dispensing."
|
||||||
|
- rscadd: "Allow for plant bag creation."
|
||||||
|
- rscadd: "Allow for 5 units of meat to be dispensed at once."
|
||||||
|
- rscadd: "Allow for 5 units of liquids to be dispensed at once totalling 50u."
|
||||||
|
- rscadd: "Add and allow the creation of larger plant bags for easier ferrying of plants.."
|
||||||
|
- rscadd: "Add a description to the machine itself."
|
||||||
|
- bugfix: "Fix a typo."
|
||||||
BIN
sound/machines/biogenerator_end.ogg
Normal file
BIN
sound/machines/biogenerator_end.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user