This commit is contained in:
2025-08-15 11:58:55 +08:00
4 changed files with 78 additions and 2 deletions

1
.gitignore vendored
View File

@@ -34,4 +34,3 @@ Source/MCP/pid.txt
*.log
MCP/vector_cache/*.txt
MCP/mcpserver.log
Source/ai_studio_code.txt

View File

@@ -5,7 +5,7 @@
<defName>WULA_Fleshtype</defName>
<corpseCategory>CorpsesMechanoid</corpseCategory>
<damageEffecter>Damage_HitMechanoid</damageEffecter>
<isOrganic>false</isOrganic>
<isOrganic>true</isOrganic>
<genericWounds>
<li>
<texture>Things/Pawn/Wounds/WoundMechA</texture>
@@ -21,6 +21,77 @@
<li>
<texture>Wula/Things/WulaSpecies/Wounds/WULA_Species_Wound_None</texture>
</li>
<!-- <li>
<texture>Things/Pawn/Wounds/BandagedB</texture>
</li>
<li>
<texture>Things/Pawn/Wounds/BandagedC</texture>
</li> -->
</bandagedWounds>
<!-- <hediffWounds>
<li MayRequire="Ludeon.RimWorld.Ideology">
<hediff>Scarification</hediff>
<wounds>
<li>
<texture>Things/Pawn/Wounds/ScarificationA</texture>
<tintWithSkinColor>true</tintWithSkinColor>
<displayOverApparel>false</displayOverApparel>
<displayPermanent>false</displayPermanent>
<drawOffsetSouth>(0, 0.001, -0.24)</drawOffsetSouth>
<drawOffsetEastWest>(-0.03, 0.001, -0.24)</drawOffsetEastWest>
</li>
<li>
<texture>Things/Pawn/Wounds/ScarificationB</texture>
<tintWithSkinColor>true</tintWithSkinColor>
<displayOverApparel>false</displayOverApparel>
<displayPermanent>false</displayPermanent>
<drawOffsetSouth>(0, 0.001, -0.24)</drawOffsetSouth>
<drawOffsetEastWest>(-0.03, 0.001, -0.24)</drawOffsetEastWest>
</li>
<li>
<texture>Things/Pawn/Wounds/ScarificationC</texture>
<tintWithSkinColor>true</tintWithSkinColor>
<displayOverApparel>false</displayOverApparel>
<displayPermanent>false</displayPermanent>
<drawOffsetSouth>(0, 0.001, -0.24)</drawOffsetSouth>
<drawOffsetEastWest>(-0.03, 0.001, -0.24)</drawOffsetEastWest>
</li>
</wounds>
</li>
<li>
<hediff>MissingBodyPart</hediff>
<wounds>
<li>
<textureSouth>Things/Pawn/Wounds/MissingEye_Scar_south</textureSouth>
<textureNorth>Things/Pawn/Wounds/MissingEye_Scar_south</textureNorth>
<textureEast>Things/Pawn/Wounds/MissingEye_Scar_east</textureEast>
<textureWest>Things/Pawn/Wounds/MissingEye_Scar_east</textureWest>
<flipWest>true</flipWest>
<onlyOnPart>Eye</onlyOnPart>
<flipOnWoundAnchorTag>LeftEye</flipOnWoundAnchorTag>
<flipOnRotation>South</flipOnRotation>
<tintWithSkinColor>true</tintWithSkinColor>
<missingBodyPartFresh>false</missingBodyPartFresh>
<scale>0.7</scale>
<drawOffsetSouth>(0, -0.001, -0.24)</drawOffsetSouth>
<drawOffsetEastWest>(0, -0.001, -0.24)</drawOffsetEastWest>
</li>
<li>
<textureSouth>Things/Pawn/Wounds/MissingEye_Fresh</textureSouth>
<textureNorth>Things/Pawn/Wounds/MissingEye_Fresh</textureNorth>
<textureEast>Things/Pawn/Wounds/MissingEye_Fresh</textureEast>
<textureWest>Things/Pawn/Wounds/MissingEye_Fresh</textureWest>
<flipWest>true</flipWest>
<onlyOnPart>Eye</onlyOnPart>
<flipOnWoundAnchorTag>LeftEye</flipOnWoundAnchorTag>
<flipOnRotation>South</flipOnRotation>
<missingBodyPartFresh>true</missingBodyPartFresh>
<scale>0.7</scale>
<drawOffsetSouth>(0, -0.001, -0.24)</drawOffsetSouth>
<drawOffsetEastWest>(0, -0.001, -0.24)</drawOffsetEastWest>
</li>
</wounds>
</li>
</hediffWounds> -->
</FleshTypeDef>
</Defs>

View File

@@ -20,6 +20,12 @@ namespace WulaFallenEmpire
return 0f;
}
// 如果Pawn已经有充电Hediff则不需要充电
if (pawn.health.hediffSet.HasHediff(HediffDef.Named("WULA_ChargingHediff")))
{
return 0f;
}
// 如果能量已充满,则不需要充电
if (energyNeed.CurLevel >= energyNeed.MaxLevel)
{