-
Notifications
You must be signed in to change notification settings - Fork 29
Adds replicators! Simply tell it what you want and it'll make it so. #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest of review coming later:tm:
DS13/code/game/objects/replicator.dm
Outdated
@@ -0,0 +1,322 @@ | |||
/obj/machinery/replicator //Coded by "AbsurdlyLudicrous", tweaked to use voice + cleaned up by Kmc. | |||
name = "replicator" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalisation
DS13/code/game/objects/replicator.dm
Outdated
@@ -0,0 +1,322 @@ | |||
/obj/machinery/replicator //Coded by "AbsurdlyLudicrous", tweaked to use voice + cleaned up by Kmc. | |||
name = "replicator" | |||
desc = "An advanced energy -> matter synthesizer which is charged by <i>biomatter</i> and power. Click it to see the menu and simply say what you want to it." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...nced energy -> matter sy...
Muh immersion
icon_state = "replicator" | ||
use_power = IDLE_POWER_USE | ||
idle_power_usage = 40 | ||
pixel_y = 32 //So it glues to the wall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if i want mine to the south,this is stuff you do in var edits in mapping or in subtypes,not the parent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
REEEEE
You can do it to the south because of goonwalls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See how APC's do their pixel stuff
use_power = IDLE_POWER_USE | ||
idle_power_usage = 40 | ||
pixel_y = 32 //So it glues to the wall | ||
anchored = TRUE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anchored = TRUE | |
anchored = TRUE | |
density = TRUE |
DS13/code/game/objects/replicator.dm
Outdated
var/list/all_menus = list() //All the menu items. Built on init(). We scan for menu items that've been ordered here. | ||
var/list/menualtnames = list("nutrients", "donk pizza", "veggie pizza", "surprise me", "you choose", "something", "i dont care","slab of meat","nutritional supplement") | ||
var/list/temps = list("cold", "warm", "hot", "extra hot") | ||
var/menutype = "ready" //Tracks what stage the machine's at. If it's replicating the UI pops up with "please wait!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a couple of DEFINEs or a boolean for this,death to string statuses
var/list/menutier2 = list("burger", "steak", "tea earl grey", "coffee", "fries","onion rings", "pancakes") | ||
var/list/menutier3 = list("cheese pizza", "meat pizza", "mushroom pizza", "meat pizza", "pineapple pizza", "donkpocket pizza", "vegetable pizza") | ||
var/list/menutier4 = list("cake batter", "dough","egg box", "flour", "milk", "enzymes", "cheese wheel", "meat slab","an insult to pizza") | ||
var/list/all_menus = list() //All the menu items. Built on init(). We scan for menu items that've been ordered here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is, look at init()
|
||
/obj/machinery/replicator/Initialize() | ||
. = ..() | ||
all_menus += menutier1.Copy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of this is unused
DS13/code/game/objects/replicator.dm
Outdated
popup.open() | ||
|
||
/obj/machinery/replicator/emag_act(mob/user) | ||
if(emagged == FALSE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(emagged == FALSE) | |
if(!emagged) |
DS13/code/game/objects/replicator.dm
Outdated
all_menus += menualtnames.Copy() | ||
|
||
/obj/machinery/replicator/ui_interact(mob/user) // The microwave Menu //I am reasonably certain that this is not a microwave | ||
if(stat & (BROKEN|NOPOWER)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(stat & (BROKEN|NOPOWER)) | |
if(is_operational()) |
DS13/code/game/objects/replicator.dm
Outdated
/obj/machinery/replicator/power_change() | ||
if(powered()) | ||
stat &= ~NOPOWER | ||
START_PROCESSING(SSmachines, src) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You never stop processing,why start again?
https://streamable.com/g4iiw
These replicators aren't quite as horrifyingly overpowered as the real trek ones. They require 2 things:
Power
Biomatter
Why?!?!?!
Well, that means that botany isn't completely useless and it also encourages chefs to use the replicator as a supplement to their own cooking.
It starts out with barely edible food and progresses up to good foods and then pre-prepared ingredients like cake batter, dough etc. for the chef to use. You upgrade it with RnD parts.
You can examine them to see the unlocked menus and then just say what you want (don't make it a question, like can I have burger?)
Coded by AbsurdlyLudicrous, cleaned up by myself.
🆑 AbsurdlyLudicrous & Kmc2000
add: Added replicators which convert power and biomatter into edible foods.
/:cl: