Skip to content

Commit

Permalink
Allow changing WU field state from default profile (#1049)
Browse files Browse the repository at this point in the history
It's a bit confusing that the "Walkup friendly" dropdown does nothing if
you're in the default profile. We could disable the dropdown, but let's
just take the easier route and allow people to change the field.
  • Loading branch information
Meorawr authored Jul 20, 2024
1 parent 2e87fbe commit 03952a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions totalRP3/Core/Player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ end

local function ShouldAllowFieldModification(player, subtableName, fieldName)
return (subtableName == "character" and fieldName == "RP")
or (subtableName == "character" and fieldName == "WU")
or (not player:IsProfileDefault());
end

Expand Down

0 comments on commit 03952a1

Please sign in to comment.