Add guard weapon loadouts and new electric staff (#1525)

Introduces new guard weapon loadouts including guard's sword, halberd, rapier, and a magic electric staff. Adds the 'lightning strike small' spell and related assets, updates spell damage values, and provides new modular grip and staff sprites. Updates localization, trading positions, and integrates new equipment into guard roles.
This commit is contained in:
Red
2025-07-12 14:52:12 +03:00
committed by GitHub
parent cadee25367
commit 29a7234ae6
29 changed files with 330 additions and 4 deletions

View File

@@ -49,6 +49,7 @@ cp14-loadout-guard-head = Guard's head
cp14-loadout-guard-pants = Guard's pants
cp14-loadout-guard-shirt = Guard's shirt
cp14-loadout-guard-spells = Guard's spells
cp14-loadout-guard-equip = Guard's equipment
cp14-loadout-merchant-head = Merchant's hat
cp14-loadout-merchant-cloak = Merchant's cloak

View File

@@ -49,6 +49,7 @@ cp14-loadout-guard-head = Шляпа стражи
cp14-loadout-guard-pants = Штаны стражи
cp14-loadout-guard-shirt = Рубашка стражи
cp14-loadout-guard-spells = Заклинания стражи
cp14-loadout-guard-equip = Экипировка стражи
cp14-loadout-merchant-head = Шляпа торговца
cp14-loadout-merchant-cloak = Накидка торговца

View File

@@ -21,7 +21,7 @@
- !type:HealthChange
damage:
types:
Shock: 15
Shock: 20
- !type:Jitter
- !type:CP14StaminaChange
staminaDelta: -75
@@ -86,10 +86,10 @@
- !type:HealthChange
damage:
types:
Shock: 5
Shock: 10
- !type:Jitter
- !type:CP14StaminaChange
staminaDelta: -15
staminaDelta: -20
- type: entity
id: CP14RuneLightningStrike

View File

@@ -0,0 +1,86 @@
- type: entity
id: CP14ActionSpellLightningStrikeSmall
parent: CP14ActionSpellBase
name: Small lightning strike
description: You charge a lightning bolt that burns a medium amount of stamina from the target.
components:
- type: CP14MagicEffectCastSlowdown
speedMultiplier: 0.5
- type: CP14MagicEffectManaCost
manaCost: 7
- type: CP14MagicEffect
magicType: Energia
effects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:
- CP14ElectrifiedEffect
- !type:CP14SpellCreateBeam
beamProto: CP14LightningStrikeSmallBeam
- !type:CP14SpellApplyEntityEffect
effects:
- !type:HealthChange
damage:
types:
Shock: 8
- !type:Jitter
- !type:CP14StaminaChange
staminaDelta: -15
- !type:CP14SpellThrowFromUser
throwPower: 2
distance: 0.5
- type: CP14MagicEffectPacifiedBlock
- type: Action
icon:
sprite: _CP14/Actions/Spells/electromancy.rsi
state: lightning_strike_small
- type: TargetAction
range: 3
- type: EntityTargetAction
canTargetSelf: false
event: !type:CP14EntityTargetActionEvent
cooldown: 4
- type: entity
name: lightning
id: CP14LightningStrikeSmallBeam
categories: [ HideSpawnMenu ]
components:
- type: Sprite
sprite: /Textures/_CP14/Effects/Beams/lightning.rsi
drawdepth: Effects
layers:
- state: lightning_small
shader: unshaded
- type: Physics
canCollide: false
- type: PointLight
enabled: true
color: "#e8ff4c"
radius: 1.2
softness: 1
autoRot: true
castShadows: false
- type: Beam
sound:
collection: sparks
- type: TimedDespawn
lifetime: 1
- type: LightFade
duration: 1
- type: Tag
tags:
- HideContextMenu
- type: CP14SpellEffectOnCollide
effects:
- !type:CP14SpellSpawnEntityOnTarget
spawns:
- CP14ElectrifiedEffect
- !type:CP14SpellApplyEntityEffect
effects:
- !type:HealthChange
damage:
types:
Shock: 7
- !type:Jitter
- !type:CP14StaminaChange
staminaDelta: -8

View File

@@ -191,6 +191,18 @@
materialComposition:
CP14Iron: 10
- type: entity
parent: CP14ModularGripIron
id: CP14ModularGripIronGuard
components:
- type: Sprite
sprite: _CP14/Objects/ModularTools/Grip/iron_guard_grip.rsi
state: icon
- type: CP14ModularCraftStartPoint
startProtoPart: CP14ModularGripIronGuard
- type: StaticPrice
price: 10
- type: entity
parent: CP14ModularGripShort
id: CP14ModularGripGolden

View File

@@ -108,6 +108,24 @@
- type: StaticPrice
price: 300
- type: entity
id: CP14MagicGuardElectroStaff
parent: CP14MagicShadowStaff
name: guards electric staff
description: A long, half-tech, half-magic stick designed to convert magical energy into eletric spells.
components:
- type: CP14SpellStorage
spells:
- CP14ActionSpellLightningStrike
- CP14ActionSpellLightningStrikeSmall
- CP14ActionSpellLightningStrikeSmall
- type: Sprite
sprite: _CP14/Objects/Weapons/Magic/TwoHandedStaff/guard_electro_staff.rsi
- type: Clothing
sprite: _CP14/Objects/Weapons/Magic/TwoHandedStaff/guard_electro_staff.rsi
- type: StaticPrice
price: 150
- type: entity
id: CP14MagicDruidStaff
parent: CP14MagicHealingStaff

View File

@@ -47,6 +47,24 @@
- CP14ModularBladeIronRapier
- CP14ModularGardeGuildmaster
- type: entity
id: CP14ModularGuardRapier
parent: CP14ModularGripIronGuard
name: "guard's rapier"
description: The standard issue armament of the imperial guard. A short rapier adorned with blue feathers and brass.
components:
- type: Sprite
layers:
- state: icon
- sprite: _CP14/Objects/ModularTools/Blade/Rapier/metall_rapier.rsi
state: icon
- sprite: _CP14/Objects/ModularTools/Garde/metall_sharp.rsi
state: icon
- type: CP14ModularCraftAutoAssemble
details:
- CP14ModularBladeIronRapier
- CP14ModularGardeSharpIron
- type: entity
id: CP14ModularWoodenRapier
parent: CP14ModularGripWooden

View File

@@ -33,7 +33,25 @@
id: CP14ModularGuardHalberd
parent: CP14ModularGripIronLongGuard
name: "guard's halberd"
description: The standard issue armament of the imperial guard. A long iron halberd adorned with blue feathers and brass
description: The standard issue armament of the imperial guard. A long iron halberd adorned with blue feathers and brass.
components:
- type: Sprite
layers:
- state: icon
- sprite: _CP14/Objects/ModularTools/Blade/Sword/metall_sword.rsi
state: icon
- sprite: _CP14/Objects/ModularTools/Garde/metall_sharp.rsi
state: icon
- type: CP14ModularCraftAutoAssemble
details:
- CP14ModularBladeIronSword
- CP14ModularGardeSharpIron
- type: entity
id: CP14ModularGuardSword
parent: CP14ModularGripIronGuard
name: "guard's sword"
description: The standard issue armament of the imperial guard. A short sword adorned with blue feathers and brass.
components:
- type: Sprite
layers:

View File

@@ -76,3 +76,46 @@
id: CP14ClothingShirtGuardsChainmailShirtB
equipment:
shirt: CP14ClothingShirtGuardsChainmailShirtB
# Weapon
- type: loadoutGroup
id: CP14GuardEquip
name: cp14-loadout-guard-equip
minLimit: 1
maxLimit: 1
loadouts:
- CP14ModularGuardSword
- CP14ModularGuardHalberd
- CP14ModularGuardRapier
- CP14BowCombat
- CP14MagicGuardElectroStaff
- type: loadout
id: CP14ModularGuardSword
dummyEntity: CP14ModularGuardSword
equipment:
belt2: CP14ModularGuardSword
skills:
- SwordMastery
- type: loadout
id: CP14MagicGuardElectroStaff
equipment:
belt2: CP14MagicGuardElectroStaff
- type: loadout
id: CP14ModularGuardHalberd
dummyEntity: CP14ModularGuardHalberd
equipment:
belt2: CP14ModularGuardHalberd
skills:
- SwordMastery
- type: loadout
id: CP14ModularGuardRapier
dummyEntity: CP14ModularGuardRapier
equipment:
belt2: CP14ModularGuardRapier
skills:
- RapierMastery

View File

@@ -85,6 +85,7 @@
- CP14GeneralShoes
- CP14GeneralBack
- CP14GeneralTrinkets
- CP14GuardEquip
- type: roleLoadout
id: JobCP14Investigator
@@ -99,6 +100,7 @@
- CP14GeneralShoes
- CP14GeneralBack
- CP14GeneralTrinkets
- CP14GuardEquip
- type: roleLoadout
id: JobCP14Guard
@@ -113,6 +115,7 @@
- CP14GeneralShoes
- CP14GeneralBack
- CP14GeneralTrinkets
- CP14GuardEquip
- type: roleLoadout
id: JobCP14Commandant

View File

@@ -24,6 +24,20 @@
- !type:NeedPrerequisite
prerequisite: ElectromancyT1
- type: cp14Skill
id: CP14ActionSpellLightningStrikeSmall
skillUiPosition: 2, 4
tree: Electromancy
icon:
sprite: _CP14/Actions/Spells/electromancy.rsi
state: lightning_strike_small
effects:
- !type:AddAction
action: CP14ActionSpellLightningStrikeSmall
restrictions:
- !type:NeedPrerequisite
prerequisite: ElectromancyT1
# T2
- type: cp14Skill

View File

@@ -53,3 +53,36 @@
service: !type:CP14BuyItemsService
product: CP14Rope
count: 1
- type: cp14TradingPosition
id: CP14MagicGuardElectroStaff
faction: Guards
uiPosition: 5
icon:
sprite: _CP14/Objects/Weapons/Magic/TwoHandedStaff/guard_electro_staff.rsi
state: icon
service: !type:CP14BuyItemsService
product: CP14MagicGuardElectroStaff
count: 1
- type: cp14TradingPosition
id: CP14ModularGripIronGuard
faction: Guards
uiPosition: 6
icon:
sprite: _CP14/Objects/ModularTools/Grip/iron_guard_grip.rsi
state: icon
service: !type:CP14BuyItemsService
product: CP14ModularGripIronGuard
count: 1
- type: cp14TradingPosition
id: CP14ModularGripIronLongGuard
faction: Guards
uiPosition: 7
icon:
sprite: _CP14/Objects/ModularTools/GripLong/iron_grip_long_guard.rsi
state: icon
service: !type:CP14BuyItemsService
product: CP14ModularGripIronLongGuard
count: 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

View File

@@ -10,6 +10,9 @@
{
"name": "lightning_strike"
},
{
"name": "lightning_strike_small"
},
{
"name": "speed_music"
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -23,6 +23,18 @@
2
]
]
},
{
"name": "lightning_small",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
2
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

View File

@@ -0,0 +1,30 @@
{
"version": 1,
"license": "CC-BY-SA-4.0",
"copyright": "Created by dinazewwr",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "equipped-BELT",
"directions": 4
},
{
"name": "equipped-BELT2",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 800 B

View File

@@ -0,0 +1,34 @@
{
"version": 1,
"license": "CC-BY-SA-4.0",
"copyright": "Created by TheShuEd (Github)",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "wielded-inhand-left",
"directions": 4
},
{
"name": "wielded-inhand-right",
"directions": 4
},
{
"name": "equipped-NECK",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B