mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-23 21:16:16 +01:00
Ports reagents id removal and typepath usage.
This commit is contained in:
@@ -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
|
||||
*/
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user