Skip to content

Commit

Permalink
Merge pull request Civ13#2666 from KanohaShinobi/master
Browse files Browse the repository at this point in the history
Drill balancing
  • Loading branch information
KanohaShinobi authored Apr 1, 2024
2 parents affdf37 + ce37a2a commit 1c9ae6b
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions code/modules/1713/modern_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1041,17 +1041,41 @@
not_disassemblable = FALSE
density = TRUE
var/ore_types = list(
/obj/item/stack/ore/iron,
/obj/item/stack/ore/iron,
/obj/item/stack/ore/iron,
/obj/item/stack/ore/iron,
/obj/item/stack/ore/iron,
/obj/item/stack/ore/iron,
/obj/item/stack/ore/iron,
/obj/item/stack/ore/gold,
/obj/item/stack/ore/glass,
/obj/item/stack/ore/silver,
/obj/item/stack/ore/copper,
/obj/item/stack/ore/tin,
/obj/item/stack/ore/tin,
/obj/item/stack/ore/tin,
/obj/item/stack/ore/saltpeter,
/obj/item/stack/ore/saltpeter,
/obj/item/stack/ore/saltpeter,
/obj/item/stack/ore/coal,
/obj/item/stack/ore/coal,
/obj/item/stack/ore/coal,
/obj/item/stack/ore/coal,
/obj/item/stack/ore/coal,
/obj/item/stack/ore/sulphur,
/obj/item/stack/ore/sulphur,
/obj/item/stack/ore/sulphur,
/obj/item/stack/ore/lead,
/obj/item/stack/ore/lead,
/obj/item/stack/ore/lead,
/obj/item/stack/material/stone,
/obj/item/stack/material/stone,
/obj/item/stack/material/stone,
/obj/item/stack/material/stone,
/obj/item/stack/material/stone,
/obj/item/stack/material/stone,
/obj/item/stack/material/stone,
/obj/item/weapon/barrier,
)
var/active = FALSE
Expand Down Expand Up @@ -1154,7 +1178,7 @@
var/picked = pick(ore_types)

var/obj/item/stack/tospawn = new picked(null)
tospawn.amount = rand(10,30)
tospawn.amount = rand(2,5)
for (var/obj/item/stack/S in get_turf(src))
if (S.type == tospawn.type)
S.amount += tospawn.amount
Expand All @@ -1164,7 +1188,7 @@
if (tospawn)
tospawn.loc = get_turf(src)
visible_message(SPAN_NOTICE("\The [src] drills up [tospawn.name]."))
next_spawn = 30
next_spawn = 60

update_icon()
spawn (2 SECONDS)
Expand Down

0 comments on commit 1c9ae6b

Please sign in to comment.