Skip to content

Commit

Permalink
Nerfs Cargo - No more Factorio Simulator Free money exploit 2023 (#17414
Browse files Browse the repository at this point in the history
)

* e

* Update autolathe.dm

* OOPSIE 2
  • Loading branch information
JamieD1 committed Jan 11, 2023
1 parent f39cafe commit ad37bce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/game/machinery/autolathe.dm
Expand Up @@ -365,6 +365,7 @@
for(var/i=1, i<=multiplier, i++)
var/obj/item/new_item = new D.build_path(A)
new_item.materials = new_item.materials.Copy()
new_item.printed = TRUE
for(var/mat in materials_used)
new_item.materials[mat] = materials_used[mat] / multiplier
new_item.autolathe_crafted(src)
Expand Down
2 changes: 2 additions & 0 deletions code/game/objects/items.dm
Expand Up @@ -143,6 +143,8 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons
/// Is this item fryable without a syndicate frying pan
var/fryable = FALSE

var/printed = FALSE

/obj/item/Initialize()

materials = typelist("materials", materials)
Expand Down
3 changes: 3 additions & 0 deletions code/modules/cargo/exports.dm
Expand Up @@ -41,9 +41,12 @@ Credit dupes that require a lot of manual work shouldn't be removed, unless they
// We go backwards, so it'll be innermost objects sold first
for(var/i in reverseRange(contents))
var/atom/movable/thing = i
var/obj/item/thingy = thing
var/sold = FALSE
if(QDELETED(thing))
continue
if(istype(thingy) && thingy.printed)
qdel(thingy)
for(var/datum/export/E in GLOB.exports_list)
if(!E)
continue
Expand Down

0 comments on commit ad37bce

Please sign in to comment.