Skip to content

Commit

Permalink
Rebalances Labor Camp points + bugfix (#9028)
Browse files Browse the repository at this point in the history
  • Loading branch information
ToGWtF committed Jun 29, 2020
1 parent 9475182 commit f4f0375
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/stacks/bscrystal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
singular_name = "bluespace crystal"
w_class = WEIGHT_CLASS_TINY
materials = list(MAT_BLUESPACE=MINERAL_MATERIAL_AMOUNT)
points = 50
points = 75
var/blink_range = 8 // The teleport range when crushed/thrown at someone.
refined_type = /obj/item/stack/sheet/bluespace_crystal
grind_results = list(/datum/reagent/bluespace = 20)
Expand Down
6 changes: 3 additions & 3 deletions code/game/objects/items/stacks/sheets/glass.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ GLOBAL_LIST_INIT(glass_recipes, list ( \
resistance_flags = ACID_PROOF
merge_type = /obj/item/stack/sheet/glass
grind_results = list(/datum/reagent/silicon = 20)
point_value = 1
point_value = 5
tableVariant = /obj/structure/table/glass

/obj/item/stack/sheet/glass/suicide_act(mob/living/carbon/user)
Expand Down Expand Up @@ -151,7 +151,7 @@ GLOBAL_LIST_INIT(reinforced_glass_recipes, list ( \
resistance_flags = ACID_PROOF
merge_type = /obj/item/stack/sheet/rglass
grind_results = list(/datum/reagent/silicon = 20, /datum/reagent/iron = 10)
point_value = 4
point_value = 6

/obj/item/stack/sheet/rglass/attackby(obj/item/W, mob/user, params)
add_fingerprint(user)
Expand Down Expand Up @@ -194,7 +194,7 @@ GLOBAL_LIST_INIT(prglass_recipes, list ( \
resistance_flags = ACID_PROOF
merge_type = /obj/item/stack/sheet/plasmarglass
grind_results = list(/datum/reagent/silicon = 20, /datum/reagent/toxin/plasma = 10, /datum/reagent/iron = 10)
point_value = 23
point_value = 30

/obj/item/stack/sheet/plasmarglass/Initialize(mapload, new_amount, merge = TRUE)
recipes = GLOB.prglass_recipes
Expand Down
12 changes: 6 additions & 6 deletions code/game/objects/items/stacks/sheets/mineral.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ GLOBAL_LIST_INIT(sandbag_recipes, list ( \
materials = list(MAT_DIAMOND=MINERAL_MATERIAL_AMOUNT)
novariants = TRUE
grind_results = list(/datum/reagent/carbon = 30)
point_value = 25
point_value = 50
merge_type = /obj/item/stack/sheet/mineral/diamond

GLOBAL_LIST_INIT(diamond_recipes, list ( \
Expand All @@ -133,7 +133,7 @@ GLOBAL_LIST_INIT(diamond_recipes, list ( \
materials = list(MAT_URANIUM=MINERAL_MATERIAL_AMOUNT)
novariants = TRUE
grind_results = list(/datum/reagent/uranium = 20)
point_value = 20
point_value = 35
merge_type = /obj/item/stack/sheet/mineral/uranium

GLOBAL_LIST_INIT(uranium_recipes, list ( \
Expand All @@ -160,7 +160,7 @@ GLOBAL_LIST_INIT(uranium_recipes, list ( \
max_integrity = 100
materials = list(MAT_PLASMA=MINERAL_MATERIAL_AMOUNT)
grind_results = list(/datum/reagent/toxin/plasma = 20)
point_value = 20
point_value = 25
merge_type = /obj/item/stack/sheet/mineral/plasma

/obj/item/stack/sheet/mineral/plasma/suicide_act(mob/living/carbon/user)
Expand Down Expand Up @@ -201,7 +201,7 @@ GLOBAL_LIST_INIT(plasma_recipes, list ( \
sheettype = "gold"
materials = list(MAT_GOLD=MINERAL_MATERIAL_AMOUNT)
grind_results = list(/datum/reagent/gold = 20)
point_value = 20
point_value = 30
merge_type = /obj/item/stack/sheet/mineral/gold

GLOBAL_LIST_INIT(gold_recipes, list ( \
Expand Down Expand Up @@ -230,7 +230,7 @@ GLOBAL_LIST_INIT(gold_recipes, list ( \
sheettype = "silver"
materials = list(MAT_SILVER=MINERAL_MATERIAL_AMOUNT)
grind_results = list(/datum/reagent/silver = 20)
point_value = 20
point_value = 25
merge_type = /obj/item/stack/sheet/mineral/silver
tableVariant = /obj/structure/table/optable

Expand Down Expand Up @@ -290,7 +290,7 @@ GLOBAL_LIST_INIT(bananium_recipes, list ( \
throw_range = 3
sheettype = "titanium"
materials = list(MAT_TITANIUM=MINERAL_MATERIAL_AMOUNT)
point_value = 20
point_value = 35
merge_type = /obj/item/stack/sheet/mineral/titanium

GLOBAL_LIST_INIT(titanium_recipes, list ( \
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/stacks/sheets/sheet_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ GLOBAL_LIST_INIT(plasteel_recipes, list ( \
resistance_flags = FIRE_PROOF
merge_type = /obj/item/stack/sheet/plasteel
grind_results = list(/datum/reagent/iron = 20, /datum/reagent/toxin/plasma = 20)
point_value = 23
point_value = 25
tableVariant = /obj/structure/table/reinforced

/obj/item/stack/sheet/plasteel/Initialize(mapload, new_amount, merge = TRUE)
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mining/machine_processing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
var/output_dir = SOUTH

/obj/machinery/mineral/proc/unload_mineral(atom/movable/S)
if(!istype(S, /obj/item/stack/ore))
return
S.forceMove(drop_location())
var/turf/T = get_step(src,output_dir)
if(T)
Expand Down
9 changes: 9 additions & 0 deletions code/modules/mining/machine_unloading.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@
return
CHECK_TICK
CHECK_TICK
for(var/obj/item/storage/bag/ore/OB in T)
for (var/obj/item/stack/ore/O in OB)
OB.contents -= O
unload_mineral(O)
limit++
if (limit>=10)
return
CHECK_TICK
CHECK_TICK
for(var/obj/item/I in T)
unload_mineral(I)
limit++
Expand Down

0 comments on commit f4f0375

Please sign in to comment.