mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-28 07:26:17 +01:00
Ports reagents id removal and typepath usage.
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
var/datum/reagent/R = null
|
||||
if(random_reagent)
|
||||
R = pick(subtypesof(/datum/reagent))
|
||||
R = GLOB.chemical_reagents_list[initial(R.id)]
|
||||
R = GLOB.chemical_reagents_list[R]
|
||||
|
||||
queen_bee = new(src)
|
||||
queen_bee.beehome = src
|
||||
@@ -95,7 +95,7 @@
|
||||
bee_resources = max(bee_resources-BEE_RESOURCE_HONEYCOMB_COST, 0)
|
||||
var/obj/item/reagent_containers/honeycomb/HC = new(src)
|
||||
if(queen_bee.beegent)
|
||||
HC.set_reagent(queen_bee.beegent.id)
|
||||
HC.set_reagent(queen_bee.beegent.type)
|
||||
honeycombs += HC
|
||||
|
||||
if(bees.len < get_max_bees())
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
disease_amount = 0
|
||||
volume = 10
|
||||
amount_per_transfer_from_this = 0
|
||||
list_reagents = list("honey" = 5)
|
||||
list_reagents = list(/datum/reagent/consumable/honey = 5)
|
||||
grind_results = list()
|
||||
var/honey_color = ""
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
|
||||
/obj/item/reagent_containers/honeycomb/proc/set_reagent(reagent)
|
||||
var/datum/reagent/R = GLOB.chemical_reagents_list[reagent]
|
||||
if(istype(R))
|
||||
if(R)
|
||||
name = "honeycomb ([R.name])"
|
||||
honey_color = R.color
|
||||
reagents.add_reagent(R.id,5)
|
||||
reagents.add_reagent(reagent,5)
|
||||
else
|
||||
honey_color = ""
|
||||
update_icon()
|
||||
Reference in New Issue
Block a user