mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
remove hint
This commit is contained in:
@@ -6,7 +6,6 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import forge.util.Lang;
|
import forge.util.Lang;
|
||||||
import io.sentry.Hint;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import forge.card.ColorSet;
|
import forge.card.ColorSet;
|
||||||
@@ -241,9 +240,7 @@ public class ManaEffect extends SpellAbilityEffect {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", card.getName());
|
bread.setData("Card", card.getName());
|
||||||
bread.setData("SA", sa.toString());
|
bread.setData("SA", sa.toString());
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(sa.toString(), sa);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ import forge.util.*;
|
|||||||
import forge.util.collect.FCollection;
|
import forge.util.collect.FCollection;
|
||||||
import forge.util.collect.FCollectionView;
|
import forge.util.collect.FCollectionView;
|
||||||
import io.sentry.Breadcrumb;
|
import io.sentry.Breadcrumb;
|
||||||
import io.sentry.Hint;
|
|
||||||
import io.sentry.Sentry;
|
import io.sentry.Sentry;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.commons.lang3.mutable.MutableBoolean;
|
import org.apache.commons.lang3.mutable.MutableBoolean;
|
||||||
@@ -2614,9 +2613,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", this.getName());
|
bread.setData("Card", this.getName());
|
||||||
bread.setData("Keyword", keyword);
|
bread.setData("Keyword", keyword);
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(this.getName(), this);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
throw new RuntimeException("Error in Card " + this.getName() + " with Keyword " + keyword, e);
|
throw new RuntimeException("Error in Card " + this.getName() + " with Keyword " + keyword, e);
|
||||||
}
|
}
|
||||||
@@ -3187,9 +3184,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", this.getName());
|
bread.setData("Card", this.getName());
|
||||||
bread.setData("Keyword", keyword);
|
bread.setData("Keyword", keyword);
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(this.getName(), this);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
throw new RuntimeException("Error in Card " + this.getName() + " with Keyword " + keyword, e);
|
throw new RuntimeException("Error in Card " + this.getName() + " with Keyword " + keyword, e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import forge.game.ability.ApiType;
|
|||||||
import forge.game.player.Player;
|
import forge.game.player.Player;
|
||||||
import forge.game.spellability.SpellAbility;
|
import forge.game.spellability.SpellAbility;
|
||||||
import io.sentry.Breadcrumb;
|
import io.sentry.Breadcrumb;
|
||||||
import io.sentry.Hint;
|
|
||||||
import io.sentry.Sentry;
|
import io.sentry.Sentry;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -215,9 +214,7 @@ public class CardCopyService {
|
|||||||
bread.setData("Card", copyFrom.getName());
|
bread.setData("Card", copyFrom.getName());
|
||||||
bread.setData("CardState", copyFrom.getCurrentStateName().toString());
|
bread.setData("CardState", copyFrom.getCurrentStateName().toString());
|
||||||
bread.setData("Player", copyFrom.getController().getName());
|
bread.setData("Player", copyFrom.getController().getName());
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(copyFrom.getName(), copyFrom);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
final Card newCopy = new Card(copyFrom.getId(), copyFrom.getPaperCard(), copyFrom.getGame(), null);
|
final Card newCopy = new Card(copyFrom.getId(), copyFrom.getPaperCard(), copyFrom.getGame(), null);
|
||||||
cachedMap.put(copyFrom.getId(), newCopy);
|
cachedMap.put(copyFrom.getId(), newCopy);
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ import forge.util.Localizer;
|
|||||||
import forge.util.TextUtil;
|
import forge.util.TextUtil;
|
||||||
import io.sentry.Breadcrumb;
|
import io.sentry.Breadcrumb;
|
||||||
import io.sentry.Sentry;
|
import io.sentry.Sentry;
|
||||||
import io.sentry.Hint;
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@@ -543,9 +542,7 @@ public class CardFactoryUtil {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", card.getName());
|
bread.setData("Card", card.getName());
|
||||||
bread.setData("Ability", rawAbility);
|
bread.setData("Ability", rawAbility);
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(card.getName(), card);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
// rethrow the exception with card Name for the user
|
// rethrow the exception with card Name for the user
|
||||||
throw new RuntimeException("crash in raw Ability, check card script of " + card.getName(), e);
|
throw new RuntimeException("crash in raw Ability, check card script of " + card.getName(), e);
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ import forge.game.trigger.Trigger;
|
|||||||
import forge.util.collect.FCollection;
|
import forge.util.collect.FCollection;
|
||||||
import forge.util.collect.FCollectionView;
|
import forge.util.collect.FCollectionView;
|
||||||
import io.sentry.Breadcrumb;
|
import io.sentry.Breadcrumb;
|
||||||
import io.sentry.Hint;
|
|
||||||
import io.sentry.Sentry;
|
import io.sentry.Sentry;
|
||||||
|
|
||||||
public class CardState extends GameObject implements IHasSVars {
|
public class CardState extends GameObject implements IHasSVars {
|
||||||
@@ -304,9 +303,7 @@ public class CardState extends GameObject implements IHasSVars {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", card.getName());
|
bread.setData("Card", card.getName());
|
||||||
bread.setData("Keyword", s);
|
bread.setData("Keyword", s);
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(this.name, this);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
//rethrow
|
//rethrow
|
||||||
throw new RuntimeException("Error in Keyword " + s + " for card " + card.getName(), e);
|
throw new RuntimeException("Error in Keyword " + s + " for card " + card.getName(), e);
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import forge.game.staticability.StaticAbility;
|
|||||||
import forge.game.trigger.Trigger;
|
import forge.game.trigger.Trigger;
|
||||||
import forge.util.Lang;
|
import forge.util.Lang;
|
||||||
import io.sentry.Breadcrumb;
|
import io.sentry.Breadcrumb;
|
||||||
import io.sentry.Hint;
|
|
||||||
import io.sentry.Sentry;
|
import io.sentry.Sentry;
|
||||||
|
|
||||||
public abstract class KeywordInstance<T extends KeywordInstance<?>> implements KeywordInterface {
|
public abstract class KeywordInstance<T extends KeywordInstance<?>> implements KeywordInterface {
|
||||||
@@ -107,9 +106,7 @@ public abstract class KeywordInstance<T extends KeywordInstance<?>> implements K
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", host.getName());
|
bread.setData("Card", host.getName());
|
||||||
bread.setData("Keyword", this.original);
|
bread.setData("Keyword", this.original);
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(this.original, this);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
// add Extra for debugging
|
// add Extra for debugging
|
||||||
Sentry.setExtra("Card", host.getName());
|
Sentry.setExtra("Card", host.getName());
|
||||||
@@ -125,9 +122,7 @@ public abstract class KeywordInstance<T extends KeywordInstance<?>> implements K
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", host.getName());
|
bread.setData("Card", host.getName());
|
||||||
bread.setData("Keyword", this.original);
|
bread.setData("Keyword", this.original);
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(this.original, this);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
//rethrow
|
//rethrow
|
||||||
throw new RuntimeException("Error in Keyword " + this.original + " for card " + host.getName(), e);
|
throw new RuntimeException("Error in Keyword " + this.original + " for card " + host.getName(), e);
|
||||||
@@ -162,9 +157,7 @@ public abstract class KeywordInstance<T extends KeywordInstance<?>> implements K
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Player", player.getName());
|
bread.setData("Player", player.getName());
|
||||||
bread.setData("Keyword", this.original);
|
bread.setData("Keyword", this.original);
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(this.original, this);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
// add Extra for debugging
|
// add Extra for debugging
|
||||||
Sentry.setExtra("Player", player.getName());
|
Sentry.setExtra("Player", player.getName());
|
||||||
@@ -180,9 +173,7 @@ public abstract class KeywordInstance<T extends KeywordInstance<?>> implements K
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Player", player.getName());
|
bread.setData("Player", player.getName());
|
||||||
bread.setData("Keyword", this.original);
|
bread.setData("Keyword", this.original);
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(this.original, this);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
//rethrow
|
//rethrow
|
||||||
throw new RuntimeException("Error in Keyword " + this.original + " for player " + player.getName(), e);
|
throw new RuntimeException("Error in Keyword " + this.original + " for player " + player.getName(), e);
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ import forge.game.zone.ZoneType;
|
|||||||
import forge.util.FileSection;
|
import forge.util.FileSection;
|
||||||
import forge.util.Visitor;
|
import forge.util.Visitor;
|
||||||
import io.sentry.Breadcrumb;
|
import io.sentry.Breadcrumb;
|
||||||
import io.sentry.Hint;
|
|
||||||
import io.sentry.Sentry;
|
import io.sentry.Sentry;
|
||||||
|
|
||||||
public class TriggerHandler {
|
public class TriggerHandler {
|
||||||
@@ -136,9 +135,7 @@ public class TriggerHandler {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", host.getName());
|
bread.setData("Card", host.getName());
|
||||||
bread.setData("Trigger", trigParse);
|
bread.setData("Trigger", trigParse);
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(host.getName(), host);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
//rethrow
|
//rethrow
|
||||||
throw new RuntimeException("Error in Trigger for Card: " + host.getName(), e);
|
throw new RuntimeException("Error in Trigger for Card: " + host.getName(), e);
|
||||||
@@ -166,9 +163,7 @@ public class TriggerHandler {
|
|||||||
Breadcrumb bread = new Breadcrumb(msg);
|
Breadcrumb bread = new Breadcrumb(msg);
|
||||||
bread.setData("Card", host.getName());
|
bread.setData("Card", host.getName());
|
||||||
bread.setData("Params", mapParams.toString());
|
bread.setData("Params", mapParams.toString());
|
||||||
Hint hint = new Hint();
|
Sentry.addBreadcrumb(bread);
|
||||||
hint.set(host.getName(), host);
|
|
||||||
Sentry.addBreadcrumb(bread, hint);
|
|
||||||
|
|
||||||
//rethrow
|
//rethrow
|
||||||
throw new RuntimeException("Error in Trigger for Card: " + host.getName(), e);
|
throw new RuntimeException("Error in Trigger for Card: " + host.getName(), e);
|
||||||
|
|||||||
Reference in New Issue
Block a user