Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pregmodfan
fc-pregmod
Commits
95ea07b1
Commit
95ea07b1
authored
7 years ago
by
hexall90
Browse files
Options
Downloads
Patches
Plain Diff
handling surrender mismanagement
parent
92ec2b03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1295
fixing surrendering issue as reported ITT
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/SecExp/unitsRebellionReport.tw
+43
-1
43 additions, 1 deletion
src/SecExp/unitsRebellionReport.tw
with
43 additions
and
1 deletion
src/SecExp/unitsRebellionReport.tw
+
43
−
1
View file @
95ea07b1
...
...
@@ -51,7 +51,7 @@
<</for>>
participated in the battle without taking any casualties. They remained loyal until the end.
<</if>>
<<if $rebellingID.length > 0>>
<<if $rebellingID.length > 0
&& $battleResult != -1
>>
<br>
<br>
/* militia */
...
...
@@ -213,6 +213,48 @@
<br>//Will positively influence the loyalty of the other units, but no manpower will be refunded.//
</span>
<</if>>
<<elseif $rebellingID.length > 0>>
<<set _militiaRebelledID = []>>
<<for _j = 0; _j < $militiaUnits.length; _j++>>
<<if $militiaUnits[_j].active == 1 && $rebellingID.includes($militiaUnits[_j].ID)>>
<<set _militiaRebelledID.push($militiaUnits[_j].ID)>>
$militiaUnits[_j].platoonName,
<</if>>
<</for>>
<<if _militiaRebelledID.length > 0>>
had the gall to betray you and join your enemies. They participated in the looting following the rebellion, then vanished in the wastes.
<</if>>
<<set $cash -= 1000 * _militiaRebelledID.length>>
<br>
<<removeUnits _militiaRebelledID>>
<<set _slaveRebelledID = []>>
<<for _j = 0; _j < $slaveUnits.length; _j++>>
<<if $slaveUnits[_j].active == 1 && $rebellingID.includes($slaveUnits[_j].ID)>>
<<set _slaveRebelledID.push($slaveUnits[_j].ID)>>
$slaveUnits[_j].platoonName,
<</if>>
<</for>>
<<if _slaveRebelledID.length > 0>>
decided in their blind arrogance to betray you. They participated in the looting following the rebellion, then vanished in the wastes.
<</if>>
<<set $cash -= 1000 * _slaveRebelledID.length>>
<<removeUnits _slaveRebelledID>>
<br>
<<set _mercRebelledID = []>>
<<set _count = 0>>
<<for _j = 0; _j < $mercUnits.length; _j++>>
<<if $mercUnits[_j].active == 1 && $rebellingID.includes($mercUnits[_j].ID)>>
<<set _mercRebelledID.push($mercUnits[_j].ID)>>
<<set _count++>>
$mercUnits[_j].platoonName,
<</if>>
<</for>>
<<if _mercRebelledID.length > 0>>
made the grave mistake of betraying you. They participated in the looting following the rebellion, then vanished in the wastes.
<</if>>
<<set $cash -= 1000 * _mercRebelledID.length>>
<<removeUnits _mercRebelledID>>
<<recalcManpower>>
<</if>>
<<elseif $losses > 0>>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment