1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-27 16:00:58 +01:00
phorge-arcanist/scripts
epriestley e9241dcb90 [Wilds] Make "arc anoid" system requirements more accurate
Summary:
Fixes T8693. Ref T13098. On a 30x15 terminal, the we can only fit "Score: X/12 * Deaths: Y" on the top line if both `X` and `Y` are less than 10, so they can render with a single character.

As soon as the player breaks more than 9 blocks or dies more than 9 times, we need an extra character to render the score. This causes an off-screen write to curses and crashes.

Raise the minimum requirement to 32 columns so we can render "12/12" and up to "99" deaths. Then, change the display logic to show "99" if you die more than 99 times.

(At this resolution we always generate a board with 12 blocks, even if the terminal is very very tall, so we don't need to deal with a case where the "Score" might read "101/200".)

Test Plan:
- Beat the game on a 32x15 terminal.
- Changed logic to award me 1000 deaths per actual death.
- Died on a 32x15 terminal.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13098, T8693

Differential Revision: https://secure.phabricator.com/D20085
2019-02-04 08:07:15 -08:00
..
daemon [Wilds] Remove libphutil 2018-09-21 16:38:53 -07:00
hgdaemon phtize some strings 2015-01-06 23:15:50 +11:00
init [Wilds] Remove libphutil 2018-09-21 16:38:53 -07:00
library [Wilds] Allow "arc liberate" to liberate itself again 2018-09-21 16:50:58 -07:00
repository Simplify diff exit code handling. 2015-12-13 02:35:07 -08:00
test [Wilds] Make more test cases (mostly related to the phutil -> arcanist move) pass 2018-10-01 16:36:12 -07:00
timezones [Wilds] Remove libphutil 2018-09-21 16:38:53 -07:00
utils [Wilds] Make more test cases (mostly related to the phutil -> arcanist move) pass 2018-10-01 16:36:12 -07:00
breakout.py [Wilds] Make "arc anoid" system requirements more accurate 2019-02-04 08:07:15 -08:00
build_xhpast.php [Wilds] Remove libphutil 2018-09-21 16:38:53 -07:00
update_compat_info.php [Wilds] Remove libphutil 2018-09-21 16:38:53 -07:00