Commit Graph

44 Commits

Author SHA1 Message Date
teknomunk
626bdd13d8 Change several places where mobs are created to use mcl_mobs.spawn() instead of minetest.add_entity() 2024-09-16 13:32:06 +02:00
kno10
ebee85db7e Fix incorrect usages of math.random (#4621)
random() does not support float arguments

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4621
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-09-07 14:58:12 +02:00
the-real-herowl
4b83aaaa77 Renaming throughout docs and comments 2024-05-07 11:38:00 +00:00
MysticTempest
15542d4878 Fix player not getting damage from lightning 2022-11-05 01:16:27 +01:00
cora
fcba67b7e7 Make on_lightning_strike available to non-mob entities 2022-11-05 01:16:27 +01:00
cora
21f3782439 Fix lightning on_strike api + rename to on_lightning_strike 2022-11-05 01:16:27 +01:00
cora
e80e44612c Add lightning rod 2022-10-14 17:32:31 +00:00
cora
7b1d5501c1 lightning: allow change of strike position in callback 2022-10-14 17:32:31 +00:00
opfromthestart
e9954d1785 Merge branch 'master' into new_sky 2022-08-08 18:00:03 +00:00
opfromthestart
866711a4aa Changed to new get_sky method 2022-08-07 18:19:12 -04:00
iliekprogrammar
bce4d29737
[5.6][lightning] fix unsafe entitiy handling
this does not excuse all on_strike callbacks to allow oversights.
it must also track entity removal.
2022-08-07 10:44:13 +08:00
iliekprogrammar
221ee0fcf1
[5.6] mark places with unsafe set_hp entity handling
There might be other places i might be missing, but these are the obvious ones.

leftover entity handling i did not mark:
* everything that involves a apply()-like algorithm (e.g. callbacks) over the
  same list of objects.
* in mcl_damage, it's not known whether mcl_damage.from_mt() would involve
  entity handling or just player handling.
2022-08-07 00:13:03 +08:00
Johannes Fritz
a455e7bb8e Lightning command: Strike player by name 2022-06-16 13:43:44 -05:00
NO11
c757e98b4f Fix #1911, error in lightning callback 2021-11-17 00:37:11 +01:00
NO11
0584d16569 add lightning API support for mobs 2021-10-05 04:15:48 +00:00
NO11
03829dd518 fix typo 2021-10-05 04:15:48 +00:00
NO11
463fe2af5f use mcl_util.replace_mob function to simplify lightning code 2021-10-05 04:15:48 +00:00
NO11
8e3f9d2169 add basic lightning API 2021-10-05 04:15:48 +00:00
AFCMS
3bedc81068 fix some code style issues in lightning 2021-05-28 00:07:06 +02:00
AFCMS
b0a3cffad0 [lightning] fix warnings 2021-05-23 14:50:38 +02:00
Elias Fleckenstein
302175691a Integrate death messages 2021-04-25 16:42:38 +02:00
Elias Fleckenstein
49e7def70a Implement lightning_bolt damage reason 2021-04-14 18:40:41 +02:00
AFCMS
9eda34b0ff performance improvement in lightning
cache global functions used in globalstep
2021-03-15 00:12:59 +01:00
epCode
903a29f949 Add charged creeper 2021-02-12 16:48:46 -08:00
Wuzzy
30b915b5c2 Fix lightning being heard globally 2020-12-03 13:03:27 +01:00
Wuzzy
c5e4ec5e27 Use ephemeral sounds 2020-04-07 00:55:45 +02:00
Wuzzy
988ca6ffe7 Interpret many damage sources as punches 2020-02-17 18:37:23 +01:00
Wuzzy
c6e671376d Make lightning glow in the dark 2019-03-26 12:24:30 +01:00
Wuzzy
db8d7af245 Fix lightning dealing way too much damage 2019-03-08 19:09:40 +01:00
Wuzzy
d691490016 New translation system, part 2: Environment, help 2019-03-07 21:36:00 +01:00
Wuzzy
2f74aea6f5 Replace deprecated functions 2019-03-06 04:38:57 +01:00
Wuzzy
93c087997f Add /lightning command 2019-02-21 03:36:02 +01:00
Wuzzy
31668cdde5 Add brown mooshroom 2019-02-21 02:38:33 +01:00
Wuzzy
e789801662 Replace getpos() with get_pos() 2019-02-01 06:33:07 +01:00
Wuzzy
e051eae5bc Lightning no longer turns villagers to witches
Because witches are incomplete.
Also add villager TODOs.
2018-06-10 15:27:01 +02:00
Wuzzy
6a9a00b387 Add death message if player killed by lightning 2017-12-12 23:53:54 +01:00
Wuzzy
69ade14509 Rename weather_pack mod to mcl_weather 2017-11-21 01:35:31 +01:00
Wuzzy
de6096f47a Fix pig→zombiepig lightning transform 2017-11-12 05:11:21 +01:00
Wuzzy
4f639b024d Lightnings cause damage, change pigs and villagers 2017-11-12 03:24:46 +01:00
Wuzzy
c09ca3363d Rarely spawn skeletons (+s. horse) on lightning 2017-11-12 02:48:18 +01:00
Wuzzy
cdd616f6b1 Fix lightning sky color issues 2017-02-21 15:00:16 +01:00
Wuzzy
edde01d582 Fix weather sky color issues
But also disable void blackness
2017-02-21 04:20:43 +01:00
Wuzzy
f023a1962f Rain now extinguishes fire, lightning now always makes fire 2017-02-20 21:43:10 +01:00
Wuzzy
cb7697fcfe Move weather mods to ENVIRONMENT modpack 2017-02-20 21:00:48 +01:00