Who roped me into this. (#50537)

This commit is contained in:
spookydonut
2020-04-24 00:51:57 +08:00
committed by GitHub
3 changed files with 2 additions and 54 deletions
+2 -2
View File
@@ -8,9 +8,9 @@
owner = _owner
if(_profit_ratio)
profit_ratio = _profit_ratio
RegisterSignal(parent, list(COMSIG_ITEM_SOLD, COMSIG_ITEM_SOLD_MATERIAL), .proc/split_profit)
RegisterSignal(parent, list(COMSIG_ITEM_SOLD), .proc/split_profit)
RegisterSignal(parent, list(COMSIG_STRUCTURE_UNWRAPPED, COMSIG_ITEM_UNWRAPPED), .proc/Unwrapped)
RegisterSignal(parent, list(COMSIG_ITEM_SPLIT_PROFIT, COMSIG_ITEM_SPLIT_PROFIT_DRY, COMSIG_ITEM_SPLIT_PROFIT_MATERIAL), .proc/return_ratio)
RegisterSignal(parent, list(COMSIG_ITEM_SPLIT_PROFIT, COMSIG_ITEM_SPLIT_PROFIT_DRY), .proc/return_ratio)
/datum/component/pricetag/proc/Unwrapped()
qdel(src) //Once it leaves it's wrapped container, the object in question should lose it's pricetag component.