mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
Solitaire: Tweak scoring for three-card draw mode
Currently, the player loses 100 points each time the waste stack is recycled. In three-card draw mode, it's standard to only lose 20 points after the third recycle event.
This commit is contained in:
parent
cf9094cf46
commit
0f80e9e4db
2 changed files with 30 additions and 1 deletions
|
@ -110,6 +110,7 @@ void Game::setup(Mode mode)
|
|||
|
||||
m_new_deck.clear();
|
||||
m_new_game_animation_pile = 0;
|
||||
m_passes_left_before_punishment = recycle_rules().passes_allowed_before_punishment;
|
||||
m_score = 0;
|
||||
update_score(0);
|
||||
|
||||
|
@ -182,7 +183,11 @@ void Game::mousedown_event(GUI::MouseEvent& event)
|
|||
stock.push(card);
|
||||
}
|
||||
|
||||
update_score(-100);
|
||||
if (m_passes_left_before_punishment == 0)
|
||||
update_score(recycle_rules().punishment);
|
||||
else
|
||||
--m_passes_left_before_punishment;
|
||||
|
||||
update(stock.bounding_box());
|
||||
} else {
|
||||
auto play_bounding_box = play.bounding_box();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue