Fixes typos and indenting present in the destilery module, and renames it to distillery

Updates the #include's for the renamed files in `baystation12.dme`
This commit is contained in:
Zulker Nayeen Nahiyan
2015-01-08 01:39:57 +06:00
parent 704d668b18
commit fbffce744c
2 changed files with 87 additions and 109 deletions

View File

@@ -865,12 +865,12 @@
#include "code\modules\clothing\under\jobs\security.dm" #include "code\modules\clothing\under\jobs\security.dm"
#include "code\modules\customitems\item_defines.dm" #include "code\modules\customitems\item_defines.dm"
#include "code\modules\customitems\item_spawning.dm" #include "code\modules\customitems\item_spawning.dm"
#include "code\modules\destilery\main.dm"
#include "code\modules\detectivework\evidence.dm" #include "code\modules\detectivework\evidence.dm"
#include "code\modules\detectivework\footprints_and_rag.dm" #include "code\modules\detectivework\footprints_and_rag.dm"
#include "code\modules\detectivework\forensics.dm" #include "code\modules\detectivework\forensics.dm"
#include "code\modules\detectivework\scanner.dm" #include "code\modules\detectivework\scanner.dm"
#include "code\modules\detectivework\scanning_console.dm" #include "code\modules\detectivework\scanning_console.dm"
#include "code\modules\distillery\main.dm"
#include "code\modules\economy\Accounts.dm" #include "code\modules\economy\Accounts.dm"
#include "code\modules\economy\Accounts_DB.dm" #include "code\modules\economy\Accounts_DB.dm"
#include "code\modules\economy\ATM.dm" #include "code\modules\economy\ATM.dm"

View File

@@ -1,14 +1,11 @@
//This dm file includes some food processing machines: // This dreammaker file includes the food processing machines:
// - I. Mill // - I. Mill
// - II. Fermenter // - II. Fermenter
// - III. Still // - III. Still
// - IV. Squeezer // - IV. Squeezer
// - V. Centrifuge // - V. Centrifuge
// I. The mill is intended to be loaded with produce and returns ground up items. For example: Wheat should become flour and grapes should become raisins. // I. The mill is intended to be loaded with produce and returns ground up items. For example: Wheat should become flour and grapes should become raisins.
/obj/machinery/mill /obj/machinery/mill
var/list/obj/item/weapon/reagent_containers/food/input = list() var/list/obj/item/weapon/reagent_containers/food/input = list()
var/list/obj/item/weapon/reagent_containers/food/output = list() var/list/obj/item/weapon/reagent_containers/food/output = list()
@@ -40,14 +37,14 @@
return return
progress++ progress++
if(progress < 10) //Edit this value to make milling faster or slower if (progress < 10) // Edit this value to make milling faster or slower.
return // Not done yet. return // Not done yet.
switch (milled_item.type) switch (milled_item.type)
if(/obj/item/weapon/reagent_containers/food/snacks/grown/wheat) //Wheat becomes flour if (/obj/item/weapon/reagent_containers/food/snacks/grown/wheat) // Wheat becomes flour.
var/obj/item/weapon/reagent_containers/food/snacks/flour/F = new(src) var/obj/item/weapon/reagent_containers/food/snacks/flour/F = new(src)
output += F output += F
if(/obj/item/weapon/reagent_containers/food/snacks/flour) //Flour is still flour if (/obj/item/weapon/reagent_containers/food/snacks/flour) // Flour is still flour.
var/obj/item/weapon/reagent_containers/food/snacks/flour/F = new(src) var/obj/item/weapon/reagent_containers/food/snacks/flour/F = new(src)
output += F output += F
else else
@@ -69,13 +66,7 @@
F.loc = src.loc F.loc = src.loc
output -= F output -= F
// II. The fermenter is intended to be loaded with food items and returns medium-strength alcohol items, sucha s wine and beer. // II. The fermenter is intended to be loaded with food items and returns medium-strength alcohol items, sucha s wine and beer.
/obj/machinery/fermenter /obj/machinery/fermenter
var/list/obj/item/weapon/reagent_containers/food/input = list() var/list/obj/item/weapon/reagent_containers/food/input = list()
var/list/obj/item/weapon/reagent_containers/food/output = list() var/list/obj/item/weapon/reagent_containers/food/output = list()
@@ -113,11 +104,11 @@
water_level-- water_level--
progress++ progress++
if(progress < 10) //Edit this value to make milling faster or slower if (progress < 10) // Edit this value to make milling faster or slower.
return // Not done yet. return // Not done yet.
switch (fermenting_item.type) switch (fermenting_item.type)
if(/obj/item/weapon/reagent_containers/food/snacks/flour) //Flour is still flour if (/obj/item/weapon/reagent_containers/food/snacks/flour) // Flour is still flour.
var/obj/item/weapon/reagent_containers/food/drinks/cans/beer/B = new(src) var/obj/item/weapon/reagent_containers/food/drinks/cans/beer/B = new(src)
output += B output += B
else else
@@ -139,14 +130,11 @@
F.loc = src.loc F.loc = src.loc
output -= F output -= F
// III. The still is a machine that is loaded with food items and returns hard liquor, such as vodka. // III. The still is a machine that is loaded with food items and returns hard liquor, such as vodka.
/obj/machinery/still /obj/machinery/still
var/list/obj/item/weapon/reagent_containers/food/input = list() var/list/obj/item/weapon/reagent_containers/food/input = list()
var/list/obj/item/weapon/reagent_containers/food/output = list() var/list/obj/item/weapon/reagent_containers/food/output = list()
var/obj/item/weapon/reagent_containers/food/destilling_item var/obj/item/weapon/reagent_containers/food/distilling_item
var/busy = 0 var/busy = 0
var/progress = 0 var/progress = 0
var/error = 0 var/error = 0
@@ -166,25 +154,25 @@
if (!busy) if (!busy)
use_power = 1 use_power = 1
if (input.len) if (input.len)
destilling_item = input[1] distilling_item = input[1]
input -= destilling_item input -= distilling_item
progress = 0 progress = 0
busy = 1 busy = 1
use_power = 2 use_power = 2
return return
progress++ progress++
if(progress < 10) //Edit this value to make distilling faster or slower if (progress < 10) // Edit this value to make distilling faster or slower.
return // Not done yet. return // Not done yet.
switch(destilling_item.type) switch (distilling_item.type)
if(/obj/item/weapon/reagent_containers/food/drinks/cans/beer) //Flour is still flour if (/obj/item/weapon/reagent_containers/food/drinks/cans/beer) // Flour is still flour.
var/obj/item/weapon/reagent_containers/food/drinks/bottle/vodka/V = new(src) var/obj/item/weapon/reagent_containers/food/drinks/bottle/vodka/V = new(src)
output += V output += V
else else
error = 1 error = 1
del(destilling_item) del(distilling_item)
busy = 0 busy = 0
/obj/machinery/still/attackby(var/obj/item/weapon/W as obj, mob/user as mob) /obj/machinery/still/attackby(var/obj/item/weapon/W as obj, mob/user as mob)
@@ -200,11 +188,7 @@
F.loc = src.loc F.loc = src.loc
output -= F output -= F
// IV. The squeezer is intended to destroy inserted food items, but return some of the reagents they contain. // IV. The squeezer is intended to destroy inserted food items, but return some of the reagents they contain.
/obj/machinery/squeezer /obj/machinery/squeezer
var/list/obj/item/weapon/reagent_containers/food/input = list() var/list/obj/item/weapon/reagent_containers/food/input = list()
var/obj/item/weapon/reagent_containers/food/squeezed_item var/obj/item/weapon/reagent_containers/food/squeezed_item
@@ -221,12 +205,7 @@
idle_power_usage = 10 idle_power_usage = 10
active_power_usage = 500 active_power_usage = 500
// V. The centrifuge spins inserted food items. It is intended to squeeze out the reagents that are common food catalysts (enzymes currently) // V. The centrifuge spins inserted food items. It is intended to squeeze out the reagents that are common food catalysts (enzymes currently)
/obj/machinery/centrifuge /obj/machinery/centrifuge
var/list/obj/item/weapon/reagent_containers/food/input = list() var/list/obj/item/weapon/reagent_containers/food/input = list()
var/list/obj/item/weapon/reagent_containers/food/output = list() var/list/obj/item/weapon/reagent_containers/food/output = list()
@@ -260,7 +239,7 @@
return return
progress++ progress++
if(progress < 10) //Edit this value to make milling faster or slower if (progress < 10) // Edit this value to make milling faster or slower.
return // Not done yet. return // Not done yet.
var/transfer_enzymes = spinning_item.reagents.get_reagent_amount("enzyme") var/transfer_enzymes = spinning_item.reagents.get_reagent_amount("enzyme")
@@ -287,4 +266,3 @@
while (enzymes >= 50) while (enzymes >= 50)
enzymes -= 50 enzymes -= 50
new/obj/item/weapon/reagent_containers/food/condiment/enzyme(src.loc) new/obj/item/weapon/reagent_containers/food/condiment/enzyme(src.loc)