From f064767bad030d8483c2d738e075113cc26bb0f4 Mon Sep 17 00:00:00 2001 From: UndeadMaelys Date: Wed, 6 Jan 2021 03:59:55 +0100 Subject: [PATCH] sprited ariel --- content/entities2.xml | 2 + content/players.xml | 18 ++- main.lua | 20 +-- resources/gfx/familiars/baby_ariel.png | Bin 0 -> 2953 bytes .../gfx/familiars/motheroftwo_ariel.anm2 | 145 ++++++++++++++++++ 5 files changed, 174 insertions(+), 11 deletions(-) create mode 100644 resources/gfx/familiars/baby_ariel.png create mode 100644 resources/gfx/familiars/motheroftwo_ariel.anm2 diff --git a/content/entities2.xml b/content/entities2.xml index 10226e9..7756fa1 100644 --- a/content/entities2.xml +++ b/content/entities2.xml @@ -27,6 +27,7 @@ stageHP="0"> + + 0 then - --Yari:FollowParents() + Yari:FollowParents() end Lore:AddCallback(ModCallbacks.MC_FAMILIAR_UPDATE, Lore.UpdateBabyYari, FamiliarVariant.BABY_YARI) @@ -248,16 +248,16 @@ Lore:AddCallback( ModCallbacks.MC_POST_PLAYER_INIT, Lore.PostPlayerInit ); -- Active function Lore:ActivateSuccubusCharm(_Type, RNG) local player = Isaac.GetPlayer(0) + local player_data = EntityRef(player) enemies = Isaac.FindInRadius(player.Position, 125, EntityPartition.ENEMY ) for k,enemy in ipairs(enemies) do - if enemy:HasEntityFlags( EntityFlag.FLAG_CHARM ) == true then + local enemy_data = EntityRef(enemy); + if enemy_data.IsCharmed == true then print("This entity is charmed! Let's poison them!") - enemy:AddPoison(player, 120, 1) - enemy:AddEntityFlags(EntityFlag.FLAG_POISON) + enemy:AddPoison(player_data, 120, 1) else print("This entity isn't charmed! Let's charm them!") enemy:AddCharmed(120) - enemy:AddEntityFlags(EntityFlag.FLAG_CHARM) end end end diff --git a/resources/gfx/familiars/baby_ariel.png b/resources/gfx/familiars/baby_ariel.png new file mode 100644 index 0000000000000000000000000000000000000000..c039f73e500c1331b887c5d771f12e674df9a9ab GIT binary patch literal 2953 zcmV;43wHF0P)5)M+$h(WoBFt2 zK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+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +