From 6413ff8c3d8eb482b086a0f9a78ed03354062c4a Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 18 Jan 2023 18:49:00 +0200 Subject: [PATCH 41/41] README.effects: Document maximum length of requirement vector See osdn #46451 Signed-off-by: Marko Lindqvist --- common/fc_types.h | 3 ++- doc/README.effects | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/fc_types.h b/common/fc_types.h index f52a506ab9..291cdd3f02 100644 --- a/common/fc_types.h +++ b/common/fc_types.h @@ -396,7 +396,8 @@ struct achievement; struct action; -/* Changing these will break network compatibility. */ +/* Changing these will break network compatibility. + * If changing MAX_NUM_REQS, also update user documentation in README.effects. */ #define SP_MAX 20 #define MAX_NUM_REQS 40 diff --git a/doc/README.effects b/doc/README.effects index f05f2980bb..3637fc9965 100644 --- a/doc/README.effects +++ b/doc/README.effects @@ -16,7 +16,7 @@ reqs = The text in the brackets is the entry name, which just has to be unique, but is otherwise not used. The type field tells Freeciv which effect you are -defining. The value is the effect's value, which depends on which effect it +defining. The value is the effect's value, which depends on which effect it is. The reqs table contain a list of requirements for this effect being in effect. You need to satisfy all requirements listed here for this effect to take effect in the game. Requirements with present = TRUE must be present, @@ -46,6 +46,8 @@ can be used if the help system's text is unclear or misleading, or if you want to describe the requirement in your own words. The 'quiet' field has no effect on the game rules. +Single requirement vector can have up to 40 requirements. + Requirement types and supported ranges ====================================== -- 2.39.0