enableGuide is now killGuide

--Which now gives him low health, low defense, and makes him unfriendly.
This commit is contained in:
Shank 2011-05-29 00:39:21 -06:00
parent 79b2946bf5
commit ac25526aa3
2 changed files with 19 additions and 8 deletions

View file

@ -4861,17 +4861,28 @@
this.knockBackResist = 0.5f;
this.value = 250f;
}
if (this.type == 0x16 && ShankShock.enableGuide == true)
if (this.type == 0x16)
{
this.townNPC = true;
this.friendly = true;
this.name = "Guide";
if (ShankShock.killGuide)
{
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.height = 40;
this.aiStyle = 7;
this.damage = 10;
this.defense = 100;
this.lifeMax = 250;
this.soundHit = 1;
this.soundKilled = 1;
this.knockBackResist = 0.5f;

View file

@ -12,7 +12,7 @@ namespace Terraria
private static double version = 2;
private static bool shownVersion = false;
public static bool enableGuide = true;
public static bool killGuide = true;
public static int invasionMultiplier = 1;
public static int defaultMaxSpawns = 4;
public static int defaultSpawnRate = 700;
@ -260,7 +260,7 @@ namespace Terraria
string[] configuration = config.Split(',');
try
{
enableGuide = Convert.ToBoolean(configuration[0]);
killGuide = Convert.ToBoolean(configuration[0]);
invasionMultiplier = Convert.ToInt32(configuration[1]);
defaultMaxSpawns = Convert.ToInt32(configuration[2]);
defaultSpawnRate = Convert.ToInt32(configuration[3]);