Skip to content

Commit

Permalink
Block Scout Hints when disabled, update option wording
Browse files Browse the repository at this point in the history
  • Loading branch information
PoryGone committed Nov 30, 2024
1 parent b382412 commit 638be78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MultiServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
return

target_item, target_player, flags = ctx.locations[client.slot][location]
if create_as_hint:
if create_as_hint and self.ctx.hint_cost <= 100:
hints.extend(collect_hint_location_id(ctx, client.team, client.slot, location,
HintStatus.HINT_UNSPECIFIED))
locs.append(NetworkItem(target_item, location, target_player, flags))
Expand Down
2 changes: 1 addition & 1 deletion WebHostLib/templates/generate.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <h1>Generate Game{% if race %} (Race Mode){% endif %}</h1>
<select name="hint_cost" id="hint_cost">
{% for n in range(0, 110, 5) %}
<option {% if n == 10 %}selected="selected" {% endif %} value="{{ n }}">
{% if n > 100 %}Off{% else %}{{ n }}%{% endif %}
{% if n > 100 %}Disable Hints{% else %}{{ n }}%{% endif %}
</option>
{% endfor %}
</select>
Expand Down

0 comments on commit 638be78

Please sign in to comment.