mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 15:32:25 +00:00
Converts Reagents to Typepaths and Centralises Reagent Spawning (#9140)
Converts reagents to use typepaths instead of IDs.
Centralises reagent spawning in a lot of places to use reagents_to_add instead of a variety of custom methods or initialise overrides.
This commit is contained in:
@@ -395,8 +395,8 @@ var/list/mineral_can_smooth_with = list(
|
||||
if(prob(25))
|
||||
var/datum/reagents/R = new/datum/reagents(20)
|
||||
R.my_atom = src
|
||||
R.add_reagent("stone_dust",20)
|
||||
var/datum/effect/effect/system/smoke_spread/chem/S = new("stone_dust")
|
||||
R.add_reagent(/datum/reagent/stone_dust,20)
|
||||
var/datum/effect/effect/system/smoke_spread/chem/S = new /datum/effect/effect/system/smoke_spread/chem(/datum/reagent/stone_dust) // have to explicitly say the type to avoid issues with warnings
|
||||
S.show_log = 0
|
||||
S.set_up(R, 10, 0, src, 40)
|
||||
S.start()
|
||||
|
||||
Reference in New Issue
Block a user