审查启动窗口

This commit is contained in:
2025-11-24 12:02:14 +08:00
parent 8607bb5036
commit e40bf263af
9 changed files with 221 additions and 52 deletions

View File

@@ -45,6 +45,24 @@
</li> </li>
</optionEffects> </optionEffects>
</li> </li>
<li>
<label>我们想要接受晋级审查</label>
<useCustomColors>true</useCustomColors>
<normalColor>(255,255,255,255)</normalColor>
<hoverColor>(157,201,185,195)</hoverColor>
<textColor>(255,255,255,255)</textColor>
<textHoverColor>(255,255,255,255)</textHoverColor>
<optionEffects>
<li>
<effects>
<li Class="WulaFallenEmpire.Effect_OpenCustomUI">
<defName>WULA_GiveQuest_Colony_Promotion_UI_1</defName>
</li>
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
</effects>
</li>
</optionEffects>
</li>
<li> <li>
<label>再见</label> <label>再见</label>
<useCustomColors>true</useCustomColors> <useCustomColors>true</useCustomColors>
@@ -376,7 +394,7 @@
<kindDef>Combat</kindDef> <kindDef>Combat</kindDef>
<commonality>100</commonality> <commonality>100</commonality>
<options> <options>
<Wula_PIA_Heavy_Unit>1</Wula_PIA_Heavy_Unit> <Wula_PIA_Light_Unit>1</Wula_PIA_Light_Unit>
</options> </options>
</li> </li>
</pawnGroupMakers> </pawnGroupMakers>

View File

@@ -11,7 +11,7 @@
<maskPath>SRA/Pawn/Mechanoid/AllegianceOverlays/None</maskPath> <maskPath>SRA/Pawn/Mechanoid/AllegianceOverlays/None</maskPath>
<shaderType>CutoutWithOverlay</shaderType> <shaderType>CutoutWithOverlay</shaderType>
<graphicClass>Graphic_Multi</graphicClass> <graphicClass>Graphic_Multi</graphicClass>
<drawSize>1.1</drawSize> <drawSize>1</drawSize>
<shadowData> <shadowData>
<volume>(0.2, 0.3, 0.2)</volume> <volume>(0.2, 0.3, 0.2)</volume>
</shadowData> </shadowData>
@@ -54,7 +54,7 @@
<maskPath>Wula/Things/WULA_Cat/AllegianceOverlays/None</maskPath> <maskPath>Wula/Things/WULA_Cat/AllegianceOverlays/None</maskPath>
<shaderType>CutoutWithOverlay</shaderType> <shaderType>CutoutWithOverlay</shaderType>
<graphicClass>Graphic_Multi</graphicClass> <graphicClass>Graphic_Multi</graphicClass>
<drawSize>1.1</drawSize> <drawSize>1</drawSize>
</bodyGraphicData> </bodyGraphicData>
</li> </li>
</lifeStages> </lifeStages>
@@ -67,7 +67,7 @@
<maskPath>Wula/Things/WULA_Attack_Cat/AllegianceOverlays/None</maskPath> <maskPath>Wula/Things/WULA_Attack_Cat/AllegianceOverlays/None</maskPath>
<shaderType>CutoutWithOverlay</shaderType> <shaderType>CutoutWithOverlay</shaderType>
<graphicClass>Graphic_Multi</graphicClass> <graphicClass>Graphic_Multi</graphicClass>
<drawSize>1.1</drawSize> <drawSize>1</drawSize>
</bodyGraphicData> </bodyGraphicData>
</li> </li>
</lifeStages> </lifeStages>
@@ -94,7 +94,7 @@
<maskPath>Wula/Things/WULA_Constructor_Cat/AllegianceOverlays/None</maskPath> <maskPath>Wula/Things/WULA_Constructor_Cat/AllegianceOverlays/None</maskPath>
<shaderType>CutoutWithOverlay</shaderType> <shaderType>CutoutWithOverlay</shaderType>
<graphicClass>Graphic_Multi</graphicClass> <graphicClass>Graphic_Multi</graphicClass>
<drawSize>1.1</drawSize> <drawSize>1</drawSize>
</bodyGraphicData> </bodyGraphicData>
</li> </li>
</lifeStages> </lifeStages>
@@ -111,7 +111,7 @@
<maskPath>Wula/Things/WULA_Assault_Cat/AllegianceOverlays/None</maskPath> <maskPath>Wula/Things/WULA_Assault_Cat/AllegianceOverlays/None</maskPath>
<shaderType>CutoutWithOverlay</shaderType> <shaderType>CutoutWithOverlay</shaderType>
<graphicClass>Graphic_Multi</graphicClass> <graphicClass>Graphic_Multi</graphicClass>
<drawSize>1.1</drawSize> <drawSize>1</drawSize>
</bodyGraphicData> </bodyGraphicData>
</li> </li>
</lifeStages> </lifeStages>
@@ -314,6 +314,63 @@
</PawnKindDef> </PawnKindDef>
<!-- 战斗类乌拉 --> <!-- 战斗类乌拉 -->
<PawnKindDef>
<defName>Wula_PIA_Light_Unit</defName>
<label>帝国冲锋队</label>
<race>WulaSpecies</race>
<lifeStages>
<li>
<bodyGraphicData>
<texPath>Wula/Item/WULA_Species_Icon</texPath>
<maskPath>SRA/Pawn/Mechanoid/AllegianceOverlays/None</maskPath>
<shaderType>CutoutWithOverlay</shaderType>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>1</drawSize>
<shadowData>
<volume>(0.2, 0.3, 0.2)</volume>
</shadowData>
</bodyGraphicData>
</li>
</lifeStages>
<minGenerationAge>18</minGenerationAge>
<maxGenerationAge>20</maxGenerationAge>
<combatPower>250</combatPower>
<initialWillRange>10~20</initialWillRange>
<initialResistanceRange>10~20</initialResistanceRange>
<itemQuality>Poor</itemQuality>
<minApparelQuality>Poor</minApparelQuality>
<maxApparelQuality>Poor</maxApparelQuality>
<isFighter>true</isFighter>
<apparelTags>
<li>Wula_Armor_Light</li>
</apparelTags>
<weaponTags>
<li>Wula_Melee_Weapon_T1</li>
<li>Wula_Ranged_Weapon_T1</li>
</weaponTags>
<apparelRequired>
<li>WULA_Assault_Troop_PowerArmor</li>
<li>WULA_Assault_Troop_Helmet</li>
</apparelRequired>
<weaponMoney>3000~8000</weaponMoney>
<biocodeWeaponChance>1</biocodeWeaponChance>
<apparelAllowHeadgearChance>1</apparelAllowHeadgearChance>
<techHediffsChance>1</techHediffsChance>
<apparelMoney>999999~999999</apparelMoney>
<techHediffsMoney>999999~999999</techHediffsMoney>
<techHediffsRequired>
<li>WULA_AutoJumpdrive</li>
<li>DeathAcidifier</li>
</techHediffsRequired>
<backstoryFiltersOverride>
<li>
<categories>
<li>Wula_Backstory_Categories</li>
</categories>
</li>
</backstoryFiltersOverride>
</PawnKindDef>
<PawnKindDef> <PawnKindDef>
<defName>Wula_PIA_Heavy_Unit</defName> <defName>Wula_PIA_Heavy_Unit</defName>
<label>军团重装步兵</label> <label>军团重装步兵</label>
@@ -325,7 +382,7 @@
<maskPath>SRA/Pawn/Mechanoid/AllegianceOverlays/None</maskPath> <maskPath>SRA/Pawn/Mechanoid/AllegianceOverlays/None</maskPath>
<shaderType>CutoutWithOverlay</shaderType> <shaderType>CutoutWithOverlay</shaderType>
<graphicClass>Graphic_Multi</graphicClass> <graphicClass>Graphic_Multi</graphicClass>
<drawSize>1.1</drawSize> <drawSize>1</drawSize>
<shadowData> <shadowData>
<volume>(0.2, 0.3, 0.2)</volume> <volume>(0.2, 0.3, 0.2)</volume>
</shadowData> </shadowData>
@@ -385,7 +442,7 @@
<maskPath>SRA/Pawn/Mechanoid/AllegianceOverlays/None</maskPath> <maskPath>SRA/Pawn/Mechanoid/AllegianceOverlays/None</maskPath>
<shaderType>CutoutWithOverlay</shaderType> <shaderType>CutoutWithOverlay</shaderType>
<graphicClass>Graphic_Multi</graphicClass> <graphicClass>Graphic_Multi</graphicClass>
<drawSize>1.1</drawSize> <drawSize>1</drawSize>
<shadowData> <shadowData>
<volume>(0.2, 0.3, 0.2)</volume> <volume>(0.2, 0.3, 0.2)</volume>
</shadowData> </shadowData>
@@ -404,17 +461,13 @@
<apparelTags Inherit="False"> <apparelTags Inherit="False">
<li>Wula_Legion_Apparel</li> <li>Wula_Legion_Apparel</li>
</apparelTags> </apparelTags>
<weaponTags>
<li>Wula_Melee_Weapon_T2</li>
</weaponTags>
<weaponMoney>3000~8000</weaponMoney>
<weaponMoney>0</weaponMoney> <weaponMoney>0</weaponMoney>
<apparelAllowHeadgearChance>0</apparelAllowHeadgearChance> <apparelAllowHeadgearChance>0</apparelAllowHeadgearChance>
<apparelMoney>99999~99999</apparelMoney> <apparelMoney>99999~99999</apparelMoney>
</PawnKindDef> </PawnKindDef>
<PawnKindDef> <PawnKindDef>
<defName>Wula_PIA_Legion_Escort_Unit</defName> <defName>Wula_PIA_Legion_Escort_Unit</defName>
<label>重装卫</label> <label>帝国冲锋</label>
<race>WulaSpecies</race> <race>WulaSpecies</race>
<lifeStages> <lifeStages>
<li> <li>
@@ -423,7 +476,7 @@
<maskPath>SRA/Pawn/Mechanoid/AllegianceOverlays/None</maskPath> <maskPath>SRA/Pawn/Mechanoid/AllegianceOverlays/None</maskPath>
<shaderType>CutoutWithOverlay</shaderType> <shaderType>CutoutWithOverlay</shaderType>
<graphicClass>Graphic_Multi</graphicClass> <graphicClass>Graphic_Multi</graphicClass>
<drawSize>1.1</drawSize> <drawSize>1</drawSize>
<shadowData> <shadowData>
<volume>(0.2, 0.3, 0.2)</volume> <volume>(0.2, 0.3, 0.2)</volume>
</shadowData> </shadowData>
@@ -440,14 +493,16 @@
<maxApparelQuality>Poor</maxApparelQuality> <maxApparelQuality>Poor</maxApparelQuality>
<isFighter>true</isFighter> <isFighter>true</isFighter>
<apparelTags> <apparelTags>
<li>Wula_Armor_Super_Heavy</li> <li>Wula_Armor_Light</li>
<li>Wula_Armor_Shield</li>
<li>WULA_Manpack_Loitering_Munition</li>
</apparelTags> </apparelTags>
<weaponTags> <weaponTags>
<li>Wula_Melee_Weapon_T2</li> <li>Wula_Melee_Weapon_T2</li>
</weaponTags> </weaponTags>
<apparelRequired> <apparelRequired>
<li>WULA_Heavy_Infantry_PowerArmor</li> <li>WULA_Assault_Troop_PowerArmor</li>
<li>WULA_Heavy_Infantry_Helmet</li> <li>WULA_Assault_Troop_Helmet</li>
</apparelRequired> </apparelRequired>
<weaponMoney>3000~8000</weaponMoney> <weaponMoney>3000~8000</weaponMoney>
<biocodeWeaponChance>1</biocodeWeaponChance> <biocodeWeaponChance>1</biocodeWeaponChance>

View File

@@ -62,7 +62,7 @@
</li> </li>
<li Class="QuestNode_Set"> <li Class="QuestNode_Set">
<name>taxInterval</name> <name>taxInterval</name>
<value>250</value> <!-- 较短的测试间隔 --> <value>600</value> <!-- 较短的测试间隔 -->
</li> </li>
<li Class="QuestNode_Multiply"> <li Class="QuestNode_Multiply">

View File

@@ -1,6 +1,52 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<Defs> <Defs>
<!-- 初始任务 --> <WulaFallenEmpire.EventDef>
<defName>WULA_GiveQuest_Colony_Promotion_UI_1</defName>
<label>未知通讯</label>
<portraitPath>Wula/Events/Portraits/WULA_Legion_2</portraitPath>
<characterName>「军团」,P.I.A</characterName>
<descriptions>
<li>晋级审查是一件大事情——你们确定你们已经准备好了吗?\n\n我和你们重申一下流程吧我会派遣自己的一个分体和护卫队在你们殖民地考察12天你要照顾我的分体和卫队的起居。如果一切顺利考察完成之后你们将获得殖民地晋升的机会舰队会为你们开放更多的许可科技。</li>
</descriptions>
<options>
<li>
<label>我们准备好了</label>
<useCustomColors>true</useCustomColors>
<normalColor>(255,255,255,255)</normalColor>
<hoverColor>(157,201,185,195)</hoverColor>
<textColor>(255,255,255,255)</textColor>
<textHoverColor>(255,255,255,255)</textHoverColor>
<optionEffects>
<li>
<effects>
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
<li Class="WulaFallenEmpire.Effect_AddQuest">
<quest>WULA_Colony_Promotion</quest>
</li>
</effects>
</li>
</optionEffects>
</li>
<li>
<label>现在不是太合适···</label>
<useCustomColors>true</useCustomColors>
<normalColor>(255,255,255,255)</normalColor>
<hoverColor>(157,201,185,195)</hoverColor>
<textColor>(255,255,255,255)</textColor>
<textHoverColor>(255,255,255,255)</textHoverColor>
<optionEffects>
<li>
<effects>
<li Class="WulaFallenEmpire.Effect_OpenCustomUI">
<defName>Wula_UI_Legion_1</defName>
</li>
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
</effects>
</li>
</optionEffects>
</li>
</options>
</WulaFallenEmpire.EventDef>
<IncidentDef> <IncidentDef>
<defName>WULA_GiveQuest_Colony_Promotion</defName> <defName>WULA_GiveQuest_Colony_Promotion</defName>
<category>GiveQuest</category> <category>GiveQuest</category>
@@ -36,6 +82,18 @@
<nodes> <nodes>
<li Class="QuestNode_GetMap" /> <li Class="QuestNode_GetMap" />
<!-- 生成物品奖励 -->
<li Class="QuestNode_GenerateThingSet">
<thingSetMaker>WULA_Colony_Promotion_Reward</thingSetMaker>
<storeAs>promotionReward</storeAs>
</li>
<!-- 产生超链接 -->
<li Class="WulaFallenEmpire.QuestNode_Hyperlinks">
<factionDefs>
<li>Wula_PIA_Legion_Faction</li>
</factionDefs>
</li>
<!-- End if map removed --> <!-- End if map removed -->
<li Class="QuestNode_End"> <li Class="QuestNode_End">
<inSignal>map.MapRemoved</inSignal> <inSignal>map.MapRemoved</inSignal>
@@ -428,9 +486,16 @@
<!-- Shuttle sent away --> <!-- Shuttle sent away -->
<li Class="QuestNode_Signal"> <li Class="QuestNode_Signal">
<inSignal>pickupShipThing.SentSatisfied</inSignal> <inSignal>pickupShipThing.SentSatisfied</inSignal>
<node Class="QuestNode_End"> <node Class="QuestNode_Sequence">
<outcome>Success</outcome> <nodes>
<sendStandardLetter>true</sendStandardLetter> <li Class="QuestNode_AddItemsReward">
<items>$promotionReward</items>
</li>
<li Class="QuestNode_End">
<outcome>Success</outcome>
<sendStandardLetter>true</sendStandardLetter>
</li>
</nodes>
</node> </node>
</li> </li>
<li Class="QuestNode_Signal"> <li Class="QuestNode_Signal">
@@ -454,4 +519,24 @@
</nodes> </nodes>
</root> </root>
</QuestScriptDef> </QuestScriptDef>
<ThingSetMakerDef>
<defName>WULA_Colony_Promotion_Reward</defName>
<root Class="ThingSetMaker_RandomOption">
<options>
<li>
<weight>1</weight>
<thingSetMaker Class="ThingSetMaker_StackCount">
<fixedParams>
<filter>
<thingDefs>
<li>Techprint_WULA_Colony_License_LV2_Technology</li>
</thingDefs>
</filter>
<countRange>1</countRange>
</fixedParams>
</thingSetMaker>
</li>
</options>
</root>
</ThingSetMakerDef>
</Defs> </Defs>

View File

@@ -564,9 +564,7 @@
</costList> </costList>
<apparel> <apparel>
<tags> <tags>
<li>Wula_Armor_Heavy</li> <li>Wula_Armor_Light</li>
<li>RoyalTier5</li>
<li>Royal</li>
</tags> </tags>
<wornGraphicPath>Wula/Apparel/WULA_Assault_Troop_PowerArmor</wornGraphicPath> <wornGraphicPath>Wula/Apparel/WULA_Assault_Troop_PowerArmor</wornGraphicPath>
</apparel> </apparel>
@@ -621,9 +619,7 @@
</statBases> </statBases>
<apparel> <apparel>
<tags> <tags>
<li>Wula_Armor_Heavy</li> <li>Wula_Armor_Light</li>
<li>RoyalTier5</li>
<li>Royal</li>
</tags> </tags>
<wornGraphicPath>Wula/Apparel/WULA_Assault_Troop_Helmet</wornGraphicPath> <wornGraphicPath>Wula/Apparel/WULA_Assault_Troop_Helmet</wornGraphicPath>
</apparel> </apparel>
@@ -804,7 +800,7 @@
</costList> </costList>
<apparel> <apparel>
<tags> <tags>
<li>Wula_Armor_Super_Heavy</li> <li>Wula_Armor_Shield</li>
</tags> </tags>
<bodyPartGroups> <bodyPartGroups>
<li>Torso</li> <li>Torso</li>

View File

@@ -512,7 +512,7 @@
<ComponentIndustrial>2</ComponentIndustrial> <ComponentIndustrial>2</ComponentIndustrial>
</costList> </costList>
<weaponTags> <weaponTags>
<li>Wula_Weapon_Init</li> <li>Wula_Ranged_Weapon_T1</li>
<li>Wula_Assault_Cat_Weapon</li> <li>Wula_Assault_Cat_Weapon</li>
</weaponTags> </weaponTags>
<comps> <comps>
@@ -547,6 +547,7 @@
<showPsycastEffects>False</showPsycastEffects> <showPsycastEffects>False</showPsycastEffects>
<hotKey>Misc11</hotKey> <hotKey>Misc11</hotKey>
<showOnCharacterCard>false</showOnCharacterCard> <showOnCharacterCard>false</showOnCharacterCard>
<aiCanUse>true</aiCanUse>
<cooldownTicksRange>12800</cooldownTicksRange> <cooldownTicksRange>12800</cooldownTicksRange>
<verbProperties> <verbProperties>
<verbClass>Verb_CastAbility</verbClass> <verbClass>Verb_CastAbility</verbClass>
@@ -964,7 +965,7 @@
<ComponentIndustrial>2</ComponentIndustrial> <ComponentIndustrial>2</ComponentIndustrial>
</costList> </costList>
<weaponTags> <weaponTags>
<li>Wula_Ranged_Weapon_T2</li> <li>Wula_Ranged_Weapon_T1</li>
</weaponTags> </weaponTags>
<modExtensions> <modExtensions>
<li Class="WulaFallenEmpire.ModExtension_ShootWithOffset"> <li Class="WulaFallenEmpire.ModExtension_ShootWithOffset">
@@ -1746,6 +1747,9 @@
<li>ApparelUtility</li> <li>ApparelUtility</li>
</thingCategories> </thingCategories>
<apparel> <apparel>
<tags>
<li>WULA_Manpack_Loitering_Munition</li>
</tags>
<countsAsClothingForNudity>false</countsAsClothingForNudity> <countsAsClothingForNudity>false</countsAsClothingForNudity>
<scoreOffset>4</scoreOffset> <scoreOffset>4</scoreOffset>
<careIfWornByCorpse>false</careIfWornByCorpse> <careIfWornByCorpse>false</careIfWornByCorpse>

View File

@@ -378,6 +378,22 @@
<insertTag>Humanlike_PreMain</insertTag> <insertTag>Humanlike_PreMain</insertTag>
</li> </li>
<!-- 添加军团成员的考察工作,优先级较低 -->
<!-- Idle wild man -->
<li Class="ThinkNode_ConditionalPawnKind">
<pawnKind>WULA_Legion_PawnKind</pawnKind>
<subNodes>
<li Class="ThinkNode_Tagger">
<tagToGive>Misc</tagToGive>
<subNodes>
<li Class="WulaFallenEmpire.JobGiver_InspectBuilding">
<priority>15.0</priority>
</li>
</subNodes>
</li>
</subNodes>
</li>
<!-- Main colonist behavior core --> <!-- Main colonist behavior core -->
<li Class="ThinkNode_ConditionalColonist"> <li Class="ThinkNode_ConditionalColonist">
<subNodes> <subNodes>
@@ -402,22 +418,6 @@
<li Class="ThinkNode_SubtreesByTag"> <li Class="ThinkNode_SubtreesByTag">
<insertTag>Humanlike_PostMain</insertTag> <insertTag>Humanlike_PostMain</insertTag>
</li> </li>
<!-- 添加军团成员的考察工作,优先级较低 -->
<!-- Idle wild man -->
<li Class="ThinkNode_ConditionalPawnKind">
<pawnKind>WULA_Legion_PawnKind</pawnKind>
<subNodes>
<li Class="ThinkNode_Tagger">
<tagToGive>Misc</tagToGive>
<subNodes>
<li Class="WulaFallenEmpire.JobGiver_InspectBuilding">
<priority>4.0</priority>
</li>
</subNodes>
</li>
</subNodes>
</li>
<!-- Idle colonist --> <!-- Idle colonist -->
<li Class="ThinkNode_ConditionalColonist"> <li Class="ThinkNode_ConditionalColonist">

View File

@@ -449,7 +449,6 @@ namespace WulaFallenEmpire
public class Effect_AddQuest : EffectBase public class Effect_AddQuest : EffectBase
{ {
public QuestScriptDef quest; public QuestScriptDef quest;
public override void Execute(Window dialog = null) public override void Execute(Window dialog = null)
{ {
if (quest == null) if (quest == null)
@@ -457,11 +456,23 @@ namespace WulaFallenEmpire
Log.Error("[WulaFallenEmpire] Effect_AddQuest has a null quest Def."); Log.Error("[WulaFallenEmpire] Effect_AddQuest has a null quest Def.");
return; return;
} }
// 使用标准的任务生成方法而不是创建raw quest
Quest newQuest = QuestUtility.GenerateQuestAndMakeAvailable(quest, 0);
Quest newQuest = Quest.MakeRaw(); if (newQuest != null)
newQuest.root = quest; {
newQuest.id = Find.UniqueIDsManager.GetNextQuestID(); Log.Message($"[WulaFallenEmpire] Successfully added quest: {quest.defName}");
Find.QuestManager.Add(newQuest);
// 如果不是自动接受的任务,发送可用信件
if (!newQuest.root.autoAccept)
{
QuestUtility.SendLetterQuestAvailable(newQuest);
}
}
else
{
Log.Error($"[WulaFallenEmpire] Failed to generate quest: {quest.defName}");
}
} }
} }