Merge pull request #116 from unusualcrow/ok-whats-going-on-here

Fix lumcount issues - let's see if it works now edition
This commit is contained in:
LetterJay
2017-01-07 13:42:14 -05:00
committed by GitHub
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -152,10 +152,10 @@
var/turf/currentTurf = loc
var/lightAmt = currentTurf.get_lumcount()
if(myseed.plant_type == PLANT_MUSHROOM)
if(lightAmt < 2)
if(lightAmt < 0.2)
adjustHealth(-1 / rating)
else // Non-mushroom
if(lightAmt < 4)
if(lightAmt < 0.4)
adjustHealth(-2 / rating)
//Water//////////////////////////////////////////////////////////////////
@@ -114,7 +114,7 @@
var/light_amount = 0 //how much light there is in the place, affects receiving nutrition and healing
if(isturf(H.loc)) //else, there's considered to be no light
var/turf/T = H.loc
light_amount = min(10,T.get_lumcount()) - 5
light_amount = min(10,T.get_lumcount() * 100) - 5
H.nutrition += light_amount
if(H.nutrition > NUTRITION_LEVEL_FULL)
H.nutrition = NUTRITION_LEVEL_FULL
@@ -177,7 +177,7 @@
if(light_amount > 2) //if there's enough light, start dying
H.take_overall_damage(1,1)
else if (light_amount < 2) //heal in the dark
else if (light_amount < 0.2) //heal in the dark
H.heal_overall_damage(1,1)
/*
@@ -111,7 +111,7 @@
// Check for darkness
var/turf/T = get_turf(loc)
if(T && destination)
if((T.get_lumcount())<1 && (destination.get_lumcount())<1) // No one can see us in the darkness, right?
if((T.get_lumcount())<0.1 && (destination.get_lumcount())<0.1) // No one can see us in the darkness, right?
return null
if(T == destination)
destination = null