-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
76 changed files
with
1,823 additions
and
157 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Terraria; | ||
using Terraria.ModLoader; | ||
|
||
namespace LensRands.Content.Buffs | ||
{ | ||
public class MartianShock : ModBuff | ||
{ | ||
public override string Texture => LensRands.AssetsPath + "Buffs/StunProbed"; | ||
public override void SetStaticDefaults() | ||
{ | ||
Main.debuff[Type] = true; | ||
Main.buffNoSave[Type] = true; | ||
} | ||
public override void Update(NPC npc, ref int buffIndex) | ||
{ | ||
if (npc.lifeRegen > 0) | ||
{ | ||
npc.lifeRegen = 0; | ||
} | ||
npc.lifeRegen -= 40; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using LensRands.Systems; | ||
using Terraria.ID; | ||
using Terraria.Localization; | ||
using Terraria.ModLoader; | ||
using Terraria; | ||
|
||
namespace LensRands.Content.Items.Accessories | ||
{ | ||
public abstract class ManaWell : ModItem | ||
{ | ||
public abstract float damageMod { get; } | ||
public override string Texture => LensRands.AssetsPath + "Items/Accessories/ManaWell"; | ||
|
||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((int)(damageMod * 100)); | ||
public override void SetDefaults() | ||
{ | ||
Item.width = 32; | ||
Item.height = 32; | ||
Item.rare = ItemRarityID.Red; | ||
Item.accessory = true; | ||
Item.value = Item.buyPrice(0, 2, 50, 0); | ||
} | ||
public override void UpdateEquip(Player player) | ||
{ | ||
player.GetModPlayer<LensPlayer>().ManaWellOn = true; | ||
player.GetDamage(DamageClass.Magic) += damageMod; | ||
player.manaCost *= 0; | ||
|
||
} | ||
} | ||
public class ManaWell1 : ManaWell | ||
{ | ||
public override float damageMod => -0.3f; | ||
public override void AddRecipes() | ||
{ | ||
CreateRecipe() | ||
.AddIngredient(ItemID.FallenStar, 50) | ||
.AddIngredient(ItemID.LesserManaPotion,50) | ||
.AddTile(TileID.TinkerersWorkbench) | ||
.Register(); | ||
} | ||
} | ||
public class ManaWell2 : ManaWell | ||
{ | ||
public override float damageMod => -0.2f; | ||
public override void AddRecipes() | ||
{ | ||
CreateRecipe() | ||
.AddIngredient(ModContent.ItemType<ManaWell1>()) | ||
.AddIngredient(ItemID.Bone, 50) | ||
.AddTile(TileID.TinkerersWorkbench) | ||
.Register(); | ||
} | ||
} | ||
public class ManaWell3 : ManaWell | ||
{ | ||
public override float damageMod => -0.1f; | ||
public override void AddRecipes() | ||
{ | ||
CreateRecipe() | ||
.AddIngredient(ModContent.ItemType<ManaWell2>()) | ||
.AddIngredient(ItemID.AvengerEmblem) | ||
.AddTile(TileID.TinkerersWorkbench) | ||
.Register(); | ||
} | ||
} | ||
public class ManaWell4 : ManaWell | ||
{ | ||
public override float damageMod => 0f; | ||
public override void AddRecipes() | ||
{ | ||
CreateRecipe() | ||
.AddIngredient(ModContent.ItemType<ManaWell3>()) | ||
.AddIngredient(ItemID.MagnetSphere) | ||
.AddIngredient(ItemID.DestroyerEmblem) | ||
.AddTile(TileID.TinkerersWorkbench) | ||
.Register(); | ||
} | ||
} | ||
public class ManaWell5 : ManaWell | ||
{ | ||
public override float damageMod => 0.1f; | ||
public override void AddRecipes() | ||
{ | ||
CreateRecipe() | ||
.AddIngredient(ModContent.ItemType<ManaWell4>()) | ||
.AddIngredient(ItemID.LunarBar, 5) | ||
.AddIngredient(ItemID.FragmentNebula, 15) | ||
.AddTile(TileID.TinkerersWorkbench) | ||
.Register(); | ||
} | ||
} | ||
public class ManaWell6 : ManaWell | ||
{ | ||
public override float damageMod => 0.2f; | ||
public override void AddRecipes() | ||
{ | ||
if (ModLoader.TryGetMod("CalamityMod", out Mod calamity) && calamity.TryFind("DarksunFragment", out ModItem moditem)) | ||
{ | ||
CreateRecipe() | ||
.AddIngredient(ModContent.ItemType<ManaWell5>()) | ||
.AddIngredient(moditem, 20) | ||
.AddTile(TileID.TinkerersWorkbench) | ||
.Register(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.Localization; | ||
using Terraria.ModLoader; | ||
|
||
namespace LensRands.Content.Items.Accessories | ||
{ | ||
public class MasterWormGear : ModItem | ||
{ | ||
public float damagemod => 0.17f; | ||
public override string Texture => LensRands.AssetsPath + "Items/Accessories/WormGear"; | ||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((int)(damagemod * 100)); | ||
public override void SetDefaults() | ||
{ | ||
Item.width = 32; | ||
Item.height = 32; | ||
Item.rare = ItemRarityID.Expert; | ||
Item.accessory = true; | ||
Item.value = Item.sellPrice(0, 12, 50, 0); | ||
} | ||
public override void AddRecipes() | ||
{ | ||
CreateRecipe() | ||
.AddIngredient(ItemID.MasterNinjaGear) | ||
.AddIngredient(ItemID.WormScarf) | ||
.AddTile(TileID.TinkerersWorkbench) | ||
.Register(); | ||
} | ||
public override void UpdateAccessory(Player player, bool hideVisual) | ||
{ | ||
player.blackBelt = true; | ||
player.dashType = 1; | ||
player.spikedBoots = 2; | ||
player.endurance += damagemod; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.