Merge branch 'main' of https://git.ra3battle.cn/Kalospacer/WulaFallenEmpireRW
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -34,4 +34,3 @@ Source/MCP/pid.txt
|
||||
*.log
|
||||
MCP/vector_cache/*.txt
|
||||
MCP/mcpserver.log
|
||||
Source/ai_studio_code.txt
|
||||
|
||||
Binary file not shown.
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user