Chem grenade fix

Missed this in my last commit:
- Added a result amount for chemsmoke so it calculates the created_volume correctly
This commit is contained in:
Loganbacca
2014-02-14 15:44:45 +13:00
parent 499e364971
commit d378eb0692

View File

@@ -452,13 +452,13 @@ datum
id = "chemsmoke"
result = null
required_reagents = list("potassium" = 1, "sugar" = 1, "phosphorus" = 1)
result_amount = null
result_amount = 0.4
secondary = 1
on_reaction(var/datum/reagents/holder, var/created_volume)
var/location = get_turf(holder.my_atom)
var/datum/effect/effect/system/smoke_spread/chem/S = new /datum/effect/effect/system/smoke_spread/chem
S.attach(location)
S.set_up(holder, created_volume/7.5, 0, location)
S.set_up(holder, created_volume, 0, location)
playsound(location, 'sound/effects/smoke.ogg', 50, 1, -3)
spawn(0)
S.start()