Skip to content

Commit

Permalink
* CanWearAllMounts flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jprzimba committed Jan 26, 2025
1 parent 5f01640 commit 8d085af
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions data/XML/groups.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<flag hasfulllight="1" />
<flag allowidle="1" />
<flag notgainunjustified="1" />
<flag canwearallmounts="1" />
</flags>
</group>
<group id="5" name="community manager" access="1" maxdepotitems="0" maxvipentries="200" outfit="266">
Expand Down Expand Up @@ -109,6 +110,7 @@
<flag hasfulllight="1" />
<flag allowidle="1" />
<flag notgainunjustified="1" />
<flag canwearallmounts="1" />
</flags>
</group>
<group id="6" name="god" access="1" maxdepotitems="0" maxvipentries="200" outfit="302">
Expand Down Expand Up @@ -157,6 +159,7 @@
<flag hasfulllight="1" />
<flag allowidle="1" />
<flag notgainunjustified="1" />
<flag canwearallmounts="1" />
</flags>
</group>
<group id="7" name="game tester" access="0" maxdepotitems="0" maxvipentries="200">
Expand Down
1 change: 1 addition & 0 deletions data/scripts/talkactions/god/flags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ local PlayerFlags_t = {
["HasFullLight"] = HasFullLight,
["AllowIdle"] = AllowIdle,
["NotGainUnjustified"] = NotGainUnjustified,
["CanWearAllMounts"] = CanWearAllMounts,
}

local function sendValidKeys(player)
Expand Down
2 changes: 1 addition & 1 deletion markdowns/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### Features

- Added new attributes to outfits. Check `outfits.xml` for examples. ([Tryller](https://github.com/jprzimba))
- Added new flags: `CanMoveFromFar`, `HasFullLight`, `AllowIdle`, and `NotGainUnjustified`. ([Tryller](https://github.com/jprzimba))
- Added new flags: `CanMoveFromFar`, `HasFullLight`, `AllowIdle`, `CanWearAllMounts`, and `NotGainUnjustified`. ([Tryller](https://github.com/jprzimba))
- Added Vibrancy imbuement. ([pennaor](https://github.com/pennaor))

## Added files
Expand Down
2 changes: 1 addition & 1 deletion src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7415,7 +7415,7 @@ bool Player::untameMount(uint8_t mountId) {
}

bool Player::hasMount(const std::shared_ptr<Mount> &mount) const {
if (isAccessPlayer()) {
if (hasFlag(PlayerFlags_t::CanWearAllMounts)) {
return true;
}

Expand Down
1 change: 1 addition & 0 deletions src/utils/utils_definitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ enum class PlayerFlags_t : uint8_t {
HasFullLight,
AllowIdle,
NotGainUnjustified,
CanWearAllMounts,

// Must always be the last
FlagLast
Expand Down

0 comments on commit 8d085af

Please sign in to comment.