Fixed typing for Goddess Summoner. Fixed major bug.
This commit is contained in:
@@ -11,6 +11,7 @@ public class GoddessSummoner : ModItem
|
|||||||
public override void SetDefaults()
|
public override void SetDefaults()
|
||||||
{
|
{
|
||||||
Item.damage = 120;
|
Item.damage = 120;
|
||||||
|
Item.DamageType = DamageClass.Summon;
|
||||||
Item.mana = 18;
|
Item.mana = 18;
|
||||||
Item.width = 58;
|
Item.width = 58;
|
||||||
Item.height = 62;
|
Item.height = 62;
|
||||||
@@ -44,20 +45,20 @@ public class GoddessSummoner : ModItem
|
|||||||
return player.altFunctionUse != 2;
|
return player.altFunctionUse != 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool? UseItem(Player player)/* tModPorter Suggestion: Return null instead of false */
|
public override bool? UseItem(Player player)
|
||||||
{
|
{
|
||||||
if (player.altFunctionUse == 2)
|
if (player.altFunctionUse == 2)
|
||||||
{
|
{
|
||||||
player.MinionNPCTargetAim(false);
|
player.MinionNPCTargetAim(false);
|
||||||
}
|
}
|
||||||
return UseItem(player);
|
return base.UseItem(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void AddRecipes()
|
public override void AddRecipes()
|
||||||
{
|
{
|
||||||
Recipe val = CreateRecipe();
|
CreateRecipe()
|
||||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 16);
|
.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 16)
|
||||||
val.AddTile(TileID.AdamantiteForge);
|
.AddTile(TileID.AdamantiteForge)
|
||||||
val.Register();
|
.Register();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user