/// <summary> /// Builds the SubtypeData represented by this builders's parameters; /// </summary> /// <returns>The newly created SubtypeData</returns> public SubtypeData Build() { SubtypeData subtypeData = new SubtypeData(); AccessTools.Field(typeof(SubtypeData), "_subtype").SetValue(subtypeData, this._Subtype); AccessTools.Field(typeof(SubtypeData), "_isChampion").SetValue(subtypeData, this._IsChampion); AccessTools.Field(typeof(SubtypeData), "_isNone").SetValue(subtypeData, this._IsNone); AccessTools.Field(typeof(SubtypeData), "_isTreasureCollector").SetValue(subtypeData, this._IsTreasureCollector); AccessTools.Field(typeof(SubtypeData), "_isImp").SetValue(subtypeData, this._IsImp); return(subtypeData); }
static void Postfix(ref SubtypeData __result, string key) { if (key == null) { return; } if (CustomCharacterManager.CustomSubtypeData.ContainsKey(key)) { CustomCharacterManager.CustomSubtypeData.TryGetValue(key, out __result); } }
static void Postfix(CardEffectState effectState, List <CharacterState> targets, SpawnPoint dropLocation, SubtypeData targetSubtype) { if (BossTargetIgnoreFix.targetIgnoreBosses && effectState.GetTargetMode() == TargetMode.DropTargetCharacter && dropLocation != null) { CharacterState characterState = dropLocation.GetCharacterState(); if (characterState.IsMiniboss() || characterState.IsOuterTrainBoss()) { targets.Clear(); // lastTargetedCharacters.Clear(); } } }