Differences From
Artifact [7816834c67]:
44 44 end
45 45 elseif ctx.how.state == 'prog' then
46 46 local d = ctx.how.delta
47 47 local p = user.action.prog.sprint
48 48 -- is the player currently holding any of WASD
49 49 local isMoving = bit.band(0x0f, user.entity:get_player_control_bits()) ~= 0
50 50 if p and isMoving then
51 + user.cooldownTimes.stamina = minetest.get_gametime()
51 52 p.cb = p.cb + cost*d
52 - if p.cb >= 10 then
53 - user:statDelta('stamina', -10)
54 - if user:effectiveStat 'stamina' < 10 then halt() end
53 + if p.cb >= 5 then
54 + user:statDelta('stamina', -p.cb)
55 + p.cb = 0
56 + if user:effectiveStat 'stamina' < cost then halt() end
55 57 end
56 58 end
57 59 elseif ctx.how.state == 'halt' then
58 60 halt()
59 61 end
60 62 end;
61 63 };
................................................................................
88 90 local invis = lib.image '[fill:1x1:0,0:#00000000'
89 91 local plate = adorn.suit and adorn.suit.plate or invis
90 92 local lining = adorn.suit and adorn.suit.lining or invis
91 93
92 94 return {lining, plate, skin, skin, eye, hair}
93 95 end;
94 96 stats = {
95 - psiRegen = 1.3;
96 - psiPower = 1.2;
97 97 psi = 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 + irradiation = 0.8; -- you are smaller, so it takes less rads to kill ya
101 102 };
102 103 traits = {
103 104 health = 400;
104 105 lungCapacity = .6;
105 - irradiation = 0.8; -- you are smaller, so it takes less rads to kill ya
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 - staminaRegen = 30.0;
111 + staminaRegen = 10.0;
112 + psiRegen = 1.3;
113 + psiPower = 1.2;
112 114 };
113 115 };
114 116 male = {
115 117 name = 'Human Male';
116 118 eyeHeight = 1.6;
117 119 stats = {
118 - psiRegen = 1.0;
119 - psiPower = 1.0;
120 120 psi = 1.0;
121 121 nutrition = 1.0;
122 122 hydration = 1.0;
123 - staminaRegen = 20; -- men are strong but have inferior endurance
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 = 1.0;
134 + psiPower = 1.0;
133 135 };
134 136 };
135 137 };
136 138 traits = {};
137 139 abilities = {bioAbilities.sprint};
138 140 };
139 141 }