mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-02-10 15:50:21 +01:00
fix typo
This commit is contained in:
parent
c48821df03
commit
7044e20382
4
api.lua
4
api.lua
@ -11,7 +11,7 @@ local use_mc2 = minetest.get_modpath("mcl_core")
|
|||||||
-- Global
|
-- Global
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20230816",
|
version = "20230817",
|
||||||
translate = S,
|
translate = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||||
node_snow = minetest.registered_aliases["mapgen_snow"]
|
node_snow = minetest.registered_aliases["mapgen_snow"]
|
||||||
@ -3071,7 +3071,7 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir, damage)
|
|||||||
-- only alert members of same mob and assigned helper
|
-- only alert members of same mob and assigned helper
|
||||||
if ent.group_attack == true
|
if ent.group_attack == true
|
||||||
and ent.state ~= "attack"
|
and ent.state ~= "attack"
|
||||||
and not (is_player(hitter) and ent.owner == name)
|
and not (is_player(hitter) and ent.owner == hitter_name)
|
||||||
and (ent.name == self.name or ent.name == self.group_helper) then
|
and (ent.name == self.name or ent.name == self.group_helper) then
|
||||||
ent:do_attack(hitter)
|
ent:do_attack(hitter)
|
||||||
end
|
end
|
||||||
|
1
api.txt
1
api.txt
@ -346,6 +346,7 @@ Internal Variables
|
|||||||
The mob api also has some preset variables and functions that it will remember
|
The mob api also has some preset variables and functions that it will remember
|
||||||
for each mob.
|
for each mob.
|
||||||
|
|
||||||
|
'self._cmi_is_mob' Used to determine wether entity is a mobs redo mob when True.
|
||||||
'self.health' contains current health of mob (cannot exceed
|
'self.health' contains current health of mob (cannot exceed
|
||||||
self.hp_max)
|
self.hp_max)
|
||||||
'self.texture_list' contains list of all mob textures
|
'self.texture_list' contains list of all mob textures
|
||||||
|
Loading…
Reference in New Issue
Block a user