Commit 7b1be28
committed
Change pause special character behavior (\p) to allow multiplications instead of having to spam it.
Adds a parser to any numbers after a detected \p for pause chat message, matches it upto a given max to be multiplied to a given base const. (The regex will limit this to 1000 regardless, but the const is hard-coded either way.). ordered them according to the pattern in courtroom.h but it would be nicer if they were not separated.
Also skips by the given amount of characters by calculating it via the text pos, so \p20 would skip 4, \p200 would skip 5, etc.
Currently technically silently fails if the user tries doing -1 or \p50000 or so, so it spits out any numbers beyond the initial 4 digits to at least indicate that.1 parent 54afcee commit 7b1be28
2 files changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3506 | 3506 | | |
3507 | 3507 | | |
3508 | 3508 | | |
| 3509 | + | |
| 3510 | + | |
| 3511 | + | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
3509 | 3534 | | |
3510 | 3535 | | |
3511 | 3536 | | |
| |||
3723 | 3748 | | |
3724 | 3749 | | |
3725 | 3750 | | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
3726 | 3757 | | |
3727 | 3758 | | |
3728 | 3759 | | |
| |||
4201 | 4232 | | |
4202 | 4233 | | |
4203 | 4234 | | |
| 4235 | + | |
4204 | 4236 | | |
4205 | 4237 | | |
4206 | 4238 | | |
| |||
4420 | 4452 | | |
4421 | 4453 | | |
4422 | 4454 | | |
| 4455 | + | |
| 4456 | + | |
| 4457 | + | |
4423 | 4458 | | |
4424 | 4459 | | |
4425 | 4460 | | |
| |||
4443 | 4478 | | |
4444 | 4479 | | |
4445 | 4480 | | |
4446 | | - | |
| 4481 | + | |
4447 | 4482 | | |
4448 | 4483 | | |
4449 | 4484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| 381 | + | |
| 382 | + | |
381 | 383 | | |
382 | 384 | | |
383 | 385 | | |
| |||
450 | 452 | | |
451 | 453 | | |
452 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
453 | 460 | | |
454 | 461 | | |
455 | 462 | | |
| |||
0 commit comments