Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Fixed "find" console command issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amadare42 committed Nov 26, 2022
1 parent e4c6b85 commit 608bf76
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions TeammateRevive/Debugging/ConsoleCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,25 +102,29 @@ private void OnChatChanged()
}
DebugHelper.DamageTargetIndex = idx;
AddLog($"Target set to {PlayersTracker.instance.All[DebugHelper.DamageTargetIndex].networkUser.userName}");
}
},
helpText = "Damage player with entered index"
}
},
{
"trv_tglbuff", new RoR2.Console.ConCommand()
{
action = args => DebugHelper.ToggleRegenBuff()
action = args => DebugHelper.ToggleRegenBuff(),
helpText = "Toggle post-revive regen buff"
}
},
{
"trv_give_item", new RoR2.Console.ConCommand()
{
action = args => PlayersTracker.instance.All.ForEach(p => p.GiveItem(ItemCatalog.FindItemIndex(args.GetArgString(0))))
action = args => PlayersTracker.instance.All.ForEach(p => p.GiveItem(ItemCatalog.FindItemIndex(args.GetArgString(0)))),
helpText = "Give all players item by name"
}
},
{
"trv_remove_item", new RoR2.Console.ConCommand()
{
action = args => PlayersTracker.instance.All.ForEach(p => p.master.master.inventory.RemoveItem(ItemCatalog.FindItemIndex(args.GetArgString(0))))
action = args => PlayersTracker.instance.All.ForEach(p => p.master.master.inventory.RemoveItem(ItemCatalog.FindItemIndex(args.GetArgString(0)))),
helpText = "Remove item by name from all players"
}
}
};
Expand Down

0 comments on commit 608bf76

Please sign in to comment.