starlit  Diff

Differences From Artifact [5368f81f41]:

To Artifact [822a964373]:


   181    181   	for name,user in pairs(starlit.activeUsers) do
   182    182   		local tr = user:species().tempRange
   183    183   		local t = starlit.world.climate.temp(user.entity:get_pos())
   184    184   
   185    185   		do -- this bit probably belongs in starlit:bio but we do it here in order
   186    186   		   -- to spare ourselves another call into the dark swamp of climate.temp
   187    187   		   local urg = 1
   188         -		   local function alarm(kind)
   189         -			   user:alarm(urg, kind, nil, {
   190         -				   elt = user.hud.elt.temp, ofs = {x=100,y=0};
   191         -				   tex = 'starlit-ui-alert-'..kind..'.png';
   192         -			   })
   193         -		   end
   194    188   		   local hz = user:tempHazard(t)
   195    189   			local tr = user:species().tempRange.survivable
   196    190   		   if hz == 'cold' then
   197    191   			   if tr[1] - t > 7 then urg = 2 end
   198         -			   alarm 'temp-cold'
          192  +			   user:alarm(urg, 'freeze', 3)
   199    193   		   elseif hz == 'hot' then
   200    194   			   if t - tr[2] > 7 then urg = 2 end
   201         -			   alarm 'temp-hot'
          195  +			   user:alarm(urg, 'overheat', 3)
   202    196   		   end
   203    197   		end
   204    198   
   205    199   		local insul = 0
   206    200   		local naked = user:naked()
   207    201   		local suitDef
   208    202   		if not naked then