mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
an attempt at increasing melee weapon size
This commit is contained in:
@@ -65,6 +65,12 @@ public class YhtPlayer : ModPlayer {
|
||||
}
|
||||
if (WarriorAmbition) {
|
||||
Player.AddBuff(ModContent.BuffType<WarriorAmbitionBuff>(), 1);
|
||||
Player.statDefense += GetWarriorsAmbitionDefenseBonus();
|
||||
|
||||
if (ModLoader.HasMod("CalamityMod") && SummonerAmbitions.Contains("desert_scourge")) {
|
||||
Player.statLifeMax2 += 10;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,6 +115,14 @@ public class YhtPlayer : ModPlayer {
|
||||
|
||||
public int GetWarriorsAmbitionDefenseBonus() {
|
||||
int amount = 2;
|
||||
|
||||
if (ModLoader.HasMod("CalamityMod") && SummonerAmbitions.Contains("perforators")) {
|
||||
amount += 2;
|
||||
}
|
||||
|
||||
if (ModLoader.HasMod("CalamityMod") && SummonerAmbitions.Contains("hive_mind")) {
|
||||
amount += 2;
|
||||
}
|
||||
|
||||
if (WarriorAmbitions.Contains("wall_of_flesh")) {
|
||||
amount += 5;
|
||||
@@ -116,4 +130,23 @@ public class YhtPlayer : ModPlayer {
|
||||
|
||||
return amount;
|
||||
}
|
||||
|
||||
public float GetWarriorsAmbitionMeleeSizeBonus() {
|
||||
float scale = 1f;
|
||||
|
||||
if (WarriorAmbitions.Contains("king_slime")) {
|
||||
if (ModLoader.HasMod("CalamityMod")) {
|
||||
scale += 0.025f;
|
||||
}
|
||||
else {
|
||||
scale += 0.05f;
|
||||
}
|
||||
}
|
||||
|
||||
if (ModLoader.HasMod("CalamityMod") && WarriorAmbitions.Contains("slime_god")) {
|
||||
scale += 0.025f;
|
||||
}
|
||||
|
||||
return scale;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user