-
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.
- Loading branch information
1 parent
796fc66
commit 66915d0
Showing
45 changed files
with
860 additions
and
71 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.
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,69 @@ | ||
using Terraria.ID; | ||
using Terraria; | ||
using Terraria.ModLoader; | ||
using LensRands.Systems; | ||
|
||
namespace LensRands.Content.Buffs | ||
{ | ||
public abstract class MutationBuffs : ModBuff | ||
{ | ||
public override string Texture => LensRands.AssetsPath + "Buffs/Mutation"; | ||
|
||
public override void SetStaticDefaults() | ||
{ | ||
Main.buffNoSave[Type] = true; | ||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true; | ||
} | ||
public override bool RightClick(int buffIndex) | ||
{ | ||
return false; | ||
} | ||
} | ||
public class DeadInside : MutationBuffs | ||
{ | ||
public override void Update(Player player, ref int buffIndex) | ||
{ | ||
player.statLifeMax2 += player.statLifeMax / 2; | ||
player.lifeRegen -= player.lifeRegen/2; | ||
} | ||
} | ||
public class OpenWounds : MutationBuffs | ||
{ | ||
public override void Update(Player player, ref int buffIndex) | ||
{ | ||
player.GetModPlayer<LensPlayer>().OpenWoundsBuff = true; | ||
} | ||
public override void Update(NPC npc, ref int buffIndex) | ||
{ | ||
if (npc.buffTime[buffIndex] % 10 == 0 && !npc.immortal) | ||
{ | ||
if (npc.life != 1) | ||
{ | ||
npc.life -= 1; | ||
} | ||
else | ||
{ | ||
npc.StrikeInstantKill(); | ||
} | ||
} | ||
} | ||
} | ||
public class SlowingStrikes : MutationBuffs | ||
{ | ||
public override void Update(Player player, ref int buffIndex) | ||
{ | ||
player.GetModPlayer<LensPlayer>().SlowingStrikesBuff = true; | ||
} | ||
public override void Update(NPC npc, ref int buffIndex) | ||
{ | ||
npc.velocity *= 0.95f; | ||
} | ||
} | ||
public class AmmoDuplicator : MutationBuffs | ||
{ | ||
public override void Update(Player player, ref int buffIndex) | ||
{ | ||
player.GetModPlayer<LensPlayer>().AmmoDuplicatorBuff = true; | ||
} | ||
} | ||
} |
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,137 @@ | ||
using System.Drawing; | ||
using LensRands.LensUtils; | ||
using Microsoft.Xna.Framework; | ||
using Terraria; | ||
using Terraria.ID; | ||
using Terraria.ModLoader; | ||
|
||
namespace LensRands.Content.Items.Ammo | ||
{ | ||
public class SavathunRounds : ModItem | ||
{ | ||
public override string Texture => LensRands.AssetsPath + "Items/Ammo/Savathun"; | ||
public override void SetDefaults()//Craft silver bullets plus venom thing jungle | ||
{ | ||
Item.damage = 9; | ||
Item.DamageType = DamageClass.Ranged; | ||
Item.width = 8; | ||
Item.height = 8; | ||
Item.maxStack = Item.CommonMaxStack; | ||
Item.consumable = true; | ||
Item.knockBack = 1.5f; | ||
Item.value = 10; | ||
Item.rare = ItemRarityID.Green; | ||
Item.shoot = ModContent.ProjectileType<SavathunProjectile>(); | ||
Item.shootSpeed = 2f; | ||
Item.ammo = AmmoID.Bullet; | ||
} | ||
public override void AddRecipes() | ||
{ | ||
CreateRecipe(250) | ||
.AddIngredient(ItemID.SilverBullet, 250) | ||
.AddIngredient(ItemID.Stinger) | ||
.AddTile(TileID.WorkBenches) | ||
.Register(); | ||
CreateRecipe(250) | ||
.AddIngredient(ItemID.TungstenBullet, 250) | ||
.AddIngredient(ItemID.Stinger) | ||
.AddTile(TileID.WorkBenches) | ||
.Register(); | ||
} | ||
} | ||
public class SavathunProjectile : ModProjectile | ||
{ | ||
public override string Texture => LensRands.AssetsPath + "Projectiles/Savathun"; | ||
private Vector3 color = new(0f,1f,0f); | ||
public override void SetDefaults() | ||
{ | ||
Projectile.width = 8; | ||
Projectile.height = 8; | ||
Projectile.friendly = true; | ||
Projectile.hostile = false; | ||
Projectile.DamageType = DamageClass.Ranged; | ||
Projectile.penetrate = 1; | ||
Projectile.ignoreWater = false; | ||
Projectile.tileCollide = true; | ||
Projectile.extraUpdates = 3; | ||
Projectile.timeLeft = 1200; | ||
Projectile.aiStyle = -1; | ||
} | ||
public override void AI() | ||
{ | ||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.ToRadians(90); | ||
Lighting.AddLight(Projectile.Center, color * 0.25f); | ||
} | ||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) | ||
{ | ||
target.AddBuff(BuffID.Poisoned, 300); | ||
} | ||
} | ||
//Hm VARIANT BELOW | ||
public class SavathunRoundsHM : ModItem | ||
{ | ||
public override string Texture => LensRands.AssetsPath + "Items/Ammo/SavathunHM"; | ||
public override void SetDefaults()//Craft silver bullets plus venom thing jungle | ||
{ | ||
Item.damage = 15; | ||
Item.DamageType = DamageClass.Ranged; | ||
Item.width = 8; | ||
Item.height = 8; | ||
Item.maxStack = Item.CommonMaxStack; | ||
Item.consumable = true; | ||
Item.knockBack = 1.5f; | ||
Item.value = 10; | ||
Item.rare = ItemRarityID.Purple; | ||
Item.shoot = ModContent.ProjectileType<SavathunProjectileHM>(); | ||
Item.shootSpeed = 3f; | ||
Item.ammo = AmmoID.Bullet; | ||
} | ||
public override void AddRecipes() | ||
{ | ||
CreateRecipe(250) | ||
.AddIngredient(ModContent.ItemType<SavathunRounds>(),250) | ||
.AddIngredient(ItemID.SpiderFang) | ||
.AddTile(TileID.WorkBenches) | ||
.Register(); | ||
} | ||
} | ||
public class SavathunProjectileHM : ModProjectile | ||
{ | ||
public override string Texture => LensRands.AssetsPath + "Projectiles/SavathunHM"; | ||
private Vector3 color = new(0.5f,0f,0.5f); | ||
public override void SetDefaults() | ||
{ | ||
Projectile.width = 8; | ||
Projectile.height = 8; | ||
Projectile.friendly = true; | ||
Projectile.hostile = false; | ||
Projectile.DamageType = DamageClass.Ranged; | ||
Projectile.penetrate = 2; | ||
Projectile.ignoreWater = false; | ||
Projectile.tileCollide = true; | ||
Projectile.extraUpdates = 4; | ||
Projectile.timeLeft = 1600; | ||
Projectile.aiStyle = -1; | ||
} | ||
public override void AI() | ||
{ | ||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.ToRadians(90); | ||
Lighting.AddLight(Projectile.Center, color * 0.75f); | ||
} | ||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) | ||
{ | ||
target.AddBuff(BuffID.Venom, 300); | ||
if (!target.active) | ||
{ | ||
LensVisualUtils.BombVisuals(Projectile.Center, 150, 150); | ||
Projectile.damage = (int)(Projectile.damage * 1.2f); | ||
Projectile.tileCollide = false; | ||
Projectile.penetrate = -1; | ||
Projectile.alpha = 255; | ||
Projectile.Resize(150, 150); | ||
Projectile.timeLeft = 3; | ||
Projectile.velocity = Vector2.Zero; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.