Skip to content

Commit

Permalink
Unlock all cards
Browse files Browse the repository at this point in the history
  • Loading branch information
willroberts committed Dec 22, 2022
1 parent 2b1b70d commit 5423cb8
Show file tree
Hide file tree
Showing 13 changed files with 89 additions and 48 deletions.
4 changes: 2 additions & 2 deletions app/sdk/achievements/achievementsFactory.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ ThanksgivingLoginAchievement = require './loginBasedAchievements/thanksgivingLog
ChristmasLoginAchievement = require './loginBasedAchievements/christmasLoginAchievement.coffee'
NewPlayerGoldLoginAchievement = require './loginBasedAchievements/newPlayerGoldLoginAchievement.coffee'
NewPlayerSpiritLoginAchievement = require './loginBasedAchievements/newPlayerSpiritLoginAchievement.coffee'
NewPlayerCardsLoginAchievement = require './loginBasedAchievements/newPlayerCardsLoginAchievement.coffee'

# Wartech general achievements
WartechGeneralFaction1Achievement = require './wartechAchievements/wartechGeneralFaction1Achievement'
Expand Down Expand Up @@ -151,6 +152,7 @@ class AchievementsFactory
@_achievementsCache[ChristmasLoginAchievement.id] = ChristmasLoginAchievement
@_achievementsCache[NewPlayerGoldLoginAchievement.id] = NewPlayerGoldLoginAchievement
@_achievementsCache[NewPlayerSpiritLoginAchievement.id] = NewPlayerSpiritLoginAchievement
@_achievementsCache[NewPlayerCardsLoginAchievement.id] = NewPlayerCardsLoginAchievement
# wartech
@_achievementsCache[WartechGeneralFaction1Achievement.id] = WartechGeneralFaction1Achievement
@_achievementsCache[WartechGeneralFaction2Achievement.id] = WartechGeneralFaction2Achievement
Expand All @@ -167,8 +169,6 @@ class AchievementsFactory
@_achievementsCache[MythronOrb6Achievement.id] = MythronOrb6Achievement
@_achievementsCache[MythronOrb7Achievement.id] = MythronOrb7Achievement



# store the enabled achievements
@_enabledAchievementsCache = {}
for k,v of @_achievementsCache
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Achievement = require 'app/sdk/achievements/achievement'
moment = require 'moment'
GiftCrateLookup = require 'app/sdk/giftCrates/giftCrateLookup'

# This achievement exists so we can give new players a head start on their collection.
class NewPlayerCardsLoginAchievement extends Achievement
@id: "newPlayerCardsLoginAchievement"
@title: "Welcome to Duelyst!"
@description: "Open this crate to receive a complete card collection! If the client freezes, reload the page."
@progressRequired: 1
@rewards:
giftChests: [GiftCrateLookup.FullCollection]

@enabled: true

@progressForLoggingIn: (currentLoginMoment) ->
return 1

@getLoginAchievementStartsMoment: () ->
return moment.utc("2022-10-28T00:00-00:00")

module.exports = NewPlayerCardsLoginAchievement
2 changes: 0 additions & 2 deletions app/sdk/cards/cardSetLookup.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
class CardSet

@GauntletSpecial: -1

@Core: 1
@Shimzar: 2
@Bloodborn: 3
Expand Down
14 changes: 7 additions & 7 deletions app/sdk/cards/factory/core/faction1.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class CardFactory_CoreSet_Faction1

if (identifier == Cards.Faction1.AltGeneral)
card = new Unit(gameSession)
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.setIsGeneral(true)
card.factionId = Factions.Faction1
card.name = i18next.t("cards.faction_1_unit_ziran_name")
Expand Down Expand Up @@ -165,8 +165,8 @@ class CardFactory_CoreSet_Faction1
if (identifier == Cards.Faction1.ThirdGeneral)
card = new Unit(gameSession)
card.setIsGeneral(true)
card.setIsUnlockableWithAchievement(true)
card.setIsUnlockedWithAchievementId(WartechGeneralFaction1Achievement.id)
#card.setIsUnlockableWithAchievement(true)
#card.setIsUnlockedWithAchievementId(WartechGeneralFaction1Achievement.id)
card.factionId = Factions.Faction1
card.name = i18next.t("cards.faction_1_unit_brome_name")
card.setDescription(i18next.t("cards.faction_1_unit_brome_desc"))
Expand Down Expand Up @@ -301,7 +301,7 @@ class CardFactory_CoreSet_Faction1
if (identifier == Cards.Faction1.SilverguardKnight)
card = new Unit(gameSession)
card.factionId = Factions.Faction1
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.name = i18next.t("cards.faction_1_unit_silverguard_knight_name")
card.setBoundingBoxWidth(100)
card.setBoundingBoxHeight(80)
Expand Down Expand Up @@ -804,7 +804,7 @@ class CardFactory_CoreSet_Faction1
if (identifier == Cards.Spell.Tempest)
card = new SpellDamage(gameSession)
card.factionId = Factions.Faction1
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.Tempest
card.name = i18next.t("cards.faction_1_spell_tempest_name")
card.setDescription(i18next.t("cards.faction_1_spell_tempest_description"))
Expand Down Expand Up @@ -889,7 +889,7 @@ class CardFactory_CoreSet_Faction1
if (identifier == Cards.Spell.Martyrdom)
card = new SpellMartyrdom(gameSession)
card.factionId = Factions.Faction1
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.Martyrdom
card.name = i18next.t("cards.faction_1_spell_martyrdom_name")
card.setDescription(i18next.t("cards.faction_1_spell_martyrdom_description"))
Expand Down Expand Up @@ -1049,7 +1049,7 @@ class CardFactory_CoreSet_Faction1
if (identifier == Cards.Spell.DivineBond)
card = new SpellBuffAttributeByOtherAttribute(gameSession)
card.factionId = Factions.Faction1
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.DivineBond
card.name = i18next.t("cards.faction_1_spell_divine_bond_name")
card.setDescription(i18next.t("cards.faction_1_spell_divine_bond_description"))
Expand Down
14 changes: 7 additions & 7 deletions app/sdk/cards/factory/core/faction2.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class CardFactory_CoreSet_Faction2

if (identifier == Cards.Faction2.AltGeneral)
card = new Unit(gameSession)
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.setIsGeneral(true)
card.factionId = Factions.Faction2
card.name = i18next.t("cards.faction_2_unit_reva_name")
Expand Down Expand Up @@ -171,8 +171,8 @@ class CardFactory_CoreSet_Faction2
if (identifier == Cards.Faction2.ThirdGeneral)
card = new Unit(gameSession)
card.setIsGeneral(true)
card.setIsUnlockableWithAchievement(true)
card.setIsUnlockedWithAchievementId(WartechGeneralFaction2Achievement.id)
#card.setIsUnlockableWithAchievement(true)
#card.setIsUnlockedWithAchievementId(WartechGeneralFaction2Achievement.id)
card.factionId = Factions.Faction2
card.name = i18next.t("cards.faction_2_unit_shidai_name")
card.setDescription(i18next.t("cards.faction_2_unit_shidai_desc"))
Expand Down Expand Up @@ -516,7 +516,7 @@ class CardFactory_CoreSet_Faction2
card = new Unit(gameSession)
card.factionId = Factions.Faction2
card.raceId = Races.Arcanyst
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.name = i18next.t("cards.faction_2_unit_chakri_avatar_name")
card.setFXResource(["FX.Cards.Faction2.ChakriAvatar"])
card.setBaseSoundResource(
Expand Down Expand Up @@ -873,7 +873,7 @@ class CardFactory_CoreSet_Faction2
if (identifier == Cards.Spell.SaberspineSeal)
card = new SpellApplyModifiers(gameSession)
card.factionId = Factions.Faction2
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.SaberspineSeal
card.name = i18next.t("cards.faction_2_spell_saberspine_seal_name")
card.setDescription(i18next.t("cards.faction_2_spell_saberspine_seal_description"))
Expand Down Expand Up @@ -1045,7 +1045,7 @@ class CardFactory_CoreSet_Faction2
if (identifier == Cards.Spell.InnerFocus)
card = new SpellInnerFocus(gameSession)
card.factionId = Factions.Faction2
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.InnerFocus
card.name = i18next.t("cards.faction_2_spell_inner_focus_name")
card.setDescription(i18next.t("cards.faction_2_spell_inner_focus_description"))
Expand Down Expand Up @@ -1084,7 +1084,7 @@ class CardFactory_CoreSet_Faction2
if (identifier == Cards.Spell.GhostLightning)
card = new SpellDamage(gameSession)
card.factionId = Factions.Faction2
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.GhostLightning
card.name = i18next.t("cards.faction_2_spell_ghost_lightning_name")
card.setDescription(i18next.t("cards.faction_2_spell_ghost_lightning_description"))
Expand Down
14 changes: 7 additions & 7 deletions app/sdk/cards/factory/core/faction3.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class CardFactory_CoreSet_Faction3

if (identifier == Cards.Faction3.AltGeneral)
card = new Unit(gameSession)
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.setIsGeneral(true)
card.factionId = Factions.Faction3
card.name = i18next.t("cards.faction_3_unit_sajj_name")
Expand Down Expand Up @@ -166,8 +166,8 @@ class CardFactory_CoreSet_Faction3
if (identifier == Cards.Faction3.ThirdGeneral)
card = new Unit(gameSession)
card.setIsGeneral(true)
card.setIsUnlockableWithAchievement(true)
card.setIsUnlockedWithAchievementId(WartechGeneralFaction3Achievement.id)
#card.setIsUnlockableWithAchievement(true)
#card.setIsUnlockedWithAchievementId(WartechGeneralFaction3Achievement.id)
card.factionId = Factions.Faction3
card.name = i18next.t("cards.faction_3_unit_ciphyron_name")
card.setDescription(i18next.t("cards.faction_3_unit_ciphyron_desc"))
Expand Down Expand Up @@ -409,7 +409,7 @@ class CardFactory_CoreSet_Faction3
if (identifier == Cards.Faction3.BrazierRedSand)
card = new Unit(gameSession)
card.factionId = Factions.Faction3
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.name = i18next.t("cards.faction_3_unit_ethereal_obelysk_name")
card.setDescription(i18next.t("cards.faction_3_unit_ethereal_obelysk_desc"))
card.raceId = Races.Structure
Expand Down Expand Up @@ -876,7 +876,7 @@ class CardFactory_CoreSet_Faction3
if (identifier == Cards.Spell.CosmicFlesh)
card = new SpellApplyModifiers(gameSession)
card.factionId = Factions.Faction3
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.CosmicFlesh
card.name = i18next.t("cards.faction_3_spell_cosmic_flesh_name")
card.setDescription(i18next.t("cards.faction_3_spell_cosmic_flesh_description"))
Expand All @@ -902,7 +902,7 @@ class CardFactory_CoreSet_Faction3
if (identifier == Cards.Spell.Blindscorch)
card = new SpellApplyModifiers(gameSession)
card.factionId = Factions.Faction3
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.Blindscorch
card.name = i18next.t("cards.faction_3_spell_blindscorch_name")
card.setDescription(i18next.t("cards.faction_3_spell_blindscorch_description"))
Expand Down Expand Up @@ -1054,7 +1054,7 @@ class CardFactory_CoreSet_Faction3
if (identifier == Cards.Spell.ScionsSecondWish)
card = new SpellApplyModifiers(gameSession)
card.factionId = Factions.Faction3
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.ScionsSecondWish
card.name = i18next.t("cards.faction_3_spell_scions_second_wish_name")
card.setDescription(i18next.t("cards.faction_3_spell_scions_second_wish_description"))
Expand Down
14 changes: 7 additions & 7 deletions app/sdk/cards/factory/core/faction4.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class CardFactory_CoreSet_Faction4

if (identifier == Cards.Faction4.AltGeneral)
card = new Unit(gameSession)
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.setIsGeneral(true)
card.factionId = Factions.Faction4
card.name = i18next.t("cards.faction_4_unit_cassyva_name")
Expand Down Expand Up @@ -172,8 +172,8 @@ class CardFactory_CoreSet_Faction4
if (identifier == Cards.Faction4.ThirdGeneral)
card = new Unit(gameSession)
card.setIsGeneral(true)
card.setIsUnlockableWithAchievement(true)
card.setIsUnlockedWithAchievementId(WartechGeneralFaction4Achievement.id)
#card.setIsUnlockableWithAchievement(true)
#card.setIsUnlockedWithAchievementId(WartechGeneralFaction4Achievement.id)
card.factionId = Factions.Faction4
card.name = i18next.t("cards.faction_4_unit_maehv_name")
card.setDescription(i18next.t("cards.faction_4_unit_maehv_desc"))
Expand Down Expand Up @@ -216,7 +216,7 @@ class CardFactory_CoreSet_Faction4
if (identifier == Cards.Faction4.AbyssalCrawler)
card = new Unit(gameSession)
card.factionId = Factions.Faction4
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.name = i18next.t("cards.faction_4_unit_abyssal_crawler_name")
card.setDescription(i18next.t("cards.faction_4_unit_abyssal_crawler_desc"))
card.setFXResource(["FX.Cards.Faction4.AbyssalCrawler"])
Expand Down Expand Up @@ -856,7 +856,7 @@ class CardFactory_CoreSet_Faction4
if (identifier == Cards.Spell.DaemonicLure)
card = new SpellDamage(gameSession)
card.factionId = Factions.Faction4
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.DaemonicLure
card.name = i18next.t("cards.faction_4_spell_daemonic_lure_name")
card.setDescription(i18next.t("cards.faction_4_spell_daemonic_lure_description"))
Expand Down Expand Up @@ -896,7 +896,7 @@ class CardFactory_CoreSet_Faction4
if (identifier == Cards.Spell.ShadowNova)
card = new SpellChokingShadows(gameSession)
card.factionId = Factions.Faction4
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.ShadowNova
card.name = i18next.t("cards.faction_4_spell_shadow_nova_name")
card.setDescription(i18next.t("cards.faction_4_spell_shadow_nova_description"))
Expand Down Expand Up @@ -1115,7 +1115,7 @@ class CardFactory_CoreSet_Faction4
if (identifier == Cards.Spell.SoulshatterPact)
card = new SpellApplyModifiers(gameSession)
card.factionId = Factions.Faction4
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.SoulshatterPact
card.name = i18next.t("cards.faction_4_spell_soulshatter_pact_name")
card.setDescription(i18next.t("cards.faction_4_spell_soulshatter_pact_description"))
Expand Down
14 changes: 7 additions & 7 deletions app/sdk/cards/factory/core/faction5.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class CardFactory_CoreSet_Faction5

if (identifier == Cards.Faction5.AltGeneral)
card = new Unit(gameSession)
card.setIsUnlockableBasic(true)
##card.setIsUnlockableBasic(true)
card.setIsGeneral(true)
card.factionId = Factions.Faction5
card.name = i18next.t("cards.faction_5_unit_starhorn_name")
Expand Down Expand Up @@ -171,8 +171,8 @@ class CardFactory_CoreSet_Faction5
if (identifier == Cards.Faction5.ThirdGeneral)
card = new Unit(gameSession)
card.setIsGeneral(true)
card.setIsUnlockableWithAchievement(true)
card.setIsUnlockedWithAchievementId(WartechGeneralFaction5Achievement.id)
#card.setIsUnlockableWithAchievement(true)
#card.setIsUnlockedWithAchievementId(WartechGeneralFaction5Achievement.id)
card.factionId = Factions.Faction5
card.name = i18next.t("cards.faction_5_unit_ragnora_name")
card.setDescription(i18next.t("cards.faction_5_unit_ragnora_desc"))
Expand Down Expand Up @@ -471,7 +471,7 @@ class CardFactory_CoreSet_Faction5
if (identifier == Cards.Faction5.PrimordialGazer)
card = new Unit(gameSession)
card.factionId = Factions.Faction5
card.setIsUnlockableBasic(true)
##card.setIsUnlockableBasic(true)
card.name = i18next.t("cards.faction_5_unit_primordial_gazer_name")
card.setDescription(i18next.t("cards.faction_5_unit_primordial_gazer_desc"))
card.setFXResource(["FX.Cards.Faction5.PrimordialGazer"])
Expand Down Expand Up @@ -865,7 +865,7 @@ class CardFactory_CoreSet_Faction5
if (identifier == Cards.Spell.DampeningWave)
card = new SpellApplyModifiers(gameSession)
card.factionId = Factions.Faction5
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.DampeningWave
card.name = i18next.t("cards.faction_5_spell_dampening_wave_name")
card.setDescription(i18next.t("cards.faction_5_spell_dampening_wave_description"))
Expand Down Expand Up @@ -950,7 +950,7 @@ class CardFactory_CoreSet_Faction5
if (identifier == Cards.Spell.DanceOfDreams)
card = new SpellApplyPlayerModifiers(gameSession)
card.factionId = Factions.Faction5
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.DanceOfDreams
card.name = i18next.t("cards.faction_5_spell_dance_of_dreams_name")
card.setDescription(i18next.t("cards.faction_5_spell_dance_of_dreams_description"))
Expand Down Expand Up @@ -1082,7 +1082,7 @@ class CardFactory_CoreSet_Faction5
if (identifier == Cards.Spell.PlasmaStorm)
card = new SpellLavastorm(gameSession)
card.factionId = Factions.Faction5
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.PlasmaStorm
card.name = i18next.t("cards.faction_5_spell_plasma_storm_name")
card.setDescription(i18next.t("cards.faction_5_spell_plasma_storm_description"))
Expand Down
14 changes: 7 additions & 7 deletions app/sdk/cards/factory/core/faction6.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class CardFactory_CoreSet_Faction6

if (identifier == Cards.Faction6.AltGeneral)
card = new Unit(gameSession)
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.setIsGeneral(true)
card.factionId = Factions.Faction6
card.name = i18next.t("cards.faction_6_unit_kara_name")
Expand Down Expand Up @@ -173,8 +173,8 @@ class CardFactory_CoreSet_Faction6
if (identifier == Cards.Faction6.ThirdGeneral)
card = new Unit(gameSession)
card.setIsGeneral(true)
card.setIsUnlockableWithAchievement(true)
card.setIsUnlockedWithAchievementId(WartechGeneralFaction6Achievement.id)
#card.setIsUnlockableWithAchievement(true)
#card.setIsUnlockedWithAchievementId(WartechGeneralFaction6Achievement.id)
card.factionId = Factions.Faction6
card.name = i18next.t("cards.faction_6_unit_ilena_name")
card.setDescription(i18next.t("cards.faction_6_unit_ilena_desc"))
Expand Down Expand Up @@ -218,7 +218,7 @@ class CardFactory_CoreSet_Faction6
if (identifier == Cards.Faction6.FenrirWarmaster)
card = new Unit(gameSession)
card.factionId = Factions.Faction6
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.name = i18next.t("cards.faction_6_unit_fenrir_warmaster_name")
card.setDescription(i18next.t("cards.faction_6_unit_fenrir_warmaster_desc"))
card.setFXResource(["FX.Cards.Faction6.FenrirWarmaster"])
Expand Down Expand Up @@ -1165,7 +1165,7 @@ class CardFactory_CoreSet_Faction6
if (identifier == Cards.Spell.ChromaticCold)
card = new SpellChromaticCold(gameSession)
card.factionId = Factions.Faction6
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.ChromaticCold
card.name = i18next.t("cards.faction_6_spell_chromatic_cold_name")
card.setDescription(i18next.t("cards.faction_6_spell_chromatic_cold_description"))
Expand Down Expand Up @@ -1226,7 +1226,7 @@ class CardFactory_CoreSet_Faction6
if (identifier == Cards.Spell.Avalanche)
card = new SpellAvalanche(gameSession)
card.factionId = Factions.Faction6
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.Avalanche
card.name = i18next.t("cards.faction_6_spell_avalanche_name")
card.setDescription(i18next.t("cards.faction_6_spell_avalanche_description"))
Expand Down Expand Up @@ -1328,7 +1328,7 @@ class CardFactory_CoreSet_Faction6
if (identifier == Cards.Spell.AspectOfTheWolf)
card = new SpellAspectBase(gameSession)
card.factionId = Factions.Faction6
card.setIsUnlockableBasic(true)
#card.setIsUnlockableBasic(true)
card.id = Cards.Spell.AspectOfTheWolf
card.name = i18next.t("cards.faction_6_spell_aspect_of_the_fox_name")
card.setDescription(i18next.t("cards.faction_6_spell_aspect_of_the_fox_description"))
Expand Down
Loading

0 comments on commit 5423cb8

Please sign in to comment.