Hey it almost works

This commit is contained in:
Pieter-Jan Briers
2017-02-04 01:00:12 +01:00
parent d0a574ff21
commit aeb057579e
23 changed files with 68 additions and 78 deletions
+3 -4
View File
@@ -151,13 +151,12 @@
// Lack of light hurts non-mushrooms
if(isturf(loc))
var/turf/currentTurf = loc
#warn TODO
var/lightAmt = 0//currentTurf.lighting_lumcount
var/lightAmt = currentTurf.get_lumcount()
if(myseed.get_gene(/datum/plant_gene/trait/plant_type/fungal_metabolism))
if(lightAmt < 2)
if(lightAmt < 0.2)
adjustHealth(-1 / rating)
else // Non-mushroom
if(lightAmt < 4)
if(lightAmt < 0.4)
adjustHealth(-2 / rating)
//Water//////////////////////////////////////////////////////////////////