Differences From Artifact [e0959a01e2]:
- File mods/starlit/species.lua — part of check-in [953151446f] at 2024-05-05 19:31:39 on branch trunk — better alarm LEDs, continue work on matter compiler UI, hack around gravitational horrorscape (i.e. stop shitting all over the server's `minetest.conf`), better stat interface, tweak some compute stats, be more generous with starting battery loadout, mercilessly squash numberless bugs beneath my jackbooted heel (user: lexi, size: 9636) [annotate] [blame] [check-ins using]
To Artifact [236ca7459a]:
- File mods/starlit/species.lua — part of check-in [4732f8d454] at 2025-01-19 19:18:55 on branch trunk — we have always been at war with east minecraft (user: lexi, size: 9632) [annotate] [blame] [check-ins using]
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 + user.cooldownTimes.stamina = core.get_gametime() 52 52 p.cb = p.cb + cost*d 53 53 if p.cb >= 5 then 54 54 user:statDelta('stamina', -p.cb) 55 55 p.cb = 0 56 56 if user:effectiveStat 'stamina' < cost then halt() end 57 57 end 58 58 end