Player - add clearNotesForName function

This commit is contained in:
Northmoc
2022-01-10 00:20:03 -05:00
parent 2afa7ce661
commit 94d58fa131

View File

@@ -1554,6 +1554,11 @@ public class Player extends GameEntity implements Comparable<Player> {
} }
return notes.get(notedFor); return notes.get(notedFor);
} }
public void clearNotesForName(String notedFor) {
if (notes.containsKey(notedFor)) {
notes.get(notedFor).clear();
}
}
public void noteNumberForName(String notedFor, int noted) { public void noteNumberForName(String notedFor, int noted) {
notedNum.put(notedFor, noted); notedNum.put(notedFor, noted);