Skip to content

Commit 0afe965

Browse files
authored
Merge pull request #1178 from erdelf/dev
ModifyIndex optionally relative
2 parents d731108 + f2564e3 commit 0afe965

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

AutoDuty/Managers/ActionsManager.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,14 @@ public void BossMod(PathAction action)
186186

187187
public void ModifyIndex(PathAction action)
188188
{
189-
if (!int.TryParse(action.Arguments[0], out int _index)) return;
190-
Plugin.Indexer = _index;
189+
if (!int.TryParse(action.Arguments[0], out int _index))
190+
return;
191+
192+
193+
if (action.Arguments[0][0] is '+' or '-')
194+
Plugin.Indexer += _index;
195+
else
196+
Plugin.Indexer = _index;
191197
Plugin.Stage = Stage.Reading_Path;
192198
}
193199

0 commit comments

Comments
 (0)