starlit  Diff

Differences From Artifact [34f8558850]:

To Artifact [e0959a01e2]:


    90     90   					local invis = lib.image '[fill:1x1:0,0:#00000000'
    91     91   					local plate = adorn.suit and adorn.suit.plate or invis
    92     92   					local lining = adorn.suit and adorn.suit.lining or invis
    93     93   
    94     94   					return {lining, plate, skin, skin, eye, hair}
    95     95   				end;
    96     96   				stats = {
    97         -					psi = 1.2;
           97  +					numina = 1.2;
    98     98   					nutrition = .8; -- women have smaller stomachs
    99     99   					hydration = .8;
   100    100   					morale = 0.8; -- you are not She-Bear Grylls
   101    101   					irradiation = 0.8; -- you are smaller, so it takes less rads to kill ya
   102    102   				};
   103    103   				traits = {
   104    104   					health = 400;
................................................................................
   105    105   					lungCapacity = .6;
   106    106   					sturdiness = 0; -- women are more fragile and thus susceptible to blunt force trauma
   107    107   					metabolism = .150; -- kCal/s
   108    108   					painTolerance = 0.4;
   109    109   					dehydration = 10e-4; -- L/s
   110    110   					speed = 1.1;
   111    111   					staminaRegen = 10.0;
   112         -					psiRegen = 0.05; -- ψ/s
   113         -					psiPower = 1.2;
          112  +					numinaRegen = 0.05; -- ψ/s
          113  +					psi = 1.2;
   114    114   				};
   115    115   			};
   116    116   			male = {
   117    117   				name = 'Human Male';
   118    118   				eyeHeight = 1.6;
   119    119   				stats = {
   120         -					psi = 1.0;
          120  +					numina = 1.0;
   121    121   					nutrition = 1.0;
   122    122   					hydration = 1.0;
   123    123   					staminaRegen = 7; -- men are strong but have inferior endurance
   124    124   				};
   125    125   				traits = {
   126    126   					health = 500;
   127    127   					painTolerance = 1.0;
   128    128   					lungCapacity = 1.0;
   129    129   					sturdiness = 0.3;
   130    130   					metabolism = .150; -- kCal/s
   131    131   					dehydration = 15e-4; -- L/s
   132    132   					speed = 1.0;
   133         -					psiRegen = 0.025;
   134         -					psiPower = 1.0;
          133  +					numinaRegen = 0.025;
          134  +					psi = 1.0;
   135    135   				};
   136    136   			};
   137    137   		};
   138    138   		traits = {};
   139    139   		abilities = {bioAbilities.sprint};
   140    140   	};
   141    141   }
................................................................................
   232    232   		local min, max = starlit.world.species.statRange(pSpecies, pVariant, st)
   233    233   		local delta = max - min
   234    234   		return min + delta*p
   235    235   	end
   236    236   	local ps = starlit.world.species.mkPersonaFor(pSpecies,pVariant)
   237    237   	local startingHP = pct('health', 1.0)
   238    238   	if circumstances.injured    then startingHP = pct('health', circumstances.injured) end
   239         -	if circumstances.psiCharged then ps.statDeltas.psi = pct('psi', circumstances.psiCharged) end
          239  +	if circumstances.numinaCharged then ps.statDeltas.numina = pct('numina', circumstances.numinaCharged) end
   240    240   	for k,v in pairs(starlit.world.stats) do ps.statDeltas[k] = 0 end
   241    241   	ps.statDeltas.warmth = 20 -- don't instantly start dying of frostbite
   242    242   	ps.statDeltas.nutrition = 2000 -- shoulda packed more MRE :c
   243    243   	ps.statDeltas.hydration = 3 -- stay hydrated uwu
   244    244   
   245    245   	entity:set_properties{hp_max = var.traits.health or sp.traits.health}
   246    246   	entity:set_hp(startingHP, 'initial hp')