Merge pull request 'Ghast: align attributes with mc' (#4014) from Bakawun/MineClone2:ghast into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4014
This commit is contained in:
the-real-herowl 2024-01-20 03:14:16 +00:00
commit 27c3760da1

View file

@ -33,7 +33,7 @@ mcl_mobs.register_mob("mobs_mc:ghast", {
death = "mobs_mc_zombie_death", death = "mobs_mc_zombie_death",
attack = "mobs_fireball", attack = "mobs_fireball",
random = "mobs_eerie", random = "mobs_eerie",
distance = 16, distance = 80,
-- TODO: damage -- TODO: damage
-- TODO: better death -- TODO: better death
}, },
@ -50,10 +50,10 @@ mcl_mobs.register_mob("mobs_mc:ghast", {
run_start = 0, run_end = 40, run_start = 0, run_end = 40,
}, },
fall_damage = 0, fall_damage = 0,
view_range = 100, view_range = 64,
attack_type = "dogshoot", attack_type = "dogshoot",
arrow = "mobs_mc:fireball", arrow = "mobs_mc:fireball",
shoot_interval = 3.5, shoot_interval = 3,
shoot_offset = -5, shoot_offset = -5,
dogshoot_switch = 1, dogshoot_switch = 1,
dogshoot_count_max =1, dogshoot_count_max =1,
@ -107,7 +107,7 @@ mcl_mobs.register_arrow("mobs_mc:fireball", {
visual = "sprite", visual = "sprite",
visual_size = {x = 1, y = 1}, visual_size = {x = 1, y = 1},
textures = {"mcl_fire_fire_charge.png"}, textures = {"mcl_fire_fire_charge.png"},
velocity = 15, velocity = 5,
collisionbox = {-.5, -.5, -.5, .5, .5, .5}, collisionbox = {-.5, -.5, -.5, .5, .5, .5},
_is_fireball = true, _is_fireball = true,