m (.) |
m |
||
Line 2: | Line 2: | ||
… still in v4.981</center> | … still in v4.981</center> | ||
<center><img src="https://www.shadowera.com/landing/img/blog-separator-2.png" ></center><br /> | <center><img src="https://www.shadowera.com/landing/img/blog-separator-2.png" ></center><br /> | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! File References in the Game | ||
+ | |- | ||
+ | | | ||
+ | *CardInfoPanel.cs | ||
+ | *KeywordAbilities.cs | ||
+ | *SpecificCard.cs | ||
+ | *ll001.cs | ||
+ | *ll006.cs | ||
+ | *ll040.cs | ||
+ | *ll154.cs | ||
+ | |- | ||
+ | ! Code seek: | ||
+ | |- | ||
+ | | | ||
+ | <syntaxhighlight lang="csharp"> | ||
+ | public void StartTargetingForSeek() | ||
+ | { | ||
+ | ClearTargets(); | ||
+ | MoveToCastPosition(); | ||
+ | GameModel.UnhighlightCards(); | ||
+ | GameModel.SetGameState(GameState.GameStateType.target); | ||
+ | List<ShadowEraCard> abilityTargets = GetAbilityTargets(); | ||
+ | for (int i = 0; i < GameModel.DeckCount(); i++) | ||
+ | { | ||
+ | ShadowEraCard deck = GameModel.GetDeck(i); | ||
+ | if (abilityTargets.Contains(deck)) | ||
+ | { | ||
+ | GameModel.RemoveDeck(deck); | ||
+ | i--; | ||
+ | } | ||
+ | } | ||
+ | for (int j = 0; j < abilityTargets.Count; j++) | ||
+ | { | ||
+ | GameModel.AddDeck(abilityTargets[j]); | ||
+ | } | ||
+ | GameModel.HighlightCards(GetAbilityTargets()); | ||
+ | DeckListDisplay.abilityCard = parent; | ||
+ | DeckListDisplay.ShowDeck(GameModel.CurSide()); | ||
+ | } | ||
+ | |||
+ | public void DoSeek(bool usedShadowEnergy) | ||
+ | {</span> | ||
+ | DeckListDisplay.CloseDeck(); | ||
+ | if (targets.Count > 0 && GameModel.HandCount() < GameModel.MaxHandSize()) | ||
+ | { | ||
+ | GameModel.RemoveDeck(targets[0]); | ||
+ | GameModel.ShowCardForPlayer(targets[0]); | ||
+ | GameModel.AddHand(targets[0]); | ||
+ | GameModel.OnSeek(targets[0]); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | GameModel.OnSeek(null); | ||
+ | } | ||
+ | ShuffleOurDeck(); | ||
+ | targets.Clear(); | ||
+ | } | ||
+ | |||
+ | public void ShuffleOurDeck() | ||
+ | { | ||
+ | GameModel.ShuffleDeck(); | ||
+ | } | ||
+ | </syntaxhighlight> | ||
+ | |} | ||
<span style="color:orange;">Alan said: "Card effects take precedence over the game rules."</span><br /><br /> | <span style="color:orange;">Alan said: "Card effects take precedence over the game rules."</span><br /><br /> | ||
Line 37: | Line 103: | ||
} | } | ||
|} | |} | ||
− | + | <br /><br /> | |
− | + | ||
− | + | ||
[[Category:Seek]] | [[Category:Seek]] |
File References in the Game |
---|
|
Code seek: |
public void StartTargetingForSeek() { ClearTargets(); MoveToCastPosition(); GameModel.UnhighlightCards(); GameModel.SetGameState(GameState.GameStateType.target); List<ShadowEraCard> abilityTargets = GetAbilityTargets(); for (int i = 0; i < GameModel.DeckCount(); i++) { ShadowEraCard deck = GameModel.GetDeck(i); if (abilityTargets.Contains(deck)) { GameModel.RemoveDeck(deck); i--; } } for (int j = 0; j < abilityTargets.Count; j++) { GameModel.AddDeck(abilityTargets[j]); } GameModel.HighlightCards(GetAbilityTargets()); DeckListDisplay.abilityCard = parent; DeckListDisplay.ShowDeck(GameModel.CurSide()); } public void DoSeek(bool usedShadowEnergy) {</span> DeckListDisplay.CloseDeck(); if (targets.Count > 0 && GameModel.HandCount() < GameModel.MaxHandSize()) { GameModel.RemoveDeck(targets[0]); GameModel.ShowCardForPlayer(targets[0]); GameModel.AddHand(targets[0]); GameModel.OnSeek(targets[0]); } else { GameModel.OnSeek(null); } ShuffleOurDeck(); targets.Clear(); } public void ShuffleOurDeck() { GameModel.ShuffleDeck(); } |
Alan said: "Card effects take precedence over the game rules."
void PlayFaceDown(ShadowEraCard card, bool isSeeked)
{ if (isSeeked) { // Allow RevealCard() to be invoked for Seeked cards RevealCard(card); } else { // Keep the card face-down as usual (normal Trap behavior) KeepCardFaceDown(card); } } |