Skip to content

Commit 17122a9

Browse files
committed
invulnerable ship artillery slots bug
1 parent ac67155 commit 17122a9

14 files changed

+58
-12
lines changed

src/0030-bugs/0001-new-settlement-ware-production.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/0030-bugs/0002-beggar-satisfaction.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/SUMMARY.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
[Patrician 3 Insights](./README.md)
33
[Introduction](./ch00-00-introduction.md)
44
- [Getting Started](./ch01-00-getting-started.md)
5-
- [Basics](./ch02-00-basics.md)
6-
- [Ware Types](./ch02-01-wares.md)
7-
- [Ship Weapon Types](./ch02-02-ship-weapons.md)
8-
- [Ship Types](./ch02-03-ships.md)
9-
- [Buildings](./ch02-10-buildings.md)
10-
- [Facilities](./ch02-11-facilities.md)
11-
- [Time](./ch02-20-time.md)
12-
- [Storage](./ch02-100-storage.md)
5+
- [Basics](./basics.md)
6+
- [Ware Types](./basics/wares.md)
7+
- [Buildings](./basics/buildings.md)
8+
- [Facilities](./basics/facilities.md)
9+
- [Time](./basics/time.md)
10+
- [Storage](./basics/storage.md)
11+
- [Ship Types](./basics/ships.md)
12+
- [Ship Artillery](./basics/ship-artillery.md)
1313
- [Operations](./0010-operations/0000.md)
1414
- [Scheduled Tasks](./scheduled-tasks/0000.md)
1515
- [Update Shipyard Experience](./scheduled-tasks/0006-update-shipyard-experience.md)
@@ -44,6 +44,7 @@
4444
- [Market Hall Production of Town](./bugs/market-hall-production-town.md)
4545
- [Siege Beggar Satisfaction Bonus](./bugs/siege-beggar-satisfaction-bonus.md)
4646
- [Damage to Offside Ship Artillery](./bugs/damage-to-offside-ship-artillery.md)
47+
- [Invulnerable Ship Artillery Slots](./bugs/invulnerable-ship-artillery-slots.md)
4748
- [Patches](./0035-patches/0000.md)
4849
- [Increase Alderman "Found Settlement" Mission Limit](./0035-patches/0001-found-settlement-limit.md)
4950
- [Render All Ships](./0035-patches/0002-render-all-ships.md)
File renamed without changes.
File renamed without changes.
File renamed without changes.
113 KB
Loading
Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Ship Weapon Types
1+
# Ship Artillery
22
Ship Weapons are represented by the following enum:
33
```rust
44
pub enum ShipWeaponId {
@@ -12,7 +12,7 @@ pub enum ShipWeaponId {
1212
```
1313
Cutlasses are not ship weapons.
1414

15-
## Ship Weapon Scaling
15+
## Ship Artillery Scaling
1616
The amounts P3 displays in-game are not the values the game uses under the hood.
1717
Every ship weapon has a scaling factor, through which the game divides the actual values.
1818

@@ -26,3 +26,25 @@ ShipWeaponId::LargeBallista => 2000
2626
ShipWeaponId::Bombard => 2000
2727
ShipWeaponId::Cannon => 1000
2828
```
29+
30+
## Ship Artillery Slots
31+
A ship's artillery slots are filled with the following enum:
32+
```c
33+
enum ship_artillery_slot : unsigned __int8
34+
{
35+
ship_artillery_slot_small_catapult = 0u,
36+
ship_artillery_slot_small_ballista = 1u,
37+
ship_artillery_slot_large_catapult = 2u,
38+
ship_artillery_slot_large_ballista = 3u,
39+
ship_artillery_slot_bombard = 4u,
40+
ship_artillery_slot_cannon = 5u,
41+
ship_artillery_slot_large_neighbor = 6u,
42+
ship_artillery_slot_unavailable = 7u,
43+
ship_artillery_slot_empty = 255u,
44+
};
45+
```
46+
47+
The slots are indexed as indicated here:
48+
<p style="text-align:center">
49+
<img src="ship-artillery-slots.png">
50+
</p>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)