1
0
Fork 0

Re-organize comments

mineclone5
jordan4ibanez 2021-04-16 19:35:19 -04:00
parent 05d06a4c8f
commit ce7f4918b0
1 changed files with 5 additions and 3 deletions

View File

@ -69,10 +69,11 @@ local jump_check = function(self,dtime)
local green_flag_2 = minetest_get_item_group(minetest_get_node(test_dir).name, "solid") == 0 local green_flag_2 = minetest_get_item_group(minetest_get_node(test_dir).name, "solid") == 0
if green_flag_1 and green_flag_2 then
if green_flag_1 and green_flag_2 then -- can jump over node --can jump over node
return(1) return(1)
elseif green_flag_1 and not green_flag_2 then --wall in front of elseif green_flag_1 and not green_flag_2 then
--wall in front of mob
return(2) return(2)
end end
@ -131,6 +132,7 @@ local state_execution = function(self,dtime)
if node_in_front_of == 1 then if node_in_front_of == 1 then
mobs.jump(self) mobs.jump(self)
--turn if on the edge of cliff --turn if on the edge of cliff
--(this is written like this because unlike --(this is written like this because unlike
--jump_check which simply tells the mob to jump --jump_check which simply tells the mob to jump