1 /**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
18 #endif /* __cplusplus */
20 #define RULESET_CAPABILITIES_BASE "+Freeciv-ruleset-Devel-2017.Jan.02"
22 #define RULESET_CAPABILITIES RULESET_CAPABILITIES_BASE " +web-compatible"
23 #else /* FREECIV_WEB */
24 #define RULESET_CAPABILITIES RULESET_CAPABILITIES_BASE
25 #endif /* FREECIV_WEB */
27 * Ruleset capabilities acceptable to this program:
29 * +Freeciv-3.0-ruleset
30 * - basic ruleset format for Freeciv versions 3.0.x; required
32 * +Freeciv-tilespec-Devel-YYYY.MMM.DD
33 * - ruleset of the development version at the given data
39 bool load_rulesets(const char *restore
, bool compat_mode
,
40 bool act
, bool buffer_script
);
41 bool reload_rulesets_settings(void);
42 void send_rulesets(struct conn_list
*dest
);
44 void rulesets_deinit(void);
46 void ruleset_error_real(const char *file
, const char *function
,
47 int line
, enum log_level level
,
48 const char *format
, ...)
49 fc__attribute((__format__ (__printf__
, 5, 6)));
51 #define ruleset_error(level, format, ...) \
52 if (log_do_output_for_level(level)) { \
53 ruleset_error_real(__FILE__, __FUNCTION__, __FC_LINE__, \
54 level, format, ## __VA_ARGS__); \
57 char *get_script_buffer(void);
58 char *get_parser_buffer(void);
60 /* Default ruleset values that are not settings (in game.h) */
62 #define GAME_DEFAULT_ADDTOSIZE 9
63 #define GAME_DEFAULT_CHANGABLE_TAX TRUE
64 #define GAME_DEFAULT_VISION_REVEAL_TILES FALSE
65 #define GAME_DEFAULT_NATIONALITY FALSE
66 #define GAME_DEFAULT_CONVERT_SPEED 50
67 #define GAME_DEFAULT_DISASTER_FREQ 10
68 #define GAME_DEFAULT_ACH_UNIQUE TRUE
69 #define GAME_DEFAULT_ACH_VALUE 1
70 #define RS_DEFAULT_MUUK_FOOD_WIPE TRUE
71 #define RS_DEFAULT_MUUK_GOLD_WIPE TRUE
72 #define RS_DEFAULT_MUUK_SHIELD_WIPE FALSE
73 #define RS_DEFAULT_TECH_STEAL_HOLES TRUE
74 #define RS_DEFAULT_TECH_TRADE_HOLES TRUE
75 #define RS_DEFAULT_TECH_TRADE_LOSS_HOLES TRUE
76 #define RS_DEFAULT_TECH_PARASITE_HOLES TRUE
77 #define RS_DEFAULT_TECH_LOSS_HOLES TRUE
78 #define RS_DEFAULT_PYTHAGOREAN_DIAGONAL FALSE
80 #define RS_DEFAULT_GOLD_UPKEEP_STYLE "City"
81 #define RS_DEFAULT_TECH_COST_STYLE "Civ I|II"
82 #define RS_DEFAULT_TECH_LEAKAGE "None"
83 #define RS_DEFAULT_TECH_UPKEEP_STYLE "None"
85 #define RS_DEFAULT_CULTURE_VIC_POINTS 1000
86 #define RS_DEFAULT_CULTURE_VIC_LEAD 300
87 #define RS_DEFAULT_CULTURE_MIGRATION_PML 50
89 #define RS_DEFAULT_EXTRA_APPEARANCE 15
90 #define RS_DEFAULT_EXTRA_DISAPPEARANCE 15
94 #endif /* __cplusplus */
96 #endif /* FC__RULESET_H */