21cf18990b
backport and tweak internal functions and document it
...
* backported internal fucntions cos the narcisits tenplus1 dont
property document the changes.. the commit 457eb1838cd1e694052298a42c84cd7b061d809d
of main master upstream tag has bugs inside changes and undocumented
changes too, this commit was named "code tweaks" only!
* also backported commit ed74f3c4c4d3f4c7e17127fa26ac4f0adbd2900d
named "add :is_inside() function (thx cora for idea)" non credited
in changes
* add global node_ok, effect and yaw_to_pos global deprecated functions for
backguard compatibility
* add selft mob_class list of functions also is_inside, yaw_to_pos,
set_velocity
2024-04-07 20:31:25 -04:00
8ddc921789
add self.attack_patience to add custom times, add self.attack nil check to pathfinding
...
* backport commit 9e27f45663cc0c0df0e329bfbcf92466cca2ce3c from upstream
and fix previous commit of this version that for rare reason mixed only one line
2024-04-07 17:10:38 -04:00
e4623dec52
update information readme
2024-03-30 04:39:17 -04:00
tenplus1
042130baca
added 'mob_log_spawn' setting to log mob spawning position.
2023-07-30 11:56:08 +01:00
tenplus1
dcc702848f
can now add nodes to 'runaway_from' table
2023-07-15 08:58:18 +01:00
tenplus1
194c9f7847
added 'mobs_attack_creatura' setting for monsters to attack Creatura mob mobs
2023-05-26 14:04:50 +01:00
tenplus1
b16eefa0ec
add 'mob_node_timer_interval' and 'mob_main_timer_interval' settings to handle function timings
2023-05-19 08:46:37 +01:00
tenplus1
29bc2f27f2
have separate get_nodes function for nodes around mob, update api.txt
2023-05-18 11:19:28 +01:00
tenplus1
14a3dc83e5
if max_light_damage is 16 then use natural light value to damage mob
2023-05-14 10:44:12 +01:00
tenplus1
9c72f0559d
update api.txt
2023-05-02 08:38:54 +01:00
tenplus1
6b9331064c
add staticdata clean function, update api.txt
2023-04-03 08:08:37 +01:00
tenplus1
cd4fb6f2a6
add friendly_fire mob setting for arrows (thx eschan145)
2023-03-26 08:31:40 +01:00
tenplus1
7e585b0bdc
add check for 'injured' animation
2023-03-13 11:52:59 +00:00
tenplus1
f4aae8894f
add mob_hit_effect switch so mob highlights when punched
2023-03-13 10:55:25 +00:00
tenplus1
c8e8401ac5
add mob_height_fix setting so it can be disabled.
2023-03-12 11:35:21 +00:00
tenplus1
924a545788
update pathfinding defaults to add settings (thx Bla)
2023-02-27 18:13:32 +00:00
tenplus1
92b1a253f0
update api.txt
2023-02-17 09:33:44 +00:00
tenplus1
ba988d514c
remove duplicate on_die info (thx Bastrabun)
2023-02-12 10:27:43 +00:00
tenplus1
5c9e057ad1
add ability to read 'looting_level' from tool definition and meta for extra drops
2022-11-15 10:39:59 +00:00
tenplus1
d4145ddd3d
tidy some luacheckrc warnings
2022-10-31 15:05:34 +00:00
tenplus1
8e3a85546c
api.txt updated with mapgen_dirt entry
2022-10-01 07:17:07 +01:00
tenplus1
b4a8ce71c6
add damage_radius and texture to mobs:boom()
2022-09-22 08:04:58 +01:00
tenplus1
25ab9591e4
add 'can_leap' setting to mob def, update api.txt
2022-07-12 08:37:38 +01:00
tenplus1
ca34cc2274
fix api typo (thanks bastrabun :)
2022-05-21 08:04:38 +01:00
tenplus1
dd16d63e8e
revert hover
2022-04-30 14:35:59 +01:00
tenplus1
7bb5e2b382
add "hover" animation
2022-04-30 12:26:36 +01:00
TenPlus1
2fb7bf2c66
update api.txt for mob_object change
2022-01-18 06:41:29 +00:00
TenPlus1
e83620553d
add mobs:is_node_dangerous(self, nodename) global function
2022-01-15 09:41:21 +00:00
TenPlus1
deee28fc59
added 'arrow_override' function to mob definition
2021-08-01 18:58:21 +01:00
TenPlus1
db3831dccf
update api.txt
2021-07-14 15:53:20 +01:00
TenPlus1
f131806008
add 'mob_smooth_rotate' setting
2021-06-01 14:17:25 +01:00
TenPlus1
ec44aa91c4
add 'damage_group' and 'damage_texture_modifier' settings to mob definition
2021-05-15 09:33:35 +01:00
TenPlus1
350fc3647c
add extra settings to arrow definition
2021-05-04 08:02:43 +01:00
TenPlus1
6750d176ee
tweak damage and protectors
2021-04-05 08:52:48 +01:00
TenPlus1
34b06df758
add ability to follow group: items
2021-03-23 17:09:26 +00:00
TenPlus1
774ce6671f
add 'ignore_invisibility' setting to mob definition
2021-03-10 08:14:42 +00:00
TenPlus1
bf32a09e5e
on_flop and air_damage added
2020-12-06 09:53:02 +00:00
TenPlus1
9489ff6965
add option to spin mob when playing death animation
2020-12-06 08:55:17 +00:00
TenPlus1
1dfd7e1af1
simplified breeding function, added some settings
2020-12-05 12:06:34 +00:00
TenPlus1
a4d2918383
add mob_area_spawn setting
2020-11-30 14:43:49 +00:00
TenPlus1
d12576f0c8
mobs:can_spawn function added to check free space to spawn mob
2020-10-29 10:46:59 +00:00
TenPlus1
89523195d5
fix typo in api.txt
2020-09-05 08:59:09 +01:00
TenPlus1
499d43a9aa
added 'on_map_load' setting to mobs:spawn function to spawn mob in newly loaded areas of map only
2020-09-04 13:59:14 +01:00
TenPlus1
ae62b1410d
update api.txt
2020-08-19 12:07:44 +01:00
tenplus1
cb465559a1
code tweak and tidy
2020-07-25 10:52:29 +01:00
tenplus1
ec3c6fb518
update api.txt
2020-07-20 07:36:39 +01:00
tenplus1
81dd3d75c0
add randomly_turn setting to mob definition
2020-07-17 20:58:52 +01:00
TenPlus1
dfdd55848d
mobs:add_mob() returns object spawned or false if not
2020-06-25 09:33:59 +01:00
tenplus1
e63b1b478e
add mobs:add_mob() function
2020-06-22 21:24:06 +01:00
tenplus1
ec122aa6de
add particle effect global function, arrow lifetime, api.txt update
2020-06-20 10:07:32 +01:00