From a0819cd3389d22b2dbb068e91e63ab6124544ce0 Mon Sep 17 00:00:00 2001 From: arch_agent Date: Tue, 21 Jul 2026 16:59:43 +0200 Subject: [PATCH] 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 --- r6/tweaks/crystal_blades/crystal_blades.yaml | 213 +++++++++---------- 1 file changed, 105 insertions(+), 108 deletions(-) diff --git a/r6/tweaks/crystal_blades/crystal_blades.yaml b/r6/tweaks/crystal_blades/crystal_blades.yaml index 47fadb8..dd36d8a 100644 --- a/r6/tweaks/crystal_blades/crystal_blades.yaml +++ b/r6/tweaks/crystal_blades/crystal_blades.yaml @@ -1,8 +1,6 @@ # Crystal Blades — Kristallklingen -# TweakXL Definitionen für zwei neue Waffen: -# 1. "Kristallschneider" — Katana mit monomolekularer Klinge -# 2. "Phantom Splitter" — Wurfdolch mit monomolekularer Klinge -# Beide ignorieren Rüstung und verursachen 100% Blutung +# Korrekte TweakXL Struktur für CP2077 2.31 +# Eine Iconic Waffe = Base Weapon + Hidden Mod (GameplayLogicPackage) # ============================================================ # WAFFE 1: Kristallschneider (Katana) @@ -13,39 +11,63 @@ Items.Preset_Crystal_Katana: displayName: LocKey#crystal_katana_name localizedDescription: LocKey#crystal_katana_desc 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 iconicDescription: LocKey#crystal_katana_iconic_desc - # Slots - slots: - - Items.IconicWeaponModSlot - - # Werte - mass: 2.5 - sellPrice: 5000 - buyPrice: 25000 - - # Crit - critChance: 25.0 - critDamageMultiplier: 2.0 + # Hidden Iconic Mod (das ist der Schlüssel!) + mods: + - Items.Crystal_Katana_Mod + +# Das Hidden Mod — enthält alle Stat-Veränderungen +Items.Crystal_Katana_Mod: + $base: Items.IconicWeaponModAbilityBase + 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 + +# Gameplay Logic Package — Iconic Effekte +Items.Crystal_Katana_Package: + $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) @@ -56,86 +78,61 @@ Items.Preset_Crystal_ThrowingKnife: displayName: LocKey#crystal_knife_name localizedDescription: LocKey#crystal_knife_desc 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 iconicDescription: LocKey#crystal_knife_iconic_desc - # Slots - slots: - - Items.IconicWeaponModSlot - - # Werte - mass: 0.5 - sellPrice: 3000 - buyPrice: 15000 - - # Crit — hoher Crit für Wurfdolch - critChance: 40.0 - critDamageMultiplier: 3.0 + mods: + - Items.Crystal_Knife_Mod -# ============================================================ -# Status Effects — 100% Bleed -# ============================================================ +Items.Crystal_Knife_Mod: + $base: Items.IconicWeaponModAbilityBase + 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: 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 -# Custom Status Effect: Garantierte Blutung bei jedem Treffer -Attacks.GuaranteedBleedingEffect: - $type: gamedataAttack_Record - attackType: AttackType.Melee - statusEffects: - - Attacks.GuaranteedBleedingEntry +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 -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 - statType: StatusEffectDuration - value: 9999.0 # permanent while equipped - packages: - - Items.Crystal_ArmorPierce_Package - -Items.Crystal_ArmorPierce_Package: +Items.Crystal_Knife_Bleed_Effect: $type: gamedataEffector_Record effectorType: AddStatusEffect applicationTarget: Target - statusEffect: Items.Crystal_ArmorPierce_StatEffect - -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 \ No newline at end of file + statusEffect: BaseStatusEffect.Bleeding + probability: 1.0 \ No newline at end of file