Commit Graph

39 Commits

Author SHA1 Message Date
Tom Stellard 2100bc8dc5 Fix bug with player attributes being updated too often
Attributes like age, contract length, and health were being updated
multiple times per round for players on teams in cups.

(cherry picked from commit 05061dd36dc3ec13b3b96fbe81e7b151be60f4b2)
2022-01-25 16:38:05 -08:00
Tom Stellard 25d9880da4 Generate a 'pre-history' for cups
We know generate cup results for each cup before starting the game.
This allows cups to select last year's winner without having to
special case cup selection for the first season.
2021-07-27 14:41:40 -04:00
Tom Stellard dd71c31eda Refactor cup_load_choose_team_generate()
Updates its signature to match cup_load_choose_team().
2021-07-27 14:41:40 -04:00
Tom Stellard 3e4ead3aae Reset all cups at the beginning of each season
This fixes a bug in league fixture scheduling where league matches would
be scheduled around cup matches from the previous season.  This caused
league matches to be scheduled in later week rounds which in some cases
caused these matches to not be played.
2021-07-27 14:41:40 -04:00
Tom Stellard ac4d0fc546 Use cup history for self-referential cups 2021-07-27 14:41:40 -04:00
Tom Stellard b126786553 Add helper cup_choose_team_compute_{start,end}_idx helper functions 2021-07-27 14:41:40 -04:00
gyboth 9d67ab30bd Fixed the horses problem. 2009-01-11 14:51:12 +00:00
gyboth c75b4f1327 Def system changes, cup round names. 2009-01-04 10:53:09 +00:00
gyboth ebf191cc2f Cup fixture scheduling. 2009-01-03 11:24:00 +00:00
gyboth 355a8b4f4e Def system changes. 2008-12-28 15:44:12 +00:00
gyboth 2cf0e416ee Corrected cup delay. 2008-12-22 11:20:16 +00:00
gyboth 945c4d1093 Added league properties and changed league active status to property. 2008-11-24 11:16:36 +00:00
gyboth b3d36c7a66 Added cup fixture checking. 2008-11-23 15:06:00 +00:00
gyboth d0c720ff8c Cup choose team cleanup; skip_group_check added. 2008-11-18 18:32:37 +00:00
gyboth 8b539e28fe "Def system improvements." 2006-06-30 13:24:50 +00:00
gyboth 86aaeb8f99 "Cup round delay added." 2006-06-29 16:06:52 +00:00
gyboth 6f61b20f96 "Minor bugfix in query_cup_begins." 2005-11-26 16:52:51 +00:00
gyboth fa0b06f39d "Randomise teams option added." 2005-10-20 15:45:00 +00:00
gyboth 82a5b05deb "Cup teams loaded all at once." 2005-08-15 16:25:49 +00:00
gyboth 7e4f427be2 "Prom_rel changes." 2005-08-14 19:03:11 +00:00
gyboth f26d18bf3f "Prom games improvements, cup success compare improvement." 2005-06-25 14:09:37 +00:00
gyboth 64c34275b8 "Segfixes." 2005-06-17 12:57:05 +00:00
gyboth 13cfd155a9 "Fixes." 2005-06-08 17:43:28 +00:00
gyboth da1c972577 "Fixes, intercont. cup." 2005-06-03 07:45:09 +00:00
gyboth 4fb13a6a8c "Cup highlight." 2005-05-28 14:34:14 +00:00
gyboth c99435c214 "Hide property for cups." 2005-05-25 17:58:04 +00:00
gyboth 71d7ba835b "Added scottish definition. Minor improvements." 2005-05-21 09:18:25 +00:00
gyboth c4d40f55b6 Yet another cup system change. 2005-05-08 17:56:26 +00:00
gyboth 745977466d Cup structure changes. 2005-05-06 16:35:19 +00:00
gyboth 752adb16e6 Minor fixes. 2005-05-01 10:16:14 +00:00
gyboth 37f9b5ebdd Tables attached to cup rounds (not the cups themselves). Cups with round robin as last round allowed. 2005-04-22 15:17:39 +00:00
gyboth c852e415c3 User histories. 2005-04-16 07:46:04 +00:00
gyboth fd6e42af8e Promotion games, supercups (phew). 2005-04-14 19:07:25 +00:00
gyboth 903288474a Season end. 2005-04-13 13:01:59 +00:00
gyboth dfe66b5180 Fixture display. 2005-03-14 17:47:27 +00:00
gyboth 7e07d74abd Made some progress; removed editor gui. 2005-03-03 12:46:48 +00:00
gyboth 993e7b6ba2 Live game can be tested a bit now. 2005-01-09 20:21:22 +00:00
gyboth be3b94742f Finished loading of leagues and cups and generating of teams. 2004-12-30 16:48:19 +00:00
gyboth ba51e1a908 Added new struct style and cup struct. 2004-12-23 20:43:43 +00:00