MultiServer/WebHost: rename all references to forfeit and deprecate it (#1243)

* Webhost: rename all references to forfeit and deprecate it

* needed some renames in multiserver for all the commands to function

* remove forfeit commands

* support forfeit_mode for clients

* rename `forfeit_player` to `release_player`
This commit is contained in:
alwaysintreble
2023-01-02 12:29:21 -06:00
committed by GitHub
parent d899e918b4
commit 72fa19ee1f
4 changed files with 48 additions and 54 deletions

View File

@@ -33,7 +33,7 @@ def get_meta(options_source: dict) -> dict:
server_options = {
"hint_cost": int(options_source.get("hint_cost", 10)),
"forfeit_mode": options_source.get("forfeit_mode", "goal"),
"release_mode": options_source.get("release_mode", "goal"),
"remaining_mode": options_source.get("remaining_mode", "disabled"),
"collect_mode": options_source.get("collect_mode", "disabled"),
"item_cheat": bool(int(options_source.get("item_cheat", 1))),

View File

@@ -40,20 +40,20 @@
<tbody>
<tr>
<td>
<label for="forfeit_mode">Forfeit Permission:
<span class="interactive" data-tooltip="A forfeit releases all remaining items from the locations in your world.">
<label for="release_mode">Release Permission:
<span class="interactive" data-tooltip="Permissions on when players are able to release all remaining items from their world.">
(?)
</span>
</label>
</td>
<td>
<select name="forfeit_mode" id="forfeit_mode">
<select name="release_mode" id="forfeit_mode">
<option value="auto">Automatic on goal completion</option>
<option value="goal">Allow !forfeit after goal completion</option>
<option value="goal">Allow !release after goal completion</option>
<option value="auto-enabled">
Automatic on goal completion and manual !forfeit
Automatic on goal completion and manual !release
</option>
<option value="enabled">Manual !forfeit</option>
<option value="enabled">Manual !release</option>
<option value="disabled">Disabled</option>
</select>
</td>
@@ -62,7 +62,7 @@
<tr>
<td>
<label for="collect_mode">Collect Permission:
<span class="interactive" data-tooltip="A collect releases all of your remaining items to you from across the multiworld.">
<span class="interactive" data-tooltip="Permissions on when players are able to collect all their remaining items from across the multiworld.">
(?)
</span>
</label>