-
Notifications
You must be signed in to change notification settings - Fork 1
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
b711b4e
commit 1d6263f
Showing
12 changed files
with
191 additions
and
160 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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,53 @@ | ||
| ||
using System; | ||
using Terraria; | ||
using Terraria.Localization; | ||
using Terraria.ModLoader; | ||
|
||
namespace BossExpertise | ||
{ | ||
public class ExpertCommand : ModCommand | ||
{ | ||
public override bool Autoload(ref string name) | ||
{ | ||
return false; | ||
} | ||
|
||
public override void Action(CommandCaller caller, string input, string[] args) | ||
{ | ||
if(args.Length == 0) | ||
{ | ||
(mod as BossExpertise).SetExpertMode(!Main.expertMode); | ||
} | ||
else if(args.Length == 1) | ||
{ | ||
if(args[0].Equals("true", StringComparison.OrdinalIgnoreCase)) | ||
{ | ||
(mod as BossExpertise).SetExpertMode(true); | ||
} | ||
else if(args[0].Equals("false", StringComparison.OrdinalIgnoreCase)) | ||
{ | ||
(mod as BossExpertise).SetExpertMode(false); | ||
} | ||
else | ||
{ | ||
Main.NewText(Language.GetTextValue("Mods.BossExpertise.ExpertCommandUsage")); | ||
} | ||
} | ||
else | ||
{ | ||
Main.NewText(Language.GetTextValue("Mods.BossExpertise.ExpertCommandUsage")); | ||
} | ||
} | ||
|
||
public override string Command | ||
{ | ||
get { return "expert"; } | ||
} | ||
|
||
public override CommandType Type | ||
{ | ||
get { return CommandType.World; } | ||
} | ||
} | ||
} |
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.