starlit  Diff

Differences From Artifact [4cee014aa7]:

To Artifact [1ac6a2a876]:


   158    158   
   159    159   		uiColor = function(self) return lib.color {hue=238,sat=.5,lum=.5} end;
   160    160   
   161    161   		-----------
   162    162   		-- stats --
   163    163   		-----------
   164    164   		statDelta = function(self, stat, d, cause, abs)
          165  +			if self.entity:get_hp() == 0 then return end
   165    166   			local dt = self.persona.statDeltas
   166    167   			local min, max, base = self:statRange(stat)
   167    168   			if abs then
   168    169   				if     d == true  then d = max
   169    170   				elseif d == false then d = min end
   170    171   			end
   171    172   			if stat == 'health' then
................................................................................
   714    715   			dropInv 'main'
   715    716   			dropInv 'starlit_suit'
   716    717   			self:updateSuit()
   717    718   		end;
   718    719   		onRespawn = function(self)
   719    720   			local meta = self.entity:get_meta()
   720    721   			self.entity:set_pos(vector.from_string(meta:get_string'starlit_spawn'))
   721         -			self:statDelta('psi',          0, 'death', true)
          722  +			self:statDelta('numina',          0, 'death', true)
   722    723   			self:statDelta('nutrition', 1500, 'death', true)
   723    724   			self:statDelta('hydration',    2, 'death', true)
   724    725   			self:statDelta('fatigue',      0, 'death', true)
   725    726   			self:statDelta('stamina',      0, 'death', true)
   726    727   			self:updateSuit()
   727    728   			return true
   728    729   		end;