Skip to content

Commit

Permalink
Vein time and malfunction tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
BogCreature committed Nov 15, 2023
1 parent 660c8e1 commit 7950132
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion code/modules/mining/drill.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@
if(panel_open && component_parts)
. += display_parts(user, TRUE)
if(cell.charge < power_cost*5)
. += "<spawn class='notice'>The low power light is blinking."
. += "<spawn class='notice'>The low power light is blinking.</span>"
switch(malfunction)
if(1)
. += "<span class='notice'>The [src]'s <b>laser array<b> appears to be broken and needs to be replaced.</span>"
if(2)
. += "<span class='notice'>The [src]'s <b>sensors<b> appear to be broken and need to be replaced.</span>"
if(3)
. += "<span class='notice'>The [src]'s <b>capacitor<b> appears to be broken and needs to be replaced.</span>
if(4)
. += "<span class='notice'>The [src]'s structure looks like it needs to be <b>welded</b> back together.</span>"

Check failure on line 48 in code/modules/mining/drill.dm

View workflow job for this annotation

GitHub Actions / Run Linters

got 'class', expected one of: '(', operator, field access, ';'
if(5)
Expand Down Expand Up @@ -72,6 +78,7 @@

/obj/machinery/drill/Destroy()
QDEL_NULL(soundloop)
QDEL_NULL(cell)
return ..()

//Instead of being qdeled the drill requires mildly expensive repairs to use again
Expand Down
8 changes: 4 additions & 4 deletions code/modules/mining/ore_veins.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ GLOBAL_LIST_EMPTY(ore_veins)
var/mine_time_multiplier = 1
//Mob spawning variables
var/spawning_started = FALSE
var/max_mobs = 4
var/max_mobs = 6
var/spawn_time = 150 //15 seconds
var/mob_types = list(
/mob/living/simple_animal/hostile/asteroid/goliath/beast = 60,
Expand All @@ -51,7 +51,7 @@ GLOBAL_LIST_EMPTY(ore_veins)
/obj/structure/vein/Initialize()
. = ..()
var/ore_type_amount
mining_charges = rand(round(mining_charges/1.5),mining_charges*1.5)
mining_charges = rand(roundmining_charges - 2,mining_charges + 2)

Check failure on line 54 in code/modules/mining/ore_veins.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "roundmining_charges"
switch(vein_class)
if(1)
ore_type_amount = rand(1,3)
Expand Down Expand Up @@ -98,7 +98,7 @@ GLOBAL_LIST_EMPTY(ore_veins)
//

/obj/structure/vein/classtwo
mining_charges = 9
mining_charges = 8
vein_class = 2
ore_list = list(
/obj/item/stack/ore/iron = 6,
Expand All @@ -114,7 +114,7 @@ GLOBAL_LIST_EMPTY(ore_veins)
spawn_time = 100

/obj/structure/vein/classthree
mining_charges = 12
mining_charges = 10
vein_class = 3
ore_list = list(
/obj/item/stack/ore/iron = 7,
Expand Down

0 comments on commit 7950132

Please sign in to comment.