Commit Graph

26 Commits

Author SHA1 Message Date
Thomas Rudin
8df57b314e damage player in vacuum 2020-02-05 16:47:08 +01:00
NatureFreshMilk
7dd61a1ffe cleanup 2019-12-10 15:37:44 +01:00
NatureFreshMilk
379d07a8fc luacheck and fixes / no dep on vacuum 2019-12-10 15:05:37 +01:00
Thomas Rudin
a3fcba69c3 Merge pull request #9 from coil0/bottles
Replace air bottle by empty bottle when repairing spacesuit
2019-07-01 14:53:44 +02:00
Thomas Rudin
ee3f029914 Merge pull request #10 from coil0/repair
Make spacesuit not repairable by the anvil or the tool workshop
2019-07-01 14:53:27 +02:00
coil
d113fd26fd Make spacesuit not repairable by the tool workshop 2019-07-01 00:37:16 -04:00
coil
5c6d2b494b Make spacesuit not repairable by anvil 2019-07-01 00:37:11 -04:00
coil
7c5570af5e Replace air bottle by empty bottle when repairing spacesuit
This gives the empty heavy iron bottle back when crafting an air
bottle and a spacesuit part to repair the spacesuit part.
2019-06-30 21:31:50 -04:00
Thomas Rudin
691f45e932 Merge pull request #7 from coil0/timer
Wear spacesuit accounting for server lag
2019-06-25 07:05:20 +02:00
Thomas Rudin
4b538d9fc1 Merge branch 'master' into timer 2019-06-25 07:05:10 +02:00
Thomas Rudin
709a2b26b3 Merge pull request #6 from coil0/spacesuit-parts
Add wear only to spacesuit parts
2019-06-25 07:03:51 +02:00
coil
4e3d5ac072 Wear spacesuit accounting for server lag
This makes spacesuit wear independent from server lag. The timer
between updates should average one second. If it is more,
multiplying by the timer value increases wear as if an update had
happened at every additional step (except the wear value would be
rounded to an integer between 0 and 65535 every time).

Because the real average is slightly higher than one second,
multiplying by the timer value decreases how long the spacesuit
lasts. With one additional step per update and steps of
0.034 seconds (the average time I get in singleplayer), that means
2 or 3 additional wear. So I also decrease armor_use to 70, which
restores the spacesuit to lasting as long as before or slightly
longer.

Also, this allows increasing the minimum timer value to two seconds
or more without needing to change the armor_use value.
2019-06-24 18:58:34 -04:00
coil
9308971cf5 Add wear only to spacesuit parts 2019-06-11 14:59:27 -04:00
Thomas Rudin
4b3b497089 fix missing hud data issue 2019-05-11 19:13:30 +02:00
Thomas Rudin
d95ce4c703 spacesuit repair with air bottles 2019-02-25 19:10:19 +01:00
Thomas Rudin
19d9e8f34f fix hud id mixup 2018-12-27 14:02:17 +01:00
Thomas Rudin
a1964f83c5 remove after() hack 2018-11-13 08:59:52 +01:00
Thomas Rudin
0a71358917 reset hud 2 seconds after join, fixes #5 (hopefully) 2018-11-12 08:55:17 +01:00
Thomas Rudin
0fadfbf131 working hud 2018-11-05 10:28:19 +01:00
Thomas Rudin
b9d7a4e0b8 modules 2018-11-05 08:44:18 +01:00
Thomas Rudin
38a8e64627 license stuff 2018-06-03 21:35:37 +02:00
Thomas Rudin
45b90f7866 spacesuit wear 2018-06-01 08:52:02 +02:00
Thomas Rudin
738506d0c4 conditional set_breath() 2018-05-28 15:19:28 +02:00
Thomas Rudin
6216cee5bd todo note 2018-05-28 14:58:46 +02:00
Thomas Rudin
0e3eb4a241 namespace, working breath 2018-05-28 14:52:07 +02:00
Thomas Rudin
6a8d9509be import: https://forum.minetest.net/viewtopic.php?t=12918 2018-05-28 14:12:05 +02:00