Skip to content

Commit

Permalink
bugfix: force qdel gems (#4075)
Browse files Browse the repository at this point in the history
  • Loading branch information
NightDawnFox authored Dec 18, 2023
1 parent 67024ed commit f2ef062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/machinery/computer/syndie_cargo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,10 @@ GLOBAL_LIST_INIT(data_storages, list()) //list of all cargo console data storage
cashEarned = round(Gem.sell_multiplier * data_storage.cash_per_gem)
msg += "[span_good("+[cashEarned]")]: Received [Gem.name]. Great work.<br>"
data_storage.cash += cashEarned
qdel(thing, force = TRUE) //ovveride for special gems

qdel(thing)
if(!QDELETED(thing))
qdel(thing)
qdel(MA)
data_storage.sold_atoms += "."

Expand Down
1 change: 1 addition & 0 deletions code/modules/shuttle/supply.dm
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
pointsEarned = round(G.sell_multiplier * SSshuttle.points_per_gem)
msg += "<span class='good'>+[pointsEarned]</span>: Received [G]. Excellent work.<br>"
SSshuttle.points += pointsEarned
qdel(thing, force = TRUE) //ovveride for special gems

qdel(MA)
SSshuttle.sold_atoms += "."
Expand Down

0 comments on commit f2ef062

Please sign in to comment.