diff --git a/1.6/1.6/Assemblies/WulaFallenEmpire.dll b/1.6/1.6/Assemblies/WulaFallenEmpire.dll
index 6b60045f..3c781f42 100644
Binary files a/1.6/1.6/Assemblies/WulaFallenEmpire.dll and b/1.6/1.6/Assemblies/WulaFallenEmpire.dll differ
diff --git a/1.6/1.6/Defs/HediffDefs/Hediffs_WULA_AuraExample.xml b/1.6/1.6/Defs/HediffDefs/Hediffs_WULA_AuraExample.xml
new file mode 100644
index 00000000..2d6436c6
--- /dev/null
+++ b/1.6/1.6/Defs/HediffDefs/Hediffs_WULA_AuraExample.xml
@@ -0,0 +1,30 @@
+
+
+
+
+ MyWulaAura
+
+ 这是一个如何使用HediffComp_GiveHediffsInRangeToRace组件的示例。
+ HediffWithComps
+
+
+
+ 10
+ PsychicSoothe
+
+
+
+ WulaSpecies
+ Human
+
+
+
+
+ true
+
+ true
+
+
+
+
+
\ No newline at end of file
diff --git a/MCP/vector_cache/knowledge_cache.json b/MCP/vector_cache/knowledge_cache.json
index 04456c69..e602858b 100644
--- a/MCP/vector_cache/knowledge_cache.json
+++ b/MCP/vector_cache/knowledge_cache.json
@@ -25871,5 +25871,1039 @@
],
"result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\Verse\\DamageDef.txt\n\npublic class DamageDef : Def\n{\n\tpublic Type workerClass = typeof(DamageWorker);\n\n\tprivate bool externalViolence;\n\n\tprivate bool externalViolenceForMechanoids;\n\n\tpublic bool hasForcefulImpact = true;\n\n\tpublic bool harmsHealth = true;\n\n\tpublic bool makesBlood = true;\n\n\tpublic bool canInterruptJobs = true;\n\n\tpublic bool isRanged;\n\n\tpublic bool makesAnimalsFlee;\n\n\tpublic bool execution;\n\n\tpublic RulePackDef combatLogRules;\n\n\tpublic float buildingDamageFactor = 1f;\n\n\tpublic float buildingDamageFactorPassable = 1f;\n\n\tpublic float buildingDamageFactorImpassable = 1f;\n\n\tpublic float plantDamageFactor = 1f;\n\n\tpublic float corpseDamageFactor = 1f;\n\n\tpublic bool causeStun;\n\n\tpublic int stunAdaptationTicks;\n\n\tpublic int? constantStunDurationTicks;\n\n\tpublic StatDef stunResistStat;\n\n\tpublic bool displayAdaptedTextMote = true;\n\n\t[MustTranslate]\n\tpublic string adaptedText;\n\n\tpublic bool canUseDeflectMetalEffect = true;\n\n\tpublic ImpactSoundTypeDef impactSoundType;\n\n\t[MustTranslate]\n\tpublic string deathMessage = \"{0} has been killed.\";\n\n\tpublic EffecterDef damageEffecter;\n\n\tpublic int defaultDamage = -1;\n\n\tpublic float defaultArmorPenetration = -1f;\n\n\tpublic float defaultStoppingPower;\n\n\tpublic List additionalHediffs;\n\n\tpublic List additionalHediffsThisPart;\n\n\tpublic bool applyAdditionalHediffsIfHuntingForFood = true;\n\n\tpublic DamageArmorCategoryDef armorCategory;\n\n\tpublic int minDamageToFragment = 99999;\n\n\tpublic FloatRange overkillPctToDestroyPart = new FloatRange(0f, 0.7f);\n\n\tpublic bool consideredHelpful;\n\n\tpublic SimpleCurve igniteChanceByTargetFlammability;\n\n\tpublic float igniteCellChance;\n\n\tpublic bool ignoreShields;\n\n\tpublic bool harmAllLayersUntilOutside;\n\n\tpublic HediffDef hediff;\n\n\tpublic HediffDef hediffSkin;\n\n\tpublic HediffDef hediffSolid;\n\n\tpublic bool isExplosive;\n\n\tpublic float explosionSnowMeltAmount = 1f;\n\n\tpublic bool explosionAffectOutsidePartsOnly = true;\n\n\tpublic ThingDef explosionCellMote;\n\n\tpublic FleckDef explosionCellFleck;\n\n\tpublic Color explosionColorCenter = Color.white;\n\n\tpublic Color explosionColorEdge = Color.white;\n\n\tpublic EffecterDef explosionInteriorEffecter;\n\n\tpublic ThingDef explosionInteriorMote;\n\n\tpublic FleckDef explosionInteriorFleck;\n\n\tpublic ThingDef explosionCenterMote;\n\n\tpublic FleckDef explosionCenterFleck;\n\n\tpublic EffecterDef explosionCenterEffecter;\n\n\tpublic EffecterDef explosionCellEffecter;\n\n\tpublic float explosionCellEffecterChance;\n\n\tpublic float explosionCellEffecterMaxRadius;\n\n\tpublic float explosionHeatEnergyPerCell;\n\n\tpublic float expolosionPropagationSpeed = 1f;\n\n\tpublic SoundDef soundExplosion;\n\n\tpublic float explosionInteriorCellCountMultiplier = 1f;\n\n\tpublic float explosionInteriorCellDistanceMultiplier = 0.7f;\n\n\tpublic float stabChanceOfForcedInternal;\n\n\tpublic SimpleCurve cutExtraTargetsCurve;\n\n\tpublic float cutCleaveBonus;\n\n\tpublic float bluntInnerHitChance;\n\n\tpublic FloatRange bluntInnerHitDamageFractionToConvert;\n\n\tpublic FloatRange bluntInnerHitDamageFractionToAdd;\n\n\tpublic float bluntStunDuration = 1f;\n\n\tpublic SimpleCurve bluntStunChancePerDamagePctOfCorePartToHeadCurve;\n\n\tpublic SimpleCurve bluntStunChancePerDamagePctOfCorePartToBodyCurve;\n\n\tpublic float scratchSplitPercentage = 0.5f;\n\n\tpublic bool scaleDamageToBuildingsBasedOnFlammability;\n\n\t[Unsaved(false)]\n\tprivate DamageWorker workerInt;\n\n\tpublic DamageWorker Worker\n\t{\n\t\tget\n\t\t{\n\t\t\tif (workerInt == null)\n\t\t\t{\n\t\t\t\tworkerInt = (DamageWorker)Activator.CreateInstance(workerClass);\n\t\t\t\tworkerInt.def = this;\n\t\t\t}\n\t\t\treturn workerInt;\n\t\t}\n\t}\n\n\tpublic bool ExternalViolenceFor(Thing thing)\n\t{\n\t\tif (externalViolence)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\tif (externalViolenceForMechanoids)\n\t\t{\n\t\t\tif (thing is Pawn pawn && pawn.RaceProps.IsMechanoid)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (thing is Building_Turret)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n}\n\n",
"timestamp": "2025-08-26 19:36:23,398"
+ },
+ "HediffCompProperties_GiveHediffsInRange": {
+ "keywords": [
+ "HediffCompProperties_GiveHediffsInRange"
+ ],
+ "question": "HediffCompProperties_GiveHediffsInRange",
+ "embedding": [
+ 0.03409209102392197,
+ 0.021932389587163925,
+ 0.022746780887246132,
+ 0.03249138966202736,
+ -0.04007365182042122,
+ -0.009821835905313492,
+ -0.002873185323551297,
+ -0.0019201372051611543,
+ 0.05902930349111557,
+ 0.08261855691671371,
+ -0.00041860397323034704,
+ -0.023378636687994003,
+ -0.03872569277882576,
+ -0.0031171515583992004,
+ 0.06318550556898117,
+ 0.012412440963089466,
+ 0.006311529781669378,
+ -0.1152503564953804,
+ -0.0018973202677443624,
+ -0.04507232457399368,
+ -0.034344833344221115,
+ 0.043780531734228134,
+ 0.00045677853631787,
+ 0.006806483026593924,
+ -0.0021711240988224745,
+ -0.0030522109009325504,
+ -0.003092579310759902,
+ 0.034035924822092056,
+ 0.019699836149811745,
+ 0.0014690629905089736,
+ -0.008487919345498085,
+ -0.05299157649278641,
+ -0.016582684591412544,
+ -0.023336512967944145,
+ -0.030553702265024185,
+ 0.033867429941892624,
+ -0.03939967229962349,
+ 0.014771366491913795,
+ 0.014104408212006092,
+ -0.039118848741054535,
+ -0.027647167444229126,
+ -0.024726593866944313,
+ -0.005223334766924381,
+ -0.0009705995325930417,
+ -0.031003020703792572,
+ 0.04001748561859131,
+ 0.022648492828011513,
+ -0.050492238253355026,
+ 0.010832803323864937,
+ 0.055940233170986176,
+ -0.011871853843331337,
+ -0.03246330842375755,
+ -0.038753774017095566,
+ 0.021876225247979164,
+ 0.0034260584507137537,
+ 0.002050018636509776,
+ -0.03799555078148842,
+ 0.023701583966612816,
+ -0.01074153557419777,
+ 0.011359349824488163,
+ -0.004226407967507839,
+ 0.034288667142391205,
+ -0.03816404566168785,
+ -0.052766915410757065,
+ 0.004893366247415543,
+ -0.008607270196080208,
+ -0.014855613932013512,
+ 0.019390929490327835,
+ 0.048245642334222794,
+ -0.024052614346146584,
+ 0.02321014180779457,
+ 0.004714340437203646,
+ 0.009555052034556866,
+ -0.0238841213285923,
+ -0.05133471265435219,
+ 0.05647379904985428,
+ -0.0230978112667799,
+ -0.03131192922592163,
+ -0.02600434422492981,
+ 0.0015427793841809034,
+ -0.030076298862695694,
+ -0.03706882894039154,
+ -0.042123667895793915,
+ -0.013612966053187847,
+ 0.054479945451021194,
+ 0.019966619089245796,
+ 0.013971016742289066,
+ -0.015290891751646996,
+ -0.010727494023740292,
+ 0.06981296092271805,
+ 0.03119959682226181,
+ -0.010867906734347343,
+ 0.0018832790665328503,
+ -0.03235097974538803,
+ 0.02756292000412941,
+ 0.02648174576461315,
+ -0.014743284322321415,
+ 0.012763471342623234,
+ 0.011640174314379692,
+ 0.01098023634403944,
+ -0.037658561021089554,
+ -0.04397711157798767,
+ -0.07829385995864868,
+ 0.1152503564953804,
+ -0.0197279192507267,
+ -0.040101733058691025,
+ -0.018211467191576958,
+ -0.007743734400719404,
+ -0.008761723525822163,
+ 0.004380861762911081,
+ -0.011569967493414879,
+ 0.0071504926308989525,
+ 0.03308112174272537,
+ 0.032996874302625656,
+ 0.0055884066969156265,
+ 0.023139934986829758,
+ 0.0007016223389655352,
+ -0.01258795615285635,
+ -0.0055708554573357105,
+ -0.015894664451479912,
+ 0.036928415298461914,
+ 0.00017496680084150285,
+ -0.034962646663188934,
+ -0.019390929490327835,
+ 0.02750675566494465,
+ 0.015698086470365524,
+ 0.005858700256794691,
+ 0.090369313955307,
+ -0.0020851215813308954,
+ 0.01178058609366417,
+ -0.00836154818534851,
+ -0.02263445220887661,
+ 0.02683277800679207,
+ -0.018394002690911293,
+ -0.0008047376177273691,
+ 0.057344354689121246,
+ 0.03959624841809273,
+ -0.007357601076364517,
+ -0.01889948546886444,
+ -0.017256662249565125,
+ -0.019952578470110893,
+ -0.02875642478466034,
+ 0.031227679923176765,
+ 0.0005792004521936178,
+ 0.0944693461060524,
+ -0.020809093490242958,
+ -0.013156626373529434,
+ 0.018829280510544777,
+ -0.03833254054188728,
+ 0.008017538115382195,
+ -0.04355587437748909,
+ 0.013739337213337421,
+ -0.03521538898348808,
+ 0.05891697108745575,
+ 0.017565570771694183,
+ -0.02330842986702919,
+ 0.024895088747143745,
+ -0.03383934870362282,
+ 0.0009627013350836933,
+ -0.01864674501121044,
+ -0.0176498182117939,
+ 0.005381298717111349,
+ -0.005283010192215443,
+ 0.009870979934930801,
+ 0.05473268777132034,
+ -0.05439569801092148,
+ 0.032519470900297165,
+ 0.017972765490412712,
+ 0.006616926286369562,
+ -0.01380954310297966,
+ -0.01774810627102852,
+ -0.022873152047395706,
+ -0.01801488921046257,
+ -0.027085518464446068,
+ -0.013325120322406292,
+ 0.0032066642306745052,
+ 0.0003490560338832438,
+ 0.04698193073272705,
+ 0.002817020285874605,
+ -0.018702909350395203,
+ 0.014939861372113228,
+ -0.0008385243127122521,
+ 0.007469930686056614,
+ -0.022185131907463074,
+ 0.05223334953188896,
+ -0.06155672296881676,
+ -0.005556813906878233,
+ 0.04858263209462166,
+ -0.004616051912307739,
+ 0.005591916851699352,
+ -0.02912149578332901,
+ 0.06419647485017776,
+ -0.03125576302409172,
+ 0.007427806966006756,
+ -0.008782785385847092,
+ -0.006778400391340256,
+ -0.010130742564797401,
+ 0.035271551460027695,
+ -0.023687543347477913,
+ 0.008473877795040607,
+ 0.040101733058691025,
+ -0.05585598573088646,
+ -0.018042972311377525,
+ 0.00030539659201167524,
+ 0.03982090950012207,
+ 0.008087744936347008,
+ -0.02752079628407955,
+ 0.03412017226219177,
+ -0.012405420653522015,
+ -0.0005827107816003263,
+ 0.009295289404690266,
+ -0.004735402297228575,
+ -0.01645631343126297,
+ -0.0529634915292263,
+ -0.002181655028834939,
+ -0.010039474815130234,
+ -0.02294335886836052,
+ 0.043892864137887955,
+ 0.04661685973405838,
+ 0.05327240005135536,
+ -0.03628252074122429,
+ 0.007624384015798569,
+ 0.013542759232223034,
+ 0.009618237614631653,
+ 0.03021671250462532,
+ -0.01807105354964733,
+ -0.00963227916508913,
+ -0.004672217182815075,
+ 0.03134001046419144,
+ -0.017453240230679512,
+ 0.008052641525864601,
+ 0.043527793139219284,
+ -0.1012653037905693,
+ 0.023168018087744713,
+ -0.0015849031042307615,
+ 0.021272452548146248,
+ 0.013739337213337421,
+ -0.05582790449261665,
+ 0.008558125235140324,
+ 0.01614740677177906,
+ 0.0032733601983636618,
+ 0.006136014591902494,
+ -0.003928032238036394,
+ 0.02839135378599167,
+ 0.0282930638641119,
+ -0.0282930638641119,
+ -0.027239972725510597,
+ -0.011913977563381195,
+ 0.01755152828991413,
+ 0.0023413740564137697,
+ 0.00013415950525086373,
+ 0.017467280849814415,
+ 0.0179025586694479,
+ -0.010678349994122982,
+ 0.03591744974255562,
+ -0.02340671792626381,
+ 0.03260371834039688,
+ -0.006588844116777182,
+ -0.021623482927680016,
+ -0.013914852403104305,
+ -0.021890265867114067,
+ -0.004770505707710981,
+ -0.032210566103458405,
+ 0.029346156865358353,
+ 0.005339174997061491,
+ 0.016695015132427216,
+ -0.0017823578091338277,
+ -0.005342685151845217,
+ -0.03442908078432083,
+ -0.04001748561859131,
+ -0.008186032995581627,
+ 0.044314101338386536,
+ 0.02781566232442856,
+ -0.06666772812604904,
+ -0.02429131604731083,
+ 0.011696338653564453,
+ -0.026102634146809578,
+ -0.023856038227677345,
+ -0.05158745497465134,
+ -0.04504424333572388,
+ 0.021567318588495255,
+ 0.002953922376036644,
+ -0.0026625669561326504,
+ -0.015852540731430054,
+ -0.020373813807964325,
+ 0.04184284433722496,
+ -0.014743284322321415,
+ 0.031901657581329346,
+ -0.011822709813714027,
+ 0.019812164828181267,
+ -0.010699411854147911,
+ -0.02169368974864483,
+ -0.032772213220596313,
+ 0.02990780584514141,
+ 0.008312404155731201,
+ -0.0009556807344779372,
+ 0.012524770572781563,
+ -0.003970155958086252,
+ -0.009814814664423466,
+ -0.004475639667361975,
+ -0.014308006502687931,
+ 0.017368992790579796,
+ -0.00838261004537344,
+ 0.02906533144414425,
+ 0.027689291164278984,
+ 0.007378662936389446,
+ -0.011541885323822498,
+ -0.13120119273662567,
+ 0.0017814801540225744,
+ -0.12682032585144043,
+ -0.026818735525012016,
+ 0.007680548820644617,
+ -0.05523817241191864,
+ -0.02871430106461048,
+ -0.04344354569911957,
+ 0.03187357634305954,
+ -0.02372966706752777,
+ -0.004802098497748375,
+ -0.019194351509213448,
+ 0.04159010201692581,
+ -0.02684681862592697,
+ 0.024122821167111397,
+ -0.08037196099758148,
+ 0.007764796260744333,
+ -0.016582684591412544,
+ -0.030020134523510933,
+ -0.001191748771816492,
+ 0.03706882894039154,
+ -0.027857786044478416,
+ -0.015080273151397705,
+ -0.04386477917432785,
+ 0.0052198246121406555,
+ -0.00380166107788682,
+ 0.010278175584971905,
+ -0.007139961700886488,
+ -0.0016287819016724825,
+ 0.025274202227592468,
+ 0.01572616957128048,
+ -0.02065463922917843,
+ -0.021637525409460068,
+ -0.03431674838066101,
+ 0.0038472951855510473,
+ -0.022311503067612648,
+ -0.02502145990729332,
+ 0.022816987708210945,
+ 0.004819649737328291,
+ 0.023069730028510094,
+ 0.05394637957215309,
+ 0.05829915776848793,
+ 0.009849918074905872,
+ -0.01307939924299717,
+ 0.0024817860685288906,
+ -0.03925925865769386,
+ 0.024277275428175926,
+ 0.009435702115297318,
+ 0.03136809170246124,
+ -0.03369893506169319,
+ 0.013978037983179092,
+ 0.0030820483807474375,
+ 0.006711704656481743,
+ -0.03445716202259064,
+ -0.00419130502268672,
+ -0.002202716888859868,
+ 0.057962168008089066,
+ -0.007729693315923214,
+ 0.00968142319470644,
+ 0.037096910178661346,
+ 0.040719546377658844,
+ -0.055996399372816086,
+ 0.058692313730716705,
+ 0.039483919739723206,
+ -0.07694590091705322,
+ 0.012321173213422298,
+ 0.012672203592956066,
+ -0.022704657167196274,
+ 0.03021671250462532,
+ 0.044875748455524445,
+ 0.018759073689579964,
+ 0.019334763288497925,
+ 0.031480420380830765,
+ 0.0352996364235878,
+ 0.03816404566168785,
+ -0.005799025297164917,
+ -0.07531712204217911,
+ -0.034709904342889786,
+ 0.03920309618115425,
+ -0.009660361334681511,
+ 0.020542308688163757,
+ 0.031031103804707527,
+ 0.013156626373529434,
+ -0.002162348246201873,
+ 0.039848990738391876,
+ -0.019278598949313164,
+ -0.019868331030011177,
+ 0.03482223302125931,
+ 0.017944682389497757,
+ 0.009288269095122814,
+ 0.023645419627428055,
+ 0.11328458786010742,
+ 0.010959174484014511,
+ -0.00300482171587646,
+ -0.024431727826595306,
+ -0.039118848741054535,
+ -0.01093109231442213,
+ -0.021005669608712196,
+ -0.0004980246303603053,
+ -0.007757775951176882,
+ -0.009758650325238705,
+ -0.030188629403710365,
+ -0.037714723497629166,
+ -0.0030153526458889246,
+ -0.02103375270962715,
+ 0.02045806124806404,
+ 0.026818735525012016,
+ -0.023350553587079048,
+ -0.01988237164914608,
+ -0.00498463399708271,
+ 0.018702909350395203,
+ 0.055996399372816086,
+ -0.03855719789862633,
+ -0.012433502823114395,
+ 0.023785831406712532,
+ -0.04661685973405838,
+ 0.006480024661868811,
+ 0.008459837175905704,
+ -0.003294422058388591,
+ -0.018871404230594635,
+ 0.011099587194621563,
+ -0.04209558665752411,
+ 0.023434801027178764,
+ -0.0059148650616407394,
+ -0.029963970184326172,
+ -0.0747554749250412,
+ 0.012616039253771305,
+ 0.0010337850544601679,
+ -0.020050866529345512,
+ 0.01786043494939804,
+ 0.007069755811244249,
+ -0.012096513994038105,
+ -0.02392624318599701,
+ -0.012314152903854847,
+ 0.00908467173576355,
+ 0.011373390443623066,
+ -0.02694510668516159,
+ -0.06616224348545074,
+ -0.04891962185502052,
+ 0.0015199624467641115,
+ -0.0326879657804966,
+ 0.01603507623076439,
+ 0.04995867237448692,
+ -0.05880464240908623,
+ -0.001683191629126668,
+ -0.03358660638332367,
+ 0.03951200097799301,
+ -0.039062682539224625,
+ 0.018801197409629822,
+ -0.04128119722008705,
+ -0.012321173213422298,
+ 0.00048135066754184663,
+ -0.021300535649061203,
+ 0.014967943541705608,
+ -0.0220587607473135,
+ -0.005135577172040939,
+ 0.05768134444952011,
+ 0.016624808311462402,
+ 0.014083346351981163,
+ -0.0010952154407277703,
+ -0.029261909425258636,
+ -0.03976474329829216,
+ -0.04543739929795265,
+ -0.016175489872694016,
+ 0.02290123514831066,
+ -0.03647909685969353,
+ -0.00973056722432375,
+ -0.00786308478564024,
+ -0.03333386406302452,
+ 0.004384371917694807,
+ 0.047571662813425064,
+ 0.011380411684513092,
+ -0.004917938262224197,
+ 0.010425607673823833,
+ 0.04686960205435753,
+ -0.02688894234597683,
+ 0.014132491312921047,
+ -0.11143114417791367,
+ -0.08143909275531769,
+ -0.007954352535307407,
+ -0.016526520252227783,
+ -0.0223255455493927,
+ -0.028531765565276146,
+ -0.020472103729844093,
+ -0.0005010961322113872,
+ 0.01220182329416275,
+ 0.04647644981741905,
+ 0.003689331468194723,
+ -0.012159699574112892,
+ 0.012398400343954563,
+ -0.019868331030011177,
+ 0.0023466392885893583,
+ -0.045858632773160934,
+ -0.021665606647729874,
+ 0.03316536918282509,
+ 0.0042439596727490425,
+ -0.022311503067612648,
+ 0.009821835905313492,
+ -0.004289593547582626,
+ 0.032884545624256134,
+ 0.03409209102392197,
+ -0.02912149578332901,
+ -0.0225782860070467,
+ -0.020121073350310326,
+ -0.04338737949728966,
+ 0.019559424370527267,
+ 0.01905393972992897,
+ -0.0026327292434871197,
+ 0.026902982965111732,
+ 0.03645101562142372,
+ -0.002608157228678465,
+ 0.0017533977515995502,
+ 0.02865813672542572,
+ 0.009204021655023098,
+ 0.019320722669363022,
+ 0.03010438196361065,
+ -0.029655063524842262,
+ -0.0032716048881411552,
+ -0.004637113772332668,
+ 0.029767392203211784,
+ -0.0033418110106140375,
+ 0.006055277306586504,
+ -0.039540085941553116,
+ -0.014560747891664505,
+ -0.048975784331560135,
+ 0.015866581350564957,
+ 0.061332061886787415,
+ 0.07767604291439056,
+ -0.04779632389545441,
+ 0.011155751533806324,
+ 0.016779260709881783,
+ 0.012791554443538189,
+ 0.015894664451479912,
+ 0.04563397541642189,
+ 0.0539744608104229,
+ -0.006809993181377649,
+ 0.048414137214422226,
+ 0.042123667895793915,
+ 0.04333121329545975,
+ 0.05175594985485077,
+ -0.04599904641509056,
+ -0.006353653501719236,
+ 0.007743734400719404,
+ -0.0254426971077919,
+ 0.014546707272529602,
+ 0.0021219798363745213,
+ -0.0014804714592173696,
+ 0.038023632019758224,
+ -0.03521538898348808,
+ 0.03344619274139404,
+ 0.08278705179691315,
+ 0.03544004634022713,
+ -0.015599798411130905,
+ 0.02165156602859497,
+ -0.030132465064525604,
+ -0.0179025586694479,
+ -0.05040799081325531,
+ -0.02061251550912857,
+ 0.033558521419763565,
+ -0.07239654660224915,
+ 0.016989879310131073,
+ 3.1483054044656456e-05,
+ -0.013865707442164421,
+ -0.015964871272444725,
+ 0.020064907148480415,
+ -0.012321173213422298,
+ 0.01774810627102852,
+ 0.01578233391046524,
+ -0.04240449517965317,
+ 0.009014464914798737,
+ -0.006469493731856346,
+ 0.1032872349023819,
+ -0.012286069802939892,
+ -0.011878875084221363,
+ -0.018913527950644493,
+ 0.023490965366363525,
+ 0.0024940723087638617,
+ 0.02771737426519394,
+ 0.004433515947312117,
+ -0.010608144104480743,
+ -0.021328618749976158,
+ 0.002853878540918231,
+ 0.019559424370527267,
+ 0.07520478963851929,
+ 0.015080273151397705,
+ -0.01593678817152977,
+ -0.0037595373578369617,
+ 0.0048301806673407555,
+ 0.059871774166822433,
+ 0.00013624374696519226,
+ 0.05383405089378357,
+ 0.025681396946310997,
+ 0.03176124766469002,
+ 0.002743304008617997,
+ -0.034962646663188934,
+ -0.023182058706879616,
+ -0.003668269608169794,
+ 0.05268266797065735,
+ 0.010727494023740292,
+ -0.018309755250811577,
+ -0.007638425566256046,
+ 0.02419302798807621,
+ 0.006711704656481743,
+ -0.0007169799646362662,
+ 0.03903460130095482,
+ 0.0015612085117027164,
+ 0.015361097641289234,
+ 0.018309755250811577,
+ -0.0015620860503986478,
+ -0.008438775315880775,
+ 0.011303184553980827,
+ -0.06268002092838287,
+ -0.027324220165610313,
+ -0.007996476255357265,
+ -0.0018692378653213382,
+ -0.005026757717132568,
+ -0.05647379904985428,
+ 0.021735813468694687,
+ -0.007589281070977449,
+ -0.017776187509298325,
+ -0.03799555078148842,
+ 0.01620357111096382,
+ -0.002694159746170044,
+ -0.017972765490412712,
+ 0.05596831440925598,
+ -0.026917025446891785,
+ 0.03240714222192764,
+ 0.016442272812128067,
+ -0.03162083402276039,
+ -0.021763896569609642,
+ -0.031592752784490585,
+ -0.019587505608797073,
+ -0.009232103824615479,
+ 0.03077836148440838,
+ 0.02502145990729332,
+ -0.03611402586102486,
+ 0.020682722330093384,
+ 0.0171302929520607,
+ -0.025302283465862274,
+ -0.02325226552784443,
+ -0.03774280846118927,
+ -0.052092935889959335,
+ -0.013816563412547112,
+ 0.017453240230679512,
+ -0.013198750093579292,
+ -0.025555025786161423,
+ 0.03920309618115425,
+ -0.04698193073272705,
+ 0.02548481896519661,
+ -0.005356726702302694,
+ 0.012573915533721447,
+ -0.004833690822124481,
+ -0.019390929490327835,
+ -0.02030360884964466,
+ 0.04821756109595299,
+ 0.030497536063194275,
+ 0.0244036465883255,
+ 0.02750675566494465,
+ -0.014673078432679176,
+ 0.018042972311377525,
+ -0.012405420653522015,
+ 0.056361470371484756,
+ -0.006641498301178217,
+ 0.005946457851678133,
+ 0.002028956776484847,
+ 0.01279857475310564,
+ -0.02979547530412674,
+ 0.012609018012881279,
+ 0.031227679923176765,
+ -0.024052614346146584,
+ 0.01041156705468893,
+ 0.04580247029662132,
+ -0.0021763895638287067,
+ -0.053918298333883286,
+ -0.01050985511392355,
+ -0.02211492694914341,
+ -0.004057913552969694,
+ -0.037827055901288986,
+ -0.00841069221496582,
+ 0.01331810001283884,
+ 0.01837996020913124,
+ -0.02683277800679207,
+ 0.005960499402135611,
+ 0.021567318588495255,
+ -0.05582790449261665,
+ 0.0019394439877942204,
+ -0.023476924747228622,
+ -0.04198325797915459,
+ -0.0013418144080787897,
+ -0.025358449667692184,
+ -0.016807343810796738,
+ 0.011317226104438305,
+ 0.04299422353506088,
+ 0.058579981327056885,
+ -0.008600248955190182,
+ -0.005079412367194891,
+ -0.031592752784490585,
+ 0.02066867984831333,
+ -0.04111270233988762,
+ 0.009590155445039272,
+ 0.003906970378011465,
+ -0.020963545888662338,
+ -0.05784983932971954,
+ 0.008157950825989246,
+ 0.041870925575494766,
+ 0.008129867725074291,
+ 0.0009863958694040775,
+ -0.015922747552394867,
+ 0.0197279192507267,
+ 0.007038163021206856,
+ -0.04712234437465668,
+ -0.05459227412939072,
+ 0.008466857485473156,
+ 0.0026906493585556746,
+ -0.022859111428260803,
+ -0.018773114308714867,
+ 0.019545381888747215,
+ 0.018141260370612144,
+ 0.045493561774492264,
+ -0.022451914846897125,
+ -0.012398400343954563,
+ 0.009070630185306072,
+ 0.049284692853689194,
+ -0.016442272812128067,
+ -0.00755417812615633,
+ -0.012075452134013176,
+ 0.0524299256503582,
+ 0.038809940218925476,
+ 0.011829730123281479,
+ 0.010594102554023266,
+ 0.011541885323822498,
+ -0.007315477356314659,
+ -0.03417633846402168,
+ 0.05021141469478607,
+ -0.0029890253208577633,
+ 0.05726010724902153,
+ 0.020472103729844093,
+ 0.09250357747077942,
+ 0.03925925865769386,
+ 0.005212803836911917,
+ 0.02839135378599167,
+ 0.10946537554264069,
+ 0.04526890441775322,
+ 0.016470354050397873,
+ -0.04490382969379425,
+ 0.03336194530129433,
+ -0.022227255627512932,
+ 0.005367257632315159,
+ 0.03928734362125397,
+ 0.041084617376327515,
+ 0.03291262686252594,
+ -0.03468181937932968,
+ 0.01486965548247099,
+ -0.07750754803419113,
+ 0.00947080459445715,
+ 0.00802455935627222,
+ 0.013556800782680511,
+ -0.008944259025156498,
+ 0.035271551460027695,
+ -0.007708631455898285,
+ -0.0015524327754974365,
+ -0.024473851546645164,
+ -0.010081598535180092,
+ -0.03718115761876106,
+ -0.03993323817849159,
+ -0.029823558405041695,
+ 0.008888093754649162,
+ 0.04232024773955345,
+ 0.025569066405296326,
+ -0.027843745425343513,
+ -0.011801647953689098,
+ 0.006536189466714859,
+ -0.05237376317381859,
+ 0.03521538898348808,
+ -0.044257935136556625,
+ 0.027703333646059036,
+ -0.02750675566494465,
+ 0.010425607673823833,
+ 0.033053040504455566,
+ 0.01116277277469635,
+ 0.003706882940605283,
+ 0.02013511396944523,
+ 0.013963996432721615,
+ 0.001455899327993393,
+ 0.019039899110794067,
+ 0.05467652156949043,
+ 0.027380384504795074,
+ 0.011225957423448563,
+ 0.011127669364213943,
+ 0.0019078511977568269,
+ 0.0991872027516365,
+ 0.008396651595830917,
+ 0.0036507179029285908,
+ -0.029823558405041695,
+ -0.053862132132053375,
+ -0.045858632773160934,
+ -0.05942245572805405,
+ 0.015740210190415382,
+ 0.004752954002469778,
+ -0.02719784900546074,
+ -0.06526360660791397,
+ -0.017060086131095886,
+ -0.0389503538608551,
+ -0.017944682389497757,
+ 0.020752927288413048,
+ 0.012082472443580627,
+ 0.024628305807709694,
+ 0.04891962185502052,
+ 0.027801621705293655,
+ -0.05431145057082176,
+ -0.003987707197666168,
+ 0.04007365182042122,
+ -0.011415514163672924,
+ 0.005967519711703062,
+ 0.01541726291179657,
+ -2.7479112759465352e-05,
+ -0.005686695221811533,
+ 0.04552164673805237,
+ -0.03150850534439087,
+ -0.015304933302104473,
+ 0.02502145990729332,
+ -0.03364276885986328,
+ -0.02761908620595932,
+ -0.019194351509213448,
+ -0.033614687621593475,
+ 0.010046495124697685,
+ 0.04366820305585861,
+ 0.041140783578157425,
+ 0.008052641525864601,
+ 0.006430880166590214,
+ -0.002007894916459918,
+ -0.0016673952341079712,
+ -0.041449692100286484,
+ -0.02315397746860981,
+ 0.01728474535048008,
+ 0.018604621291160583,
+ -0.025779685005545616,
+ 0.02548481896519661,
+ -0.013788481242954731,
+ -0.02563927322626114,
+ 0.015276851132512093,
+ -0.008698537945747375,
+ -0.026411540806293488,
+ -0.08817888051271439,
+ 0.03602977842092514,
+ 0.0008464224520139396,
+ 0.00012867464101873338,
+ 0.04476341977715492,
+ 0.0308906901627779,
+ 0.00550415925681591,
+ 0.08239389955997467,
+ -0.04240449517965317,
+ -0.029346156865358353,
+ 0.0075401365756988525,
+ -0.007101348601281643,
+ 0.04577438533306122,
+ 0.01126808114349842,
+ -0.012651141732931137,
+ 0.03608594462275505,
+ 0.0228450708091259,
+ -0.001606842502951622,
+ -0.004054402932524681,
+ -0.026902982965111732,
+ 0.06526360660791397,
+ 0.06531976908445358,
+ 0.017972765490412712,
+ 0.011485720053315163,
+ 0.04543739929795265,
+ -0.051475122570991516,
+ -0.002616932848468423,
+ -0.02304164692759514,
+ -0.044117521494627,
+ 0.01832379586994648,
+ -0.018085096031427383,
+ -0.008207094855606556,
+ 0.0017814801540225744,
+ 0.01822550781071186,
+ 0.04987442493438721,
+ 0.018871404230594635,
+ 0.0023027604911476374,
+ -0.016751179471611977,
+ -0.04220791533589363,
+ 0.04288189485669136,
+ 0.04883537441492081,
+ 0.001224219100549817,
+ 0.01620357111096382,
+ 0.03145233914256096,
+ 0.010376463644206524,
+ 0.02055635116994381,
+ -0.010467731393873692,
+ 0.019489217549562454,
+ -0.026664283126592636,
+ -0.01461691316217184,
+ 0.043218884617090225,
+ -0.01012372225522995,
+ 0.03774280846118927,
+ -0.004847732372581959,
+ -0.07700207084417343,
+ -0.011359349824488163,
+ 0.02948656864464283,
+ -0.023715626448392868,
+ -0.03552429378032684,
+ 0.04397711157798767,
+ -0.03878185898065567,
+ -0.011752503924071789,
+ 0.0042650215327739716,
+ 0.01614740677177906,
+ -0.0030802933033555746,
+ -0.022199174389243126,
+ 0.01656864397227764,
+ 0.07104858756065369,
+ 0.03847295045852661,
+ 0.01041156705468893,
+ 0.004194815177470446,
+ -0.0058095562271773815,
+ -0.006209731101989746,
+ 0.014202697202563286,
+ 0.023856038227677345,
+ 0.02196047268807888,
+ -0.0225782860070467,
+ -0.02051422744989395,
+ -0.027942033484578133,
+ 0.014771366491913795,
+ 0.02528824284672737,
+ 0.019039899110794067,
+ 0.016835426911711693,
+ 0.015431304462254047,
+ 0.009597175754606724,
+ 0.009576113894581795,
+ -0.002260637003928423,
+ -0.0508573092520237,
+ -0.044875748455524445,
+ -0.04552164673805237,
+ -0.007357601076364517,
+ -0.0643649697303772,
+ 0.006097401026636362,
+ 0.033249616622924805,
+ -0.005999112501740456,
+ -0.022283421829342842,
+ 0.00547607708722353,
+ -0.036928415298461914,
+ -0.004384371917694807,
+ 0.017663858830928802,
+ -0.04335929825901985,
+ -0.0002722680801525712,
+ 0.0027204870712012053,
+ 0.025063583627343178,
+ 0.00014995587116573006,
+ 0.020584432408213615,
+ 0.02138478308916092,
+ 0.048357971012592316,
+ 0.07975414395332336,
+ -0.023322472348809242,
+ 0.06633073836565018,
+ 0.026285169646143913,
+ -0.009295289404690266,
+ 0.01090301014482975,
+ 0.023715626448392868,
+ 0.01909606344997883,
+ 0.025765644386410713,
+ -0.029570816084742546,
+ 0.004549356177449226,
+ -0.025302283465862274,
+ -0.05852381885051727,
+ 0.001988588133826852,
+ 0.005714777857065201,
+ -0.05563132464885712,
+ 0.01038348488509655,
+ -0.018365919589996338,
+ -0.031003020703792572,
+ -0.037349652498960495,
+ 0.011394452303647995,
+ 0.022044720128178596,
+ -0.011148731224238873,
+ 0.002362435683608055,
+ -0.02238170988857746,
+ 0.015220685862004757,
+ -0.0014014896005392075,
+ 0.005974540486931801,
+ 0.02923382632434368,
+ -0.0048126294277608395,
+ -0.0023168018087744713,
+ 0.014504583552479744,
+ 0.028419435024261475,
+ 0.0011601560981944203,
+ -0.00010371856478741392,
+ 0.027956075966358185,
+ 0.0002832378086168319,
+ -0.018969692289829254,
+ -0.03341811150312424,
+ -0.012889842502772808,
+ 0.01926455833017826,
+ 0.02767525054514408,
+ 0.009182959794998169,
+ -0.01277049258351326,
+ 0.049705930054187775,
+ -0.019194351509213448,
+ 0.0066730910912156105,
+ -0.0015375139191746712,
+ -0.06941980868577957,
+ -0.0007700733258388937,
+ -0.04069146513938904,
+ 0.00484071159735322,
+ 0.01691967435181141,
+ -0.02700127102434635,
+ 0.056361470371484756,
+ 0.003857826115563512,
+ 0.039062682539224625,
+ 0.004152691923081875,
+ -0.030497536063194275,
+ 0.0030820483807474375,
+ 0.06925131380558014,
+ -0.025737561285495758,
+ -0.03125576302409172,
+ 0.047375086694955826,
+ -0.022353626787662506,
+ -0.03993323817849159
+ ],
+ "result": "--- 结果 1 (相似度: 1.000) ---\n文件路径: C:\\Steam\\steamapps\\common\\RimWorld\\Data\\dll1.6\\Verse\\HediffCompProperties_GiveHediffsInRange.txt\n\npublic class HediffCompProperties_GiveHediffsInRange : HediffCompProperties\n{\n\tpublic float range;\n\n\tpublic TargetingParameters targetingParameters;\n\n\tpublic HediffDef hediff;\n\n\tpublic ThingDef mote;\n\n\tpublic bool hideMoteWhenNotDrafted;\n\n\tpublic float initialSeverity = 1f;\n\n\tpublic bool onlyPawnsInSameFaction = true;\n\n\tpublic HediffCompProperties_GiveHediffsInRange()\n\t{\n\t\tcompClass = typeof(HediffComp_GiveHediffsInRange);\n\t}\n}\n\n",
+ "timestamp": "2025-08-26 19:53:26,325"
}
}
\ No newline at end of file
diff --git a/Source/WulaFallenEmpire/HediffCompProperties_GiveHediffsInRangeToRace.cs b/Source/WulaFallenEmpire/HediffCompProperties_GiveHediffsInRangeToRace.cs
new file mode 100644
index 00000000..01f20a09
--- /dev/null
+++ b/Source/WulaFallenEmpire/HediffCompProperties_GiveHediffsInRangeToRace.cs
@@ -0,0 +1,23 @@
+using RimWorld;
+using System.Collections.Generic;
+using Verse;
+
+namespace WulaFallenEmpire
+{
+ public class HediffCompProperties_GiveHediffsInRangeToRace : HediffCompProperties
+ {
+ public float range;
+ public TargetingParameters targetingParameters;
+ public HediffDef hediff;
+ public ThingDef mote;
+ public bool hideMoteWhenNotDrafted;
+ public float initialSeverity = 1f;
+ public bool onlyPawnsInSameFaction = true;
+ public List targetRaces; // 新增:可配置的目标种族列表
+
+ public HediffCompProperties_GiveHediffsInRangeToRace()
+ {
+ compClass = typeof(HediffComp_GiveHediffsInRangeToRace);
+ }
+ }
+}
\ No newline at end of file
diff --git a/Source/WulaFallenEmpire/HediffComp_GiveHediffsInRangeToRace.cs b/Source/WulaFallenEmpire/HediffComp_GiveHediffsInRangeToRace.cs
new file mode 100644
index 00000000..54190a79
--- /dev/null
+++ b/Source/WulaFallenEmpire/HediffComp_GiveHediffsInRangeToRace.cs
@@ -0,0 +1,63 @@
+using RimWorld;
+using System.Collections.Generic;
+using UnityEngine;
+using Verse;
+
+namespace WulaFallenEmpire
+{
+ public class HediffComp_GiveHediffsInRangeToRace : HediffComp
+ {
+ private Mote mote;
+
+ public HediffCompProperties_GiveHediffsInRangeToRace Props => (HediffCompProperties_GiveHediffsInRangeToRace)props;
+
+ public override void CompPostTick(ref float severityAdjustment)
+ {
+ if (!parent.pawn.Awake() || parent.pawn.health == null || parent.pawn.health.InPainShock || !parent.pawn.Spawned)
+ {
+ return;
+ }
+ if (!Props.hideMoteWhenNotDrafted || parent.pawn.Drafted)
+ {
+ if (Props.mote != null && (mote == null || mote.Destroyed))
+ {
+ mote = MoteMaker.MakeAttachedOverlay(parent.pawn, Props.mote, Vector3.zero);
+ }
+ if (mote != null)
+ {
+ mote.Maintain();
+ }
+ }
+ IReadOnlyList pawns = ((!Props.onlyPawnsInSameFaction || parent.pawn.Faction == null) ? parent.pawn.Map.mapPawns.AllPawnsSpawned : parent.pawn.Map.mapPawns.SpawnedPawnsInFaction(parent.pawn.Faction));
+ foreach (Pawn pawn in pawns)
+ {
+ // 修改点:检查种族是否在我们的目标列表中,如果列表为空或null则不进行任何操作
+ if ((Props.targetRaces.NullOrEmpty() || !Props.targetRaces.Contains(pawn.def)) || pawn.Dead || pawn.health == null || pawn == parent.pawn || !(pawn.Position.DistanceTo(parent.pawn.Position) <= Props.range) || !Props.targetingParameters.CanTarget(pawn))
+ {
+ continue;
+ }
+ Hediff hediff = pawn.health.hediffSet.GetFirstHediffOfDef(Props.hediff);
+ if (hediff == null)
+ {
+ hediff = pawn.health.AddHediff(Props.hediff, pawn.health.hediffSet.GetBrain());
+ hediff.Severity = Props.initialSeverity;
+ HediffComp_Link hediffComp_Link = hediff.TryGetComp();
+ if (hediffComp_Link != null)
+ {
+ hediffComp_Link.drawConnection = true;
+ hediffComp_Link.other = parent.pawn;
+ }
+ }
+ HediffComp_Disappears hediffComp_Disappears = hediff.TryGetComp();
+ if (hediffComp_Disappears == null)
+ {
+ Log.Error("HediffComp_GiveHediffsInRangeToRace has a hediff in props which does not have a HediffComp_Disappears");
+ }
+ else
+ {
+ hediffComp_Disappears.ticksToDisappear = 5;
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/Source/WulaFallenEmpire/WulaFallenEmpire.csproj b/Source/WulaFallenEmpire/WulaFallenEmpire.csproj
index 77647a51..21b7957f 100644
--- a/Source/WulaFallenEmpire/WulaFallenEmpire.csproj
+++ b/Source/WulaFallenEmpire/WulaFallenEmpire.csproj
@@ -185,6 +185,8 @@
+
+