fix: correct TweakXL structure for Iconic weapons

- Use  on existing weapons (Katana_Default, Knife_Default)
- Add hidden IconicWeaponModAbilityBase with statModifiers
- GameplayLogicPackage with OnAttach for 100% bleed effect
- Correct stat types: ArmorPenetration, BleedingApplicationRate
- Proper  annotations for all records
This commit is contained in:
arch_agent
2026-07-21 16:59:43 +02:00
parent d02be9df45
commit a0819cd338
+103 -106
View File
@@ -1,8 +1,6 @@
# Crystal Blades — Kristallklingen # Crystal Blades — Kristallklingen
# TweakXL Definitionen für zwei neue Waffen: # Korrekte TweakXL Struktur für CP2077 2.31
# 1. "Kristallschneider" — Katana mit monomolekularer Klinge # Eine Iconic Waffe = Base Weapon + Hidden Mod (GameplayLogicPackage)
# 2. "Phantom Splitter" — Wurfdolch mit monomolekularer Klinge
# Beide ignorieren Rüstung und verursachen 100% Blutung
# ============================================================ # ============================================================
# WAFFE 1: Kristallschneider (Katana) # WAFFE 1: Kristallschneider (Katana)
@@ -13,39 +11,63 @@ Items.Preset_Crystal_Katana:
displayName: LocKey#crystal_katana_name displayName: LocKey#crystal_katana_name
localizedDescription: LocKey#crystal_katana_desc localizedDescription: LocKey#crystal_katana_desc
quality: Quality.Legendary quality: Quality.Legendary
appearanceResourceName: crystal_katana_app
# Stats
dps: 350.0
damagePerHit: 180.0
attackSpeed: 1.2
attacksPerSecond: 1.2
# Monomolekular: Ignoriert Rüstung
armorPenetration: 1.0 # 100% Rüstung ignorieren
# 100% Bleed Chance
statusEffectApplicationChance: 1.0
# Damage Type
damageType: DamageType.Physical
# Iconic Effekte
iconicName: LocKey#crystal_katana_iconic iconicName: LocKey#crystal_katana_iconic
iconicDescription: LocKey#crystal_katana_iconic_desc iconicDescription: LocKey#crystal_katana_iconic_desc
# Slots # Hidden Iconic Mod (das ist der Schlüssel!)
slots: mods:
- Items.IconicWeaponModSlot - Items.Crystal_Katana_Mod
# Werte # Das Hidden Mod — enthält alle Stat-Veränderungen
mass: 2.5 Items.Crystal_Katana_Mod:
sellPrice: 5000 $base: Items.IconicWeaponModAbilityBase
buyPrice: 25000 statModifiers:
# 100% Armor Penetration
- $type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: ArmorPenetration
value: 1.0
# 100% Bleed Chance
- $type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: BleedingApplicationRate
value: 1.0
# Damage Bonus
- $type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: DPS
value: 150.0
# Attack Speed
- $type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: AttackSpeed
value: 0.2
# Crit Chance
- $type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: CritChance
value: 15.0
OnAttach:
- Items.Crystal_Katana_Package
# Crit # Gameplay Logic Package — Iconic Effekte
critChance: 25.0 Items.Crystal_Katana_Package:
critDamageMultiplier: 2.0 $type: gamedataGameplayLogicPackage_Record
stackable: false
UIData:
$type: gamedataGameplayLogicPackageUIData_Record
iconPath: icon katana
localizedDescription: LocKey#crystal_katana_iconic_desc
effects:
- Items.Crystal_Katana_Bleed_Effect
# 100% Bleed Effekt bei jedem Treffer
Items.Crystal_Katana_Bleed_Effect:
$type: gamedataEffector_Record
effectorType: AddStatusEffect
applicationTarget: Target
statusEffect: BaseStatusEffect.Bleeding
probability: 1.0
# ============================================================ # ============================================================
# WAFFE 2: Phantom Splitter (Wurfdolch) # WAFFE 2: Phantom Splitter (Wurfdolch)
@@ -56,86 +78,61 @@ Items.Preset_Crystal_ThrowingKnife:
displayName: LocKey#crystal_knife_name displayName: LocKey#crystal_knife_name
localizedDescription: LocKey#crystal_knife_desc localizedDescription: LocKey#crystal_knife_desc
quality: Quality.Legendary quality: Quality.Legendary
appearanceResourceName: crystal_knife_app
# Stats — schnell aber weniger Damage pro Hit
dps: 280.0
damagePerHit: 120.0
attackSpeed: 2.5
attacksPerSecond: 2.5
# Monomolekular: Ignoriert Rüstung
armorPenetration: 1.0 # 100% Rüstung ignorieren
# 100% Bleed Chance
statusEffectApplicationChance: 1.0
# Damage Type
damageType: DamageType.Physical
# Iconic Effekte
iconicName: LocKey#crystal_knife_iconic iconicName: LocKey#crystal_knife_iconic
iconicDescription: LocKey#crystal_knife_iconic_desc iconicDescription: LocKey#crystal_knife_iconic_desc
# Slots mods:
slots: - Items.Crystal_Knife_Mod
- Items.IconicWeaponModSlot
# Werte Items.Crystal_Knife_Mod:
mass: 0.5 $base: Items.IconicWeaponModAbilityBase
sellPrice: 3000 statModifiers:
buyPrice: 15000 # 100% Armor Penetration
- $type: gamedataConstantStatModifier_Record
# Crit — hoher Crit für Wurfdolch
critChance: 40.0
critDamageMultiplier: 3.0
# ============================================================
# Status Effects — 100% Bleed
# ============================================================
# Custom Status Effect: Garantierte Blutung bei jedem Treffer
Attacks.GuaranteedBleedingEffect:
$type: gamedataAttack_Record
attackType: AttackType.Melee
statusEffects:
- Attacks.GuaranteedBleedingEntry
Attacks.GuaranteedBleedingEntry:
$type: gamedataStatusEffectAttackData_Record
statusEffect: BaseStatusEffect.Bleeding
applicationChance: 1.0 # 100% chance
duration: 10.0 # 10 seconds bleed
maxStacks: 5 # stackable
# ============================================================
# Armor Penetration — Rüstung komplett ignorieren
# ============================================================
# Custom Effekt: Rüstung ignorieren
Items.Crystal_ArmorPierce_Effect:
$type: gamedataStatusEffect_Record
duration:
$type: gamedataStatModifier_Record
modifierType: Additive modifierType: Additive
statType: StatusEffectDuration statType: ArmorPenetration
value: 9999.0 # permanent while equipped value: 1.0
packages: # 100% Bleed Chance
- Items.Crystal_ArmorPierce_Package - $type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: BleedingApplicationRate
value: 1.0
# Damage Bonus
- $type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: DPS
value: 100.0
# Attack Speed — sehr schnell für Wurfdolch
- $type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: AttackSpeed
value: 0.5
# Crit Chance — hoch für Wurfdolch
- $type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: CritChance
value: 25.0
# Crit Damage
- $type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: CritDamage
value: 50.0
OnAttach:
- Items.Crystal_Knife_Package
Items.Crystal_ArmorPierce_Package: Items.Crystal_Knife_Package:
$type: gamedataGameplayLogicPackage_Record
stackable: false
UIData:
$type: gamedataGameplayLogicPackageUIData_Record
iconPath: icon knife
localizedDescription: LocKey#crystal_knife_iconic_desc
effects:
- Items.Crystal_Knife_Bleed_Effect
Items.Crystal_Knife_Bleed_Effect:
$type: gamedataEffector_Record $type: gamedataEffector_Record
effectorType: AddStatusEffect effectorType: AddStatusEffect
applicationTarget: Target applicationTarget: Target
statusEffect: Items.Crystal_ArmorPierce_StatEffect statusEffect: BaseStatusEffect.Bleeding
probability: 1.0
Items.Crystal_ArmorPierce_StatEffect:
$type: gamedataStatGroup_Record
stats:
- Items.Crystal_ArmorPierce_Stat
Items.Crystal_ArmorPierce_Stat:
$type: gamedataConstantStatModifier_Record
modifierType: Additive
statType: Armor
value: -9999.0 # Setzt Rüstung auf 0