mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #6343 from Nalarac/Circuits
Fixes Integrated Circuit Printer Taking Fractions of a Sheet
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
if(num < 1)
|
||||
to_chat(user, span("warning", "\The [src] is too full to add more metal."))
|
||||
return
|
||||
if(stack.use(num))
|
||||
if(stack.use(max(1, round(num)))) // We don't want to create stacks that aren't whole numbers
|
||||
to_chat(user, span("notice", "You add [num] sheet\s to \the [src]."))
|
||||
metal += num * metal_per_sheet
|
||||
interact(user)
|
||||
|
||||
Reference in New Issue
Block a user