enableGuide is now killGuide
--Which now gives him low health, low defense, and makes him unfriendly.
This commit is contained in:
parent
79b2946bf5
commit
ac25526aa3
2 changed files with 19 additions and 8 deletions
|
|
@ -4861,17 +4861,28 @@
|
||||||
this.knockBackResist = 0.5f;
|
this.knockBackResist = 0.5f;
|
||||||
this.value = 250f;
|
this.value = 250f;
|
||||||
}
|
}
|
||||||
if (this.type == 0x16 && ShankShock.enableGuide == true)
|
if (this.type == 0x16)
|
||||||
{
|
{
|
||||||
this.townNPC = true;
|
this.townNPC = true;
|
||||||
this.friendly = true;
|
if (ShankShock.killGuide)
|
||||||
this.name = "Guide";
|
{
|
||||||
|
this.friendly = false;
|
||||||
|
this.damage = 0;
|
||||||
|
this.defense = 0;
|
||||||
|
this.lifeMax = 1;
|
||||||
|
this.name = "(Stupid) Guide";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.friendly = true;
|
||||||
|
this.damage = 10;
|
||||||
|
this.defense = 100;
|
||||||
|
this.lifeMax = 250;
|
||||||
|
this.name = "Guide";
|
||||||
|
}
|
||||||
this.width = 0x12;
|
this.width = 0x12;
|
||||||
this.height = 40;
|
this.height = 40;
|
||||||
this.aiStyle = 7;
|
this.aiStyle = 7;
|
||||||
this.damage = 10;
|
|
||||||
this.defense = 100;
|
|
||||||
this.lifeMax = 250;
|
|
||||||
this.soundHit = 1;
|
this.soundHit = 1;
|
||||||
this.soundKilled = 1;
|
this.soundKilled = 1;
|
||||||
this.knockBackResist = 0.5f;
|
this.knockBackResist = 0.5f;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ namespace Terraria
|
||||||
private static double version = 2;
|
private static double version = 2;
|
||||||
private static bool shownVersion = false;
|
private static bool shownVersion = false;
|
||||||
|
|
||||||
public static bool enableGuide = true;
|
public static bool killGuide = true;
|
||||||
public static int invasionMultiplier = 1;
|
public static int invasionMultiplier = 1;
|
||||||
public static int defaultMaxSpawns = 4;
|
public static int defaultMaxSpawns = 4;
|
||||||
public static int defaultSpawnRate = 700;
|
public static int defaultSpawnRate = 700;
|
||||||
|
|
@ -260,7 +260,7 @@ namespace Terraria
|
||||||
string[] configuration = config.Split(',');
|
string[] configuration = config.Split(',');
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
enableGuide = Convert.ToBoolean(configuration[0]);
|
killGuide = Convert.ToBoolean(configuration[0]);
|
||||||
invasionMultiplier = Convert.ToInt32(configuration[1]);
|
invasionMultiplier = Convert.ToInt32(configuration[1]);
|
||||||
defaultMaxSpawns = Convert.ToInt32(configuration[2]);
|
defaultMaxSpawns = Convert.ToInt32(configuration[2]);
|
||||||
defaultSpawnRate = Convert.ToInt32(configuration[3]);
|
defaultSpawnRate = Convert.ToInt32(configuration[3]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue