Skip to content

Commit

Permalink
[S] Fix hivelord core exploits & dupe with ore redemption (ParadiseSS…
Browse files Browse the repository at this point in the history
…13#23949)

* Fix infinite hivelord cores exploit using lazarus

* Fixed resource exploit for ore redemption
  • Loading branch information
dj-34 authored Jan 26, 2024
1 parent 010aec7 commit 19433e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion code/modules/mining/machine_redemption.dm
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,14 @@
return FALSE
var/stored = get_num_smeltable_alloy(D)
var/desired = min(amount, stored, MAX_STACK_SIZE)
if(!desired)
return FALSE
materials.use_amount(D.materials, desired)
// Spawn the alloy
var/result = new D.build_path(src)
if(istype(result, /obj/item/stack/sheet))
var/obj/item/stack/sheet/mineral/A = result
A.amount = amount
A.amount = desired
unload_mineral(A)
else
unload_mineral(result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
retreat_distance = 3
minimum_distance = 3
pass_flags = PASSTABLE
loot = list(/obj/item/organ/internal/regenerative_core)
butcher_results = list(/obj/item/organ/internal/regenerative_core = 1)
var/brood_type = /mob/living/simple_animal/hostile/asteroid/hivelordbrood

/mob/living/simple_animal/hostile/asteroid/hivelord/OpenFire(the_target)
Expand Down Expand Up @@ -172,6 +172,7 @@
throw_message = "bounces harmlessly off of"
crusher_loot = /obj/item/crusher_trophy/legion_skull
loot = list(/obj/item/organ/internal/regenerative_core/legion)
butcher_results = null
brood_type = /mob/living/simple_animal/hostile/asteroid/hivelordbrood/legion
del_on_death = TRUE
stat_attack = UNCONSCIOUS
Expand Down

0 comments on commit 19433e8

Please sign in to comment.