Integrate owned Intel rerolls, discovery feedback and fair HQ reports
This commit is contained in:
@@ -17,6 +17,21 @@ modded class ERR_AdminService
|
||||
}
|
||||
protected override bool Extension(ERR_GameMode mode, string arguments, array<string> replies)
|
||||
{
|
||||
if (arguments == "intel show")
|
||||
{
|
||||
replies.Insert("aiIntelChancePercent=" + mode.Settings().Get("aiIntelChancePercent").ToString());
|
||||
replies.Insert("intelRevealChancePercent=" + mode.Settings().Get("intelRevealChancePercent").ToString());
|
||||
return true;
|
||||
}
|
||||
if (arguments == "intel reroll" || arguments == "intel reroll show")
|
||||
{
|
||||
ERR_IntelService intel = mode.Intel();
|
||||
if (!intel) { replies.Insert("Intel service unavailable."); return true; }
|
||||
if (arguments == "intel reroll" && !intel.BeginReroll())
|
||||
replies.Insert("Intel reroll could not start. It requires an active round and no running reroll.");
|
||||
replies.Insert(intel.RerollStatus());
|
||||
return true;
|
||||
}
|
||||
if (arguments != "status" && arguments != "hq show" && arguments != "hq log") return super.Extension(mode, arguments, replies);
|
||||
ERR_HQ hq = ERR_HQ.Cast(mode.Command());
|
||||
if (!hq) { replies.Insert("HQ unavailable"); return true; }
|
||||
@@ -31,6 +46,6 @@ modded class ERR_AdminService
|
||||
}
|
||||
protected override string Help()
|
||||
{
|
||||
return super.Help() + " | hq show|log | hq interval|squads|radius show|set N | intel carrying show|set N";
|
||||
return super.Help() + " | hq show|log | hq interval|squads|radius show|set N | intel show | intel carrying show|set N | intel reroll [show]";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user