Ports reagents id removal and typepath usage.

This commit is contained in:
Lin
2020-12-09 14:32:36 -03:00
committed by Archie
parent 228192fd62
commit a7c539ac32
323 changed files with 31959 additions and 32469 deletions
@@ -16,7 +16,7 @@
/datum/bounty/lewd/applies_to(obj/O)
if(!istype(O, /obj/item/reagent_containers))
return FALSE
if(!O.reagents || !O.reagents.has_reagent(wanted_reagent.id))
if(!O.reagents || !O.reagents.has_reagent(wanted_reagent.type))
return FALSE
if(O.flags_1 & HOLOGRAM_1)
return FALSE
@@ -25,7 +25,7 @@
/datum/bounty/lewd/ship(obj/O)
if(!applies_to(O))
return
shipped_volume += O.reagents.get_reagent_amount(wanted_reagent.id)
shipped_volume += O.reagents.get_reagent_amount(wanted_reagent.type)
if(shipped_volume > required_volume)
shipped_volume = required_volume
@@ -102,4 +102,4 @@ datum/bounty/lewd/fluid/New()
worth += fluids[/datum/reagent/consumable/milk]*2
worth += fluids[/datum/reagent/consumable/femcum]*5
return worth
*/
*/