Skip to content

Commit 34cc164

Browse files
committed
Update the guide to reflect redesign
1 parent bd938b3 commit 34cc164

18 files changed

+483
-723
lines changed

config/routes.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ Game/Story/Chapter1:
654654

655655
Guide:
656656
path: /guide
657-
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::index
657+
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::gettingStarted
658658
methods: [GET]
659659

660660
Guide/Attack:
@@ -677,9 +677,9 @@ Guide/Fleet:
677677
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::fleet
678678
methods: [GET]
679679

680-
Guide/Headquarter:
681-
path: /guide/headquarter
682-
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::headquarter
680+
Guide/GettingStarted:
681+
path: /guide/getting-started
682+
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::gettingStarted
683683
methods: [GET]
684684

685685
Guide/ListOperations:
@@ -706,11 +706,6 @@ Guide/Market:
706706
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::market
707707
methods: [GET]
708708

709-
Guide/Ranking:
710-
path: /guide/ranking
711-
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::ranking
712-
methods: [GET]
713-
714709
Guide/Region:
715710
path: /guide/region
716711
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::region
@@ -731,11 +726,6 @@ Guide/Rules:
731726
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::rules
732727
methods: [GET]
733728

734-
Guide/Surrender:
735-
path: /guide/surrender
736-
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::surrender
737-
methods: [GET]
738-
739729
Guide/GameUnit:
740730
path: /guide/unit/{gameUnitId}
741731
controller: FrankProjects\UltimateWarfare\Controller\Site\GuideController::gameUnit

src/Controller/Site/GuideController.php

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,11 @@ public function fleet(): Response
5252
return $this->render('site/guide/fleet.html.twig');
5353
}
5454

55-
public function headquarter(): Response
55+
public function gettingStarted(): Response
5656
{
57-
return $this->render('site/guide/headquarter.html.twig');
57+
return $this->render('site/guide/gettingStarted.html.twig');
5858
}
5959

60-
public function index(): Response
61-
{
62-
return $this->render('site/guide/index.html.twig');
63-
}
6460

6561
public function listOperations(OperationRegistry $operationRegistry): Response
6662
{
@@ -119,11 +115,6 @@ public function market(): Response
119115
return $this->render('site/guide/market.html.twig');
120116
}
121117

122-
public function ranking(): Response
123-
{
124-
return $this->render('site/guide/ranking.html.twig');
125-
}
126-
127118
public function region(): Response
128119
{
129120
return $this->render('site/guide/region.html.twig');
@@ -144,11 +135,6 @@ public function rules(): Response
144135
return $this->render('site/guide/rules.html.twig');
145136
}
146137

147-
public function surrender(): Response
148-
{
149-
return $this->render('site/guide/surrender.html.twig');
150-
}
151-
152138
public function world(): Response
153139
{
154140
return $this->render('site/guide/world.html.twig');
Lines changed: 110 additions & 171 deletions
Original file line numberDiff line numberDiff line change
@@ -1,199 +1,138 @@
11
{% extends 'site/guideBase.html.twig' %}
22
{% block content %}
33
<div class="uw-card">
4+
<div class="uw-card-header">Attack System</div>
45
<div class="uw-card-body">
5-
The attack system is a quite advanced system. When your attack fleet arrives and attacks there so no way
6-
back. The results of the battle depends on many factors, we will run through them step by step now.<br/><br/>
7-
8-
<b>Small Player Protection:</b><br/>
9-
Bigger players can't attack players that have 25% or less of their regions. This will prevent bigger
10-
players from attacking new players. If a small player attacks a big player, the big player can attack
11-
back for 24 hours.<br/><br/>
12-
13-
<b>Support:</b><br/>
14-
First of all the defender is in a better position, because if he owns the regions around the region you
15-
attack, and he has Train stations, airports or / and harbors in them, that regions will help him defend
16-
his region!<br/><br/>
17-
18-
Look at the example below,<br/>
19-
If "ATTACKER" attacks region 2,2 and the defender has a Train station, airport and harbor on 1,2, then
20-
1,2 will send all his units to region 2,2 to defend it!<br/>
21-
If region 2,3 has only 1 airfield, he will only send planes to 2,2 to defend it!<br/>
22-
And same for region 3,2. The reinforcements to defend a region are based on the train stations, airports
23-
and harbors from the surrounding regions and ofcource on the units that are located in those
24-
regions.<br/><br/>
6+
<p>
7+
Attacking is how you capture regions from other players. Once your attack fleet arrives and the battle begins,
8+
there is no way back. Make sure you are prepared before launching an attack!
9+
</p>
2510
</div>
2611
</div>
2712

28-
<br/>
2913
<br/>
3014

31-
<table width="360" class="worldtable text-center">
32-
<tr>
33-
<td width="15">x</td>
34-
<td width="119">1</td>
35-
<td width="119">2</td>
36-
<td width="119">3</td>
37-
</tr>
38-
<tr>
39-
<td width="15">1</td>
40-
<td width="119" height="103" background="{{ asset('images/map/forest.png') }}" valign="top">
41-
<br/><a href="{{ url('Guide/Attack') }}"><span style="color:gold"><b>Building<br/>YOU</b></span></a>
42-
</td>
43-
<td width="119" height="103" background="{{ asset('images/map/forest.png') }}" valign="top">
44-
<br/><a href="{{ url('Guide/Attack') }}">Attack<br/>DEFENDER</a>
45-
</td>
46-
<td width="119" height="103" background="{{ asset('images/map/forest.png') }}" valign="top">
47-
<br/><a href="{{ url('Guide/Attack') }}">Buy</a>
48-
</td>
49-
</tr>
50-
<tr>
51-
<td width="15">2</td>
52-
<td width="119" height="103" background="{{ asset('images/map/forest.png') }}" valign="top">
53-
<br/><a href="{{ url('Guide/Attack') }}"><span style="color:gold"><b>Building<br/>YOU</b></span></a>
54-
</td>
55-
<td width="119" height="103" background="{{ asset('images/map/forest.png') }}" valign="top">
56-
<br/><a href="{{ url('Guide/Attack') }}">Attack<br/>DEFENDER</a>
57-
</td>
58-
<td width="119" height="103" background="{{ asset('images/map/forest.png') }}" valign="top">
59-
<br/><a href="{{ url('Guide/Attack') }}">Attack<br/>DEFENDER</a></td>
60-
</tr>
61-
<tr>
62-
<td width="15">3</td>
63-
<td width="119" height="103" background="{{ asset('images/map/forest.png') }}" valign="top">
64-
<br/><a href="{{ url('Guide/Attack') }}"><span style="color:gold"><b>Building<br/>YOU</b></span></a>
65-
</td>
66-
<td width="119" height="103" background="{{ asset('images/map/forest.png') }}" valign="top">
67-
<br/><a href="{{ url('Guide/Attack') }}">Attack<br/>DEFENDER</a>
68-
</td>
69-
<td width="119" height="103" background="{{ asset('images/map/forest.png') }}" valign="top">
70-
<br/><a href="{{ url('Guide/Attack') }}">Buy</a>
71-
</td>
72-
</tr>
73-
</table>
15+
<div class="uw-card">
16+
<div class="uw-card-header">Protection Rules</div>
17+
<div class="uw-card-body">
18+
<ul>
19+
<li>You cannot attack a player who has only <b>1 region</b> remaining.</li>
20+
<li>You cannot attack a player within their first <b>48 hours</b> of joining the world.</li>
21+
<li>You cannot attack your own regions.</li>
22+
</ul>
23+
</div>
24+
</div>
7425

75-
<br/>
7626
<br/>
7727

7828
<div class="uw-card">
29+
<div class="uw-card-header">Attack Range</div>
7930
<div class="uw-card-body">
80-
<br/>
81-
Some Limits:
82-
<ul>
83-
84-
<li>
85-
<b>Train stations:</b> Every train station can send max 25 soldiers and 1 tank (If you have
86-
that many on your region) as support.<br/>
87-
</li>
88-
<li>
89-
<b>Airport:</b> Every airport can send max 10 planes (If you have that many planes on your
90-
region) as support.
91-
</li>
92-
<li>
93-
<b>Harbor:</b> Every harbor can send max 1 ship (If you have that many ships on your region)
94-
as support.
95-
</li>
96-
</ul>
97-
98-
<br/>
99-
<br/>
100-
<b>Battle Stages:</b><br/>
101-
The battle takes place in 4 Battle Stages,<br/>
102-
Air Battle<br/>
103-
Sea Battle<br/>
104-
Ground Battle<br/>
105-
And then the Final Stage<br/><br/>
106-
107-
<b>Air Battle:</b><br/>
108-
This is the first battle stage,<br/>
109-
Your planes start with attacking the defenders Anti Air Missiles,
110-
You need 10 planes to destroy 1 Anti Air Missile!<br/>
111-
If you didn't killed all Anti Air Missiles, then every 2 Missiles will kill 1 plane of
112-
you!<br/><br/>
113-
Now the planes battle, every 5 planes you send will kill 1 enemy plane! After that you will lose 1
114-
plane for every 5 planes that the defender has left from backfire!<br/><br/>
115-
116-
Then the planes you have left will move on to the defending ships, but cos of the strong armor you
117-
need 100 planes to take out 1 warship!<br/>
118-
This was the final stage of the Air battle<br/><br/>
119-
120-
<b>Sea Battle:</b><br/>
121-
Your ships move through the heavy guarded sea, you will lose 1 ship for every 1000 sea mines. After
122-
that you kill 1 enemy ship with every 2 ships you have, the defender kills 1 ship of you with every
123-
2 ships that he has left.<br/><br/>
124-
125-
<b>Ground Battle:</b><br/>
126-
The defender will use his planes to attack your soldiers! Every plane is able to kill 4 attacking
127-
soldiers.<br/>
128-
The attacking ships open fire at the enemy ground troops now, every ships is able to take down 9
129-
defending soldiers.<br/>
130-
After that the attacking will lose 1 soldier for every 20 land mines the defender has!<br/>
131-
After that every 2 attacking tanks take down 1 defending tank, in return fire every 2 tanks that the
132-
defender has left kills 1 attacking tank!<br/>
133-
In the next stage every attacking tank kills 2 soldiers.<br/><br/>
134-
135-
<b>Final Stage:</b><br/>
136-
Finally the final stage, in this stage the attacking soldiers will fight the defending soldiers,
137-
every 2 attacking soldiers kill 1 defending soldier, and in backfire every 2 defending soldiers will
138-
kill 1 attacking soldier.<br/><br/>
139-
To win a battle the attacker needs to have 2 times the amount of soldiers after the final
140-
stage!<br/>
141-
The attacker gains the region WITH all buildings.<br/>
142-
Look below for an example battle report:
31+
<p>
32+
Different unit types have different attack ranges measured in tiles.
33+
Distance is calculated as the maximum of the horizontal and vertical distance between regions (diagonal movement counts as 1 tile).
34+
</p>
35+
<table class="table">
36+
<tr>
37+
<th>Unit Type</th>
38+
<th>Range</th>
39+
</tr>
40+
<tr>
41+
<td>Soldier, Sniper, Mine Sweeper</td>
42+
<td>1 tile</td>
43+
</tr>
44+
<tr>
45+
<td>Tank, Artillery</td>
46+
<td>2 tiles</td>
47+
</tr>
48+
<tr>
49+
<td>Fighter</td>
50+
<td>3 tiles</td>
51+
</tr>
52+
<tr>
53+
<td>Bomber</td>
54+
<td>5 tiles</td>
55+
</tr>
56+
<tr>
57+
<td>Strategic Bomber</td>
58+
<td>7 tiles</td>
59+
</tr>
60+
<tr>
61+
<td>Naval Units</td>
62+
<td>1 tile (both source and target must be coastal)</td>
63+
</tr>
64+
</table>
65+
<p>
66+
A region is considered <b>coastal</b> if it is a water or sand terrain type, or if it is directly adjacent to one.
67+
</p>
14368
</div>
14469
</div>
14570

14671
<br/>
147-
<br/>
148-
14972

15073
<div class="uw-card">
151-
<div class="uw-card-header">Ultimate Warfare Battle Report</div>
74+
<div class="uw-card-header">How to Attack</div>
15275
<div class="uw-card-body">
153-
<b>Air Battle</b>
154-
<br/>
155-
You started with 21 planes...<br/>
156-
You killed 0 enemy planes,<br/>
157-
You lost 4 planes during the air battle.
158-
159-
<br/><br/>
160-
161-
After a while you saw 2 ships,<br/>
162-
They couldn't protect theirself against your fast strike planes,<br/>
163-
After your stikes there were 2 ships left.
164-
165-
<br/><br/>
166-
167-
You finally reached the land...<br/>
168-
Your rader saw 250 soldiers, 14 tanks and 0 bunkers,<br/><br/>
169-
170-
<b>Sea Battle</b><br/>
171-
You started with 3 ships,<br/>
172-
Your enemy had 2 ships, <br/>
173-
and 1 Support ships!<br/>
174-
After a huge battle you had 2 ships left.<br/><br>
76+
<ol>
77+
<li>Click on an enemy region on the <a href="{{ url('Guide/World') }}">world map</a>.</li>
78+
<li>The game shows you which of your regions have units within attack range.</li>
79+
<li>Select a source region to attack from.</li>
80+
<li>Choose which units to send.</li>
81+
<li>Your attack fleet will travel to the target. Travel time depends on the distance between regions.</li>
82+
<li>When the fleet arrives, the battle begins automatically.</li>
83+
</ol>
84+
</div>
85+
</div>
17586

176-
<br/>
177-
<b>Ground Battle</b>
178-
<br/>
179-
You started with 734 soldiers,<br/>
180-
5 enemy planes opent fire at your ground troops,<br/>
181-
After the strikes from the enemy planes you had 714 soldiers left.<br/>
182-
Your 2 ships opent fire and killed 18 soldiers.<br/>
183-
Your 57 tanks were fighting against 14 tanks,<br/>
184-
and 6 Support tanks!<br/>
185-
After the battle you had 54 tanks left, your enemy had 0 tanks left.<br/><br/>
87+
<br/>
18688

187-
Your 54 tanks found a group of 232 enemy soldiers.<br/>
188-
You managed to kill some enemy soldiers, your enemy had 124 soldiers left.<br/>
189-
<br/><br/>
89+
<div class="uw-card">
90+
<div class="uw-card-header">Battle System</div>
91+
<div class="uw-card-body">
92+
<p>
93+
Battles are resolved in <b>3 phases</b>, each based on a different combat domain:
94+
</p>
95+
96+
<b>Phase 1: Air Battle</b>
97+
<p>
98+
Units with air combat stats fight first. Air defense power hits attacking units, then air attack power hits defending units.
99+
</p>
100+
101+
<b>Phase 2: Sea Battle</b>
102+
<p>
103+
Units with sea combat stats fight next. Sea defense power hits attacking units, then sea attack power hits defending units.
104+
</p>
105+
106+
<b>Phase 3: Ground Battle</b>
107+
<p>
108+
Units with ground combat stats fight last. Ground defense power hits attacking units, then ground attack power hits defending units.
109+
</p>
110+
111+
<br/>
112+
<b>How casualties are calculated:</b>
113+
<p>
114+
Each unit type has attack and defense stats for each combat phase (air, sea, ground), as well as health and armor values.
115+
The total power in a phase is the sum of all units' relevant attack or defense stat multiplied by their count.
116+
Casualties are determined by dividing the opposing power by each unit type's effective health (health multiplied by armor).
117+
</p>
118+
</div>
119+
</div>
190120

191-
<b>The Final Stage</b><br/>
192-
You have 714 soldiers left, your enemy had 124 soldiers left.<br/>
193-
and 150 Support soldiers!<br/>
194-
After the battle you had 639 left, your enemy had 0 soldiers left.<br/><br/>
121+
<br/>
195122

196-
YOU WON
123+
<div class="uw-card">
124+
<div class="uw-card-header">Victory</div>
125+
<div class="uw-card-body">
126+
<p>
127+
After all three battle phases, if the <b>defender has no defense power remaining</b> and the <b>attacker still has attack power</b>,
128+
the attacker wins the battle.
129+
</p>
130+
<p>
131+
The winner captures the region along with all its buildings intact. The losing attacker's fleet is destroyed.
132+
</p>
133+
<p>
134+
Both players receive a battle report detailing the outcome.
135+
</p>
197136
</div>
198137
</div>
199138
{% endblock %}

0 commit comments

Comments
 (0)