Skip to content

Commit

Permalink
soulgem tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Gboster-0 committed Aug 28, 2024
1 parent 4a6e64d commit d5ec769
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/_core/obj/item/soulgems/_soulgem.dm
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@
var/turf/T = is_turf(hit_atom) ? hit_atom : get_turf(hit_atom)
if(T)
var/mob/living/mob_to_spawn = stored_soul_path
mob_to_spawn = new mob_to_spawn(T)
mob_to_spawn.soul_size = total_charge
src.total_charge = 0
src.stored_soul_path = null
mob_to_spawn = new mob_to_spawn(T)
INITIALIZE(mob_to_spawn)
GENERATE(mob_to_spawn)
master.add_minion(mob_to_spawn)
Expand All @@ -87,6 +88,7 @@
if(is_advanced(master))
var/mob/living/advanced/A = master
src.quick_equip(A,ignore_worn=TRUE,ignore_dynamic=TRUE,silent=TRUE)
update_sprite()

/obj/item/soulgem/update_sprite()
. = ..()
Expand Down Expand Up @@ -152,7 +154,7 @@
if(total_charge != 0)
caller.to_chat(span("warning","You need an empty soul gem in order to capture souls!"))
return TRUE
if(L.soul_size > src.total_capacity)
if(initial(L.soul_size) > src.total_capacity)
caller.to_chat(span("warning","This soul is too large to be contained in \the [src.name]!"))
return TRUE
total_charge = min(L.soul_size,total_capacity)
Expand Down Expand Up @@ -259,4 +261,4 @@
/obj/item/soulgem/azuras_star
total_capacity = SOUL_SIZE_MYSTIC
do_not_consume = TRUE
value_burgerbux = 1
value_burgerbux = 1

0 comments on commit d5ec769

Please sign in to comment.