Hello! I am currently having a problem with a minion shooting a projectile. My minion Dunkleostasis(BonyFish in the code files) is planned to shoot out bones in all directions when it hits an NPC. So because I put a chunk of code intended for Shoot() into OnHitNPC() I had to define a lot of...
How would I make an edible item grant the well-fed buff?
I have this, but my gut feeling tells me that it's incorrect.
public bool UseItem(Item item, Player player)
{
player.AddBuff((BuffID.WellFed) , 6000, true);
return false;
}
Thank you, and I'm also having a sprite issue. Does anybody know how Tmodloader registers different frames for different town NPC actions(i.e.Attacking, walking, and talking?) My animation for my town NPC is severely glitchy and is using the attack animation during the walk animation. Is this...
Here it is:
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria.ID;
using Terraria;
using Terraria.ModLoader;
namespace Firstmod.Items.NPCs //We need thiFs to basically indicate the folder where it is to...
Wait, I still need your help! Sorry. I ran my code and got the error "Not all code paths return a value" for this section of the code:
public override bool CanTownNPCSpawn(int numTownNPCs, int money)
{
for (int k = 0; k < 255; k++)
{
Player player...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.