Currency collect goal (#352)

* simple currency comp

* stack support + weapon cost dnd port

* add collect currency objective conditions

* clean up
This commit is contained in:
Ed
2024-07-24 13:28:27 +03:00
committed by GitHub
parent bf93349b73
commit 9c84ce9be0
26 changed files with 332 additions and 24 deletions

View File

@@ -23,6 +23,9 @@
- coin9
- coin10
- type: Appearance
- type: CP14Currency
currency: 1
category: Currency
# Copper
@@ -41,6 +44,8 @@
- type: Stack
stackType: CP14CopperCoin
count: 10
- type: CP14Currency
currency: 1
- type: entity
id: CP14CopperCoin5
@@ -79,6 +84,8 @@
- type: Stack
stackType: CP14SilverCoin
count: 10
- type: CP14Currency
currency: 10
- type: entity
id: CP14SilverCoin5
@@ -117,6 +124,8 @@
- type: Stack
stackType: CP14GoldCoin
count: 10
- type: CP14Currency
currency: 100
- type: entity
id: CP14GoldCoin5
@@ -155,6 +164,8 @@
- type: Stack
stackType: CP14PlatinumCoin
count: 10
- type: CP14Currency
currency: 1000
- type: entity
id: CP14PlatinumCoin5

View File

@@ -57,3 +57,5 @@
params:
variation: 0.03
volume: 2
- type: CP14Currency
currency: 1500

View File

@@ -35,4 +35,6 @@
soundHit:
collection: MetalThud
cPAnimationLength: 0.3
cPAnimationOffset: -1.3
cPAnimationOffset: -1.3
- type: CP14Currency
currency: 20

View File

@@ -41,4 +41,6 @@
offset: 0.15,0.15
removalTime: 1
- type: ThrowingAngle
angle: 225
angle: 225
- type: CP14Currency
currency: 200

View File

@@ -40,4 +40,6 @@
damage:
types:
Slash: 5
Piercing: 5
Piercing: 5
- type: CP14Currency
currency: 500

View File

@@ -42,3 +42,5 @@
params:
variation: 0.03
volume: 2
- type: CP14Currency
currency: 200

View File

@@ -34,3 +34,5 @@
damage:
types:
Blunt: 10
- type: CP14Currency
currency: 500

View File

@@ -38,4 +38,6 @@
collection: MetalThud
- type: Tag
tags:
- CP14HerbalGathering
- CP14HerbalGathering
- type: CP14Currency
currency: 100

View File

@@ -33,4 +33,10 @@
types:
Slash: 12
soundHit:
collection: MetalThud
collection: MetalThud
- type: CP14SkillRequirement
fuckupChance: 0.5
requiredSkills:
- Warcraft
- type: CP14Currency
currency: 1200

View File

@@ -48,6 +48,8 @@
fuckupChance: 0.5
requiredSkills:
- Warcraft
- type: CP14Currency
currency: 5000
- type: entity
id: CP14TwoHandedSwordScythe

View File

@@ -51,4 +51,6 @@
unwielded-arrow:
whitelist:
tags:
- CP14CrossbowBolt
- CP14CrossbowBolt
- type: CP14Currency
currency: 2500

View File

@@ -13,7 +13,8 @@
components:
- type: CP14ExpeditionObjectivesRule
objectives:
- CP14ExpeditionCollectGoldObjective
#- CP14ExpeditionCollectGoldObjective
- CP14PersonalCurrencyCollectObjectiveMedium
# Expedition random objectives
# main objective + sub objective?
# motivations

View File

@@ -0,0 +1,51 @@
- type: entity
abstract: true
parent: BaseObjective
id: CP14BasePersonalObjective
components:
- type: Objective
issuer: cp14-objective-issuer-personal
difficulty: 1
- type: entity
parent: CP14BasePersonalObjective
abstract: true
id: CP14BasePersonalCurrencyCollectObjective
components:
- type: Objective
difficulty: 0
- type: CP14CurrencyCollectCondition
currency: 10
category: Currency
objectiveText: cp14-objective-personal-currency-collect-title
objectiveDescription: cp14-objective-personal-currency-collect-desc
objectiveSprite:
sprite: /Textures/_CP14/Objects/Economy/gp_coin.rsi
state: coin10
- type: entity
parent: CP14BasePersonalCurrencyCollectObjective
id: CP14PersonalCurrencyCollectObjectiveSmall
components:
- type: Objective
difficulty: 0.5
- type: CP14CurrencyCollectCondition
currency: 500
- type: entity
parent: CP14BasePersonalCurrencyCollectObjective
id: CP14PersonalCurrencyCollectObjectiveMedium
components:
- type: Objective
difficulty: 1
- type: CP14CurrencyCollectCondition
currency: 1000
- type: entity
parent: CP14BasePersonalCurrencyCollectObjective
id: CP14PersonalCurrencyCollectObjectiveBig
components:
- type: Objective
difficulty: 3
- type: CP14CurrencyCollectCondition
currency: 3000