Return false to block this weapon from hitting the target. More.Īllows you to determine whether a melee weapon swung by this player can hit the given opponent player.
#Terraria maxed out character download 1.8 code#
Return true to allow hitting the target, return false to block this projectile from hitting the target, and return null to use the vanilla code for whether the target can be hit. More.ĬanHitNPCWithProj (Projectile proj, NPC target)Īllows you to determine whether a projectile created by this player can hit the given NPC. Return true to allow hitting the target, return false to block this player from hitting the target, and return null to use the vanilla code for whether the target can be hit. More.Īllows you to determine whether a player can hit the given NPC by swinging a melee weapon. More.ĬanBuyItem (NPC vendor, Item shopInventory, Item item) Return false to block this player from being hit. More.Īllows you to determine whether the given hostile projectile can hit this player.
CooldownSlot determines which of the player's cooldown counters to use (-1, 0, or 1), and defaults to -1. Return false to block this player from being hit by the NPC. More.ĬanBeHitByNPC (NPC npc, ref int cooldownSlot)Īllows you to determine whether the given NPC can hit this player. Use this to either force or stop an autoload, or change the name that identifies this type of ModPlayer. Name is initialized to the overriding class name.
Return true to allow autoloading by default returns the mod's autoload property. More.Īllows you to automatically add a ModPlayer instead of using Mod.AddPlayer. The rareMultiplier is a number between 0.15 and 1 inclusively the lower it is the higher chance there should be for the player to earn rare items. AnglerQuestReward (float rareMultiplier, List rewardItems)Īllows you to add to, change, or remove from the items the player earns when finishing an Angler quest.