36#define SPECENUM_NAME effect_type
37#define SPECENUM_VALUE0 EFT_TECH_PARASITE
38#define SPECENUM_VALUE0NAME "Tech_Parasite"
39#define SPECENUM_VALUE1 EFT_AIRLIFT
40#define SPECENUM_VALUE1NAME "Airlift"
41#define SPECENUM_VALUE2 EFT_ANY_GOVERNMENT
42#define SPECENUM_VALUE2NAME "Any_Government"
43#define SPECENUM_VALUE3 EFT_CAPITAL_CITY
44#define SPECENUM_VALUE3NAME "Capital_City"
45#define SPECENUM_VALUE4 EFT_ENABLE_NUKE
46#define SPECENUM_VALUE4NAME "Enable_Nuke"
47#define SPECENUM_VALUE5 EFT_ENABLE_SPACE
48#define SPECENUM_VALUE5NAME "Enable_Space"
49#define SPECENUM_VALUE6 EFT_SPECIALIST_OUTPUT
50#define SPECENUM_VALUE6NAME "Specialist_Output"
51#define SPECENUM_VALUE7 EFT_OUTPUT_BONUS
52#define SPECENUM_VALUE7NAME "Output_Bonus"
53#define SPECENUM_VALUE8 EFT_OUTPUT_BONUS_2
54#define SPECENUM_VALUE8NAME "Output_Bonus_2"
56#define SPECENUM_VALUE9 EFT_OUTPUT_ADD_TILE
57#define SPECENUM_VALUE9NAME "Output_Add_Tile"
59#define SPECENUM_VALUE10 EFT_OUTPUT_INC_TILE
60#define SPECENUM_VALUE10NAME "Output_Inc_Tile"
62#define SPECENUM_VALUE11 EFT_OUTPUT_PER_TILE
63#define SPECENUM_VALUE11NAME "Output_Per_Tile"
64#define SPECENUM_VALUE12 EFT_OUTPUT_WASTE_PCT
65#define SPECENUM_VALUE12NAME "Output_Waste_Pct"
66#define SPECENUM_VALUE13 EFT_FORCE_CONTENT
67#define SPECENUM_VALUE13NAME "Force_Content"
69#define SPECENUM_VALUE14 EFT_GIVE_IMM_TECH
70#define SPECENUM_VALUE14NAME "Give_Imm_Tech"
71#define SPECENUM_VALUE15 EFT_GROWTH_FOOD
72#define SPECENUM_VALUE15NAME "Growth_Food"
73#define SPECENUM_VALUE16 EFT_SHRINK_FOOD
74#define SPECENUM_VALUE16NAME "Shrink_Food"
75#define SPECENUM_VALUE17 EFT_HAVE_EMBASSIES
76#define SPECENUM_VALUE17NAME "Have_Embassies"
77#define SPECENUM_VALUE18 EFT_MAKE_CONTENT
78#define SPECENUM_VALUE18NAME "Make_Content"
79#define SPECENUM_VALUE19 EFT_MAKE_CONTENT_MIL
80#define SPECENUM_VALUE19NAME "Make_Content_Mil"
81#define SPECENUM_VALUE20 EFT_MAKE_CONTENT_MIL_PER
82#define SPECENUM_VALUE20NAME "Make_Content_Mil_Per"
84#define SPECENUM_VALUE21 EFT_MAKE_HAPPY
85#define SPECENUM_VALUE21NAME "Make_Happy"
86#define SPECENUM_VALUE22 EFT_NO_ANARCHY
87#define SPECENUM_VALUE22NAME "No_Anarchy"
88#define SPECENUM_VALUE23 EFT_NUKE_PROOF
89#define SPECENUM_VALUE23NAME "Nuke_Proof"
93#define SPECENUM_VALUE24 EFT_POLLU_POP_PCT
94#define SPECENUM_VALUE24NAME "Pollu_Pop_Pct"
95#define SPECENUM_VALUE25 EFT_POLLU_POP_PCT_2
96#define SPECENUM_VALUE25NAME "Pollu_Pop_Pct_2"
98#define SPECENUM_VALUE26 EFT_POLLU_PROD_PCT
99#define SPECENUM_VALUE26NAME "Pollu_Prod_Pct"
101#define SPECENUM_VALUE27 EFT_REVEAL_CITIES
102#define SPECENUM_VALUE27NAME "Reveal_Cities"
103#define SPECENUM_VALUE28 EFT_REVEAL_MAP
104#define SPECENUM_VALUE28NAME "Reveal_Map"
106#define SPECENUM_VALUE29 EFT_INCITE_COST_PCT
107#define SPECENUM_VALUE29NAME "Incite_Cost_Pct"
108#define SPECENUM_VALUE30 EFT_SIZE_ADJ
109#define SPECENUM_VALUE30NAME "Size_Adj"
110#define SPECENUM_VALUE31 EFT_SIZE_UNLIMIT
111#define SPECENUM_VALUE31NAME "Size_Unlimit"
112#define SPECENUM_VALUE32 EFT_SS_STRUCTURAL
113#define SPECENUM_VALUE32NAME "SS_Structural"
114#define SPECENUM_VALUE33 EFT_SS_COMPONENT
115#define SPECENUM_VALUE33NAME "SS_Component"
116#define SPECENUM_VALUE34 EFT_SS_MODULE
117#define SPECENUM_VALUE34NAME "SS_Module"
118#define SPECENUM_VALUE35 EFT_SPY_RESISTANT
119#define SPECENUM_VALUE35NAME "Spy_Resistant"
120#define SPECENUM_VALUE36 EFT_MOVE_BONUS
121#define SPECENUM_VALUE36NAME "Move_Bonus"
122#define SPECENUM_VALUE37 EFT_UNIT_NO_LOSE_POP
123#define SPECENUM_VALUE37NAME "Unit_No_Lose_Pop"
124#define SPECENUM_VALUE38 EFT_UNIT_RECOVER
125#define SPECENUM_VALUE38NAME "Unit_Recover"
126#define SPECENUM_VALUE39 EFT_UPGRADE_UNIT
127#define SPECENUM_VALUE39NAME "Upgrade_Unit"
128#define SPECENUM_VALUE40 EFT_UPKEEP_FREE
129#define SPECENUM_VALUE40NAME "Upkeep_Free"
130#define SPECENUM_VALUE41 EFT_TECH_UPKEEP_FREE
131#define SPECENUM_VALUE41NAME "Tech_Upkeep_Free"
132#define SPECENUM_VALUE42 EFT_NO_UNHAPPY
133#define SPECENUM_VALUE42NAME "No_Unhappy"
134#define SPECENUM_VALUE43 EFT_VETERAN_BUILD
135#define SPECENUM_VALUE43NAME "Veteran_Build"
136#define SPECENUM_VALUE44 EFT_VETERAN_COMBAT
137#define SPECENUM_VALUE44NAME "Veteran_Combat"
138#define SPECENUM_VALUE45 EFT_HP_REGEN
139#define SPECENUM_VALUE45NAME "HP_Regen"
140#define SPECENUM_VALUE46 EFT_CITY_VISION_RADIUS_SQ
141#define SPECENUM_VALUE46NAME "City_Vision_Radius_Sq"
142#define SPECENUM_VALUE47 EFT_UNIT_VISION_RADIUS_SQ
143#define SPECENUM_VALUE47NAME "Unit_Vision_Radius_Sq"
145#define SPECENUM_VALUE48 EFT_DEFEND_BONUS
146#define SPECENUM_VALUE48NAME "Defend_Bonus"
147#define SPECENUM_VALUE49 EFT_TRADE_ROUTE_PCT
149#define SPECENUM_VALUE49NAME "Traderoute_Pct"
150#define SPECENUM_VALUE50 EFT_GAIN_AI_LOVE
151#define SPECENUM_VALUE50NAME "Gain_AI_Love"
152#define SPECENUM_VALUE51 EFT_TURN_YEARS
153#define SPECENUM_VALUE51NAME "Turn_Years"
154#define SPECENUM_VALUE52 EFT_SLOW_DOWN_TIMELINE
155#define SPECENUM_VALUE52NAME "Slow_Down_Timeline"
156#define SPECENUM_VALUE53 EFT_CIVIL_WAR_CHANCE
157#define SPECENUM_VALUE53NAME "Civil_War_Chance"
159#define SPECENUM_VALUE54 EFT_MIGRATION_PCT
160#define SPECENUM_VALUE54NAME "Migration_Pct"
162#define SPECENUM_VALUE55 EFT_EMPIRE_SIZE_BASE
163#define SPECENUM_VALUE55NAME "Empire_Size_Base"
165#define SPECENUM_VALUE56 EFT_EMPIRE_SIZE_STEP
166#define SPECENUM_VALUE56NAME "Empire_Size_Step"
167#define SPECENUM_VALUE57 EFT_MAX_RATES
168#define SPECENUM_VALUE57NAME "Max_Rates"
169#define SPECENUM_VALUE58 EFT_MARTIAL_LAW_EACH
170#define SPECENUM_VALUE58NAME "Martial_Law_Each"
171#define SPECENUM_VALUE59 EFT_MARTIAL_LAW_MAX
172#define SPECENUM_VALUE59NAME "Martial_Law_Max"
173#define SPECENUM_VALUE60 EFT_RAPTURE_GROW
174#define SPECENUM_VALUE60NAME "Rapture_Grow"
175#define SPECENUM_VALUE61 EFT_REVOLUTION_UNHAPPINESS
176#define SPECENUM_VALUE61NAME "Revolution_Unhappiness"
177#define SPECENUM_VALUE62 EFT_HAS_SENATE
178#define SPECENUM_VALUE62NAME "Has_Senate"
179#define SPECENUM_VALUE63 EFT_INSPIRE_PARTISANS
180#define SPECENUM_VALUE63NAME "Inspire_Partisans"
181#define SPECENUM_VALUE64 EFT_HAPPINESS_TO_GOLD
182#define SPECENUM_VALUE64NAME "Happiness_To_Gold"
184#define SPECENUM_VALUE65 EFT_FANATICS
185#define SPECENUM_VALUE65NAME "Fanatics"
186#define SPECENUM_VALUE66 EFT_NO_DIPLOMACY
187#define SPECENUM_VALUE66NAME "No_Diplomacy"
188#define SPECENUM_VALUE67 EFT_TRADE_REVENUE_BONUS
189#define SPECENUM_VALUE67NAME "Trade_Revenue_Bonus"
191#define SPECENUM_VALUE68 EFT_UNHAPPY_FACTOR
192#define SPECENUM_VALUE68NAME "Unhappy_Factor"
194#define SPECENUM_VALUE69 EFT_UPKEEP_FACTOR
195#define SPECENUM_VALUE69NAME "Upkeep_Factor"
197#define SPECENUM_VALUE70 EFT_UNIT_UPKEEP_FREE_PER_CITY
198#define SPECENUM_VALUE70NAME "Unit_Upkeep_Free_Per_City"
199#define SPECENUM_VALUE71 EFT_OUTPUT_WASTE
200#define SPECENUM_VALUE71NAME "Output_Waste"
201#define SPECENUM_VALUE72 EFT_OUTPUT_WASTE_BY_DISTANCE
202#define SPECENUM_VALUE72NAME "Output_Waste_By_Distance"
204#define SPECENUM_VALUE73 EFT_OUTPUT_PENALTY_TILE
205#define SPECENUM_VALUE73NAME "Output_Penalty_Tile"
206#define SPECENUM_VALUE74 EFT_OUTPUT_INC_TILE_CELEBRATE
207#define SPECENUM_VALUE74NAME "Output_Inc_Tile_Celebrate"
209#define SPECENUM_VALUE75 EFT_CITY_UNHAPPY_SIZE
210#define SPECENUM_VALUE75NAME "City_Unhappy_Size"
212#define SPECENUM_VALUE76 EFT_CITY_RADIUS_SQ
213#define SPECENUM_VALUE76NAME "City_Radius_Sq"
215#define SPECENUM_VALUE77 EFT_CITY_BUILD_SLOTS
216#define SPECENUM_VALUE77NAME "City_Build_Slots"
217#define SPECENUM_VALUE78 EFT_UPGRADE_PRICE_PCT
218#define SPECENUM_VALUE78NAME "Upgrade_Price_Pct"
220#define SPECENUM_VALUE79 EFT_VISIBLE_WALLS
221#define SPECENUM_VALUE79NAME "Visible_Walls"
222#define SPECENUM_VALUE80 EFT_TECH_COST_FACTOR
223#define SPECENUM_VALUE80NAME "Tech_Cost_Factor"
225#define SPECENUM_VALUE81 EFT_SHIELD2GOLD_FACTOR
226#define SPECENUM_VALUE81NAME "Shield2Gold_Factor"
227#define SPECENUM_VALUE82 EFT_TILE_WORKABLE
228#define SPECENUM_VALUE82NAME "Tile_Workable"
230#define SPECENUM_VALUE83 EFT_CITY_IMAGE
231#define SPECENUM_VALUE83NAME "City_Image"
232#define SPECENUM_VALUE84 EFT_IMPR_BUILD_COST_PCT
233#define SPECENUM_VALUE84NAME "Building_Build_Cost_Pct"
234#define SPECENUM_VALUE85 EFT_MAX_TRADE_ROUTES
235#define SPECENUM_VALUE85NAME "Max_Trade_Routes"
236#define SPECENUM_VALUE86 EFT_GOV_CENTER
237#define SPECENUM_VALUE86NAME "Gov_Center"
238#define SPECENUM_VALUE87 EFT_COMBAT_ROUNDS
239#define SPECENUM_VALUE87NAME "Combat_Rounds"
240#define SPECENUM_VALUE88 EFT_IMPR_BUY_COST_PCT
241#define SPECENUM_VALUE88NAME "Building_Buy_Cost_Pct"
242#define SPECENUM_VALUE89 EFT_UNIT_BUILD_COST_PCT
243#define SPECENUM_VALUE89NAME "Unit_Build_Cost_Pct"
244#define SPECENUM_VALUE90 EFT_UNIT_BUY_COST_PCT
245#define SPECENUM_VALUE90NAME "Unit_Buy_Cost_Pct"
246#define SPECENUM_VALUE91 EFT_NOT_TECH_SOURCE
247#define SPECENUM_VALUE91NAME "Not_Tech_Source"
248#define SPECENUM_VALUE92 EFT_ENEMY_CITIZEN_UNHAPPY_PCT
249#define SPECENUM_VALUE92NAME "Enemy_Citizen_Unhappy_Pct"
250#define SPECENUM_VALUE93 EFT_IRRIGATION_PCT
251#define SPECENUM_VALUE93NAME "Irrigation_Pct"
252#define SPECENUM_VALUE94 EFT_MINING_PCT
253#define SPECENUM_VALUE94NAME "Mining_Pct"
254#define SPECENUM_VALUE95 EFT_OUTPUT_TILE_PUNISH_PCT
255#define SPECENUM_VALUE95NAME "Output_Tile_Punish_Pct"
256#define SPECENUM_VALUE96 EFT_UNIT_BRIBE_COST_PCT
257#define SPECENUM_VALUE96NAME "Unit_Bribe_Cost_Pct"
258#define SPECENUM_VALUE97 EFT_VICTORY
259#define SPECENUM_VALUE97NAME "Victory"
260#define SPECENUM_VALUE98 EFT_PERFORMANCE
261#define SPECENUM_VALUE98NAME "Performance"
262#define SPECENUM_VALUE99 EFT_HISTORY
263#define SPECENUM_VALUE99NAME "History"
264#define SPECENUM_VALUE100 EFT_NATION_PERFORMANCE
265#define SPECENUM_VALUE100NAME "National_Performance"
266#define SPECENUM_VALUE101 EFT_NATION_HISTORY
267#define SPECENUM_VALUE101NAME "National_History"
268#define SPECENUM_VALUE102 EFT_TURN_FRAGMENTS
269#define SPECENUM_VALUE102NAME "Turn_Fragments"
270#define SPECENUM_VALUE103 EFT_MAX_STOLEN_GOLD_PM
271#define SPECENUM_VALUE103NAME "Max_Stolen_Gold_Pm"
272#define SPECENUM_VALUE104 EFT_THIEFS_SHARE_PM
273#define SPECENUM_VALUE104NAME "Thiefs_Share_Pm"
274#define SPECENUM_VALUE105 EFT_RETIRE_PCT
275#define SPECENUM_VALUE105NAME "Retire_Pct"
276#define SPECENUM_VALUE106 EFT_ILLEGAL_ACTION_MOVE_COST
277#define SPECENUM_VALUE106NAME "Illegal_Action_Move_Cost"
278#define SPECENUM_VALUE107 EFT_HAVE_CONTACTS
279#define SPECENUM_VALUE107NAME "Have_Contacts"
280#define SPECENUM_VALUE108 EFT_CASUS_BELLI_CAUGHT
281#define SPECENUM_VALUE108NAME "Casus_Belli_Caught"
282#define SPECENUM_VALUE109 EFT_CASUS_BELLI_SUCCESS
283#define SPECENUM_VALUE109NAME "Casus_Belli_Success"
284#define SPECENUM_VALUE110 EFT_ACTION_ODDS_PCT
285#define SPECENUM_VALUE110NAME "Action_Odds_Pct"
286#define SPECENUM_VALUE111 EFT_BORDER_VISION
287#define SPECENUM_VALUE111NAME "Border_Vision"
288#define SPECENUM_VALUE112 EFT_STEALINGS_IGNORE
289#define SPECENUM_VALUE112NAME "Stealings_Ignore"
290#define SPECENUM_VALUE113 EFT_OUTPUT_WASTE_BY_REL_DISTANCE
291#define SPECENUM_VALUE113NAME "Output_Waste_By_Rel_Distance"
292#define SPECENUM_VALUE114 EFT_SABOTEUR_RESISTANT
293#define SPECENUM_VALUE114NAME "Building_Saboteur_Resistant"
294#define SPECENUM_VALUE115 EFT_UNIT_SLOTS
295#define SPECENUM_VALUE115NAME "Unit_Slots"
296#define SPECENUM_VALUE116 EFT_ATTACK_BONUS
297#define SPECENUM_VALUE116NAME "Attack_Bonus"
298#define SPECENUM_VALUE117 EFT_CONQUEST_TECH_PCT
299#define SPECENUM_VALUE117NAME "Conquest_Tech_Pct"
300#define SPECENUM_VALUE118 EFT_ACTION_SUCCESS_MOVE_COST
301#define SPECENUM_VALUE118NAME "Action_Success_Actor_Move_Cost"
302#define SPECENUM_VALUE119 EFT_ACTION_SUCCESS_TARGET_MOVE_COST
303#define SPECENUM_VALUE119NAME "Action_Success_Target_Move_Cost"
304#define SPECENUM_VALUE120 EFT_INFRA_POINTS
305#define SPECENUM_VALUE120NAME "Infra_Points"
306#define SPECENUM_VALUE121 EFT_FORTIFY_DEFENSE_BONUS
307#define SPECENUM_VALUE121NAME "Fortify_Defense_Bonus"
308#define SPECENUM_VALUE122 EFT_MAPS_STOLEN_PCT
309#define SPECENUM_VALUE122NAME "Maps_Stolen_Pct"
310#define SPECENUM_VALUE123 EFT_UNIT_SHIELD_VALUE_PCT
311#define SPECENUM_VALUE123NAME "Unit_Shield_Value_Pct"
312#define SPECENUM_VALUE124 EFT_CASUS_BELLI_COMPLETE
313#define SPECENUM_VALUE124NAME "Casus_Belli_Complete"
314#define SPECENUM_VALUE125 EFT_ILLEGAL_ACTION_HP_COST
315#define SPECENUM_VALUE125NAME "Illegal_Action_HP_Cost"
316#define SPECENUM_VALUE126 EFT_POPCOST_FREE
317#define SPECENUM_VALUE126NAME "Popcost_Free"
318#define SPECENUM_VALUE127 EFT_HEAL_UNIT_PCT
319#define SPECENUM_VALUE127NAME "Heal_Unit_Pct"
320#define SPECENUM_VALUE128 EFT_NUKE_BLAST_RADIUS_1_SQ
321#define SPECENUM_VALUE128NAME "Nuke_Blast_Radius_1_Sq"
322#define SPECENUM_VALUE129 EFT_BORDER_STRENGTH_PCT
323#define SPECENUM_VALUE129NAME "Border_Strength_Pct"
324#define SPECENUM_VALUE130 EFT_ACTION_RESIST_PCT
325#define SPECENUM_VALUE130NAME "Action_Resist_Pct"
326#define SPECENUM_VALUE131 EFT_OUTPUT_BONUS_ABSOLUTE
327#define SPECENUM_VALUE131NAME "Output_Bonus_Absolute"
328#define SPECENUM_VALUE132 EFT_MIN_HP_PCT
329#define SPECENUM_VALUE132NAME "Min_HP_Pct"
330#define SPECENUM_VALUE133 EFT_HP_REGEN_2
331#define SPECENUM_VALUE133NAME "HP_Regen_2"
332#define SPECENUM_VALUE134 EFT_TECH_PARASITE_PCT_MAX
333#define SPECENUM_VALUE134NAME "Tech_Parasite_Pct_Max"
335#define SPECENUM_VALUE135 EFT_HEALTH_PCT
336#define SPECENUM_VALUE135NAME "Health_Pct"
337#define SPECENUM_VALUE136 EFT_ACTIVITY_TIME
338#define SPECENUM_VALUE136NAME "Activity_Time"
339#define SPECENUM_VALUE137 EFT_SURPLUS_WASTE_PCT
340#define SPECENUM_VALUE137NAME "Surplus_Waste_Pct"
341#define SPECENUM_VALUE138 EFT_SURPLUS_WASTE_PCT_BY_REL_DISTANCE
342#define SPECENUM_VALUE138NAME "Surplus_Waste_Pct_By_Rel_Distance"
343#define SPECENUM_VALUE139 EFT_IMPR_UPKEEP_REDUCTION
344#define SPECENUM_VALUE139NAME "Impr_Upkeep_Reduction"
346#define SPECENUM_VALUE140 EFT_USER_EFFECT_1
347#define SPECENUM_VALUE140NAME "User_Effect_1"
348#define SPECENUM_VALUE141 EFT_USER_EFFECT_2
349#define SPECENUM_VALUE141NAME "User_Effect_2"
350#define SPECENUM_VALUE142 EFT_USER_EFFECT_3
351#define SPECENUM_VALUE142NAME "User_Effect_3"
352#define SPECENUM_VALUE143 EFT_USER_EFFECT_4
353#define SPECENUM_VALUE143NAME "User_Effect_4"
355#define SPECENUM_COUNT EFT_COUNT
358#define EFT_USER_EFFECT_LAST EFT_USER_EFFECT_4
360#define USER_EFFECT_NUMBER(eff) (eff - EFT_USER_EFFECT_1)
397 const struct player *other_player,
401#define SPECLIST_TAG effect
402#define SPECLIST_TYPE struct effect
404#define effect_list_iterate(effect_list, peffect) \
405 TYPED_LIST_ITERATE(struct effect, effect_list, peffect)
406#define effect_list_iterate_end LIST_ITERATE_END
458 const struct tile *ptile,
462 const struct tile *ptile,
475 const struct tile *ptile,
488 const struct player *pplayer,
489 enum effect_type effect_type);
491 const struct city *pcity,
493 enum effect_type effect_type);
497 const struct player *other_player,
498 enum effect_type effect_type);
500 const struct player *other_player,
501 enum effect_type effect_type,
507 enum effect_type effect_type);
509 enum effect_type effect_type,
512 const struct city *pcity,
513 enum effect_type effect_type,
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
void effect_remove(struct effect *peffect)
void recv_ruleset_effect(const struct packet_ruleset_effect *packet)
bool effect_universals_value_never_below(enum effect_type type, struct universal *unis, size_t n_unis, int min_value)
int get_tile_output_bonus(const struct city *pcity, const struct tile *ptile, const struct output_type *poutput, enum effect_type effect_type)
int get_player_output_bonus(const struct player *pplayer, const struct output_type *poutput, enum effect_type effect_type)
int get_city_specialist_output_bonus(const struct city *pcity, const struct specialist *pspecialist, const struct output_type *poutput, enum effect_type effect_type)
bool is_building_replaced(const struct city *pcity, const struct impr_type *pimprove, const enum req_problem_type prob_type)
int get_target_bonus_effects(struct effect_list *plist, const struct req_context *context, const struct player *other_player, enum effect_type effect_type)
int get_player_bonus_effects(struct effect_list *plist, const struct player *pplayer, enum effect_type effect_type)
bool iterate_effect_cache(iec_cb cb, void *data)
int get_city_bonus(const struct city *pcity, enum effect_type effect_type)
int get_current_construction_bonus(const struct city *pcity, enum effect_type effect_type, const enum req_problem_type prob_type)
int get_city_bonus_effects(struct effect_list *plist, const struct city *pcity, const struct output_type *poutput, enum effect_type effect_type)
double(* eft_value_filter_cb)(const struct effect *eft, const struct req_context *context, const struct player *other_player, void *data, int n_data)
int get_unit_vs_tile_bonus(const struct tile *ptile, const struct unit *punit, enum effect_type etype)
int get_unit_bonus(const struct unit *punit, enum effect_type effect_type)
double get_effect_expected_value(const struct req_context *context, const struct player *other_player, enum effect_type effect_type, eft_value_filter_cb weighter, void *data, int n_data) fc__attribute((nonnull(4)))
int get_city_output_bonus(const struct city *pcity, const struct output_type *poutput, enum effect_type effect_type)
int get_potential_improvement_bonus(const struct impr_type *pimprove, const struct city *pcity, enum effect_type effect_type, const enum req_problem_type prob_type, bool consider_multipliers)
void send_ruleset_cache(struct conn_list *dest)
void get_effect_req_text(const struct effect *peffect, char *buf, size_t buf_len)
bool(* iec_cb)(struct effect *, void *data)
int get_player_bonus(const struct player *plr, enum effect_type effect_type)
void ruleset_cache_free(void)
struct effect * effect_new(enum effect_type type, int value, struct multiplier *pmul)
int get_building_bonus(const struct city *pcity, const struct impr_type *building, enum effect_type effect_type)
int effect_value_from_universals(enum effect_type type, struct universal *unis, size_t n_unis)
int get_city_tile_output_bonus(const struct city *pcity, const struct tile *ptile, const struct output_type *poutput, enum effect_type effect_type)
void user_effect_ai_valued_set(enum effect_type tgt, enum effect_type valued_as)
struct effect * effect_copy(struct effect *old, enum effect_type override_type)
int effect_cumulative_max(enum effect_type type, struct universal *unis, size_t n_unis)
void effect_free(struct effect *peffect)
void ruleset_cache_init(void)
enum effect_type user_effect_ai_valued_as(enum effect_type)
int get_world_bonus(enum effect_type effect_type)
int effect_cumulative_min(enum effect_type type, struct universal *for_uni)
struct effect_list * get_effects(enum effect_type effect_type)
struct effect_list * get_req_source_effects(const struct universal *psource)
bool building_has_effect(const struct impr_type *pimprove, enum effect_type effect_type)
void effect_req_append(struct effect *peffect, struct requirement req)
int get_tile_bonus(const struct tile *ptile, enum effect_type effect_type)
int get_unittype_bonus(const struct player *pplayer, const struct tile *ptile, const struct unit_type *punittype, const struct action *paction, enum effect_type effect_type)
void get_effect_list_req_text(const struct effect_list *plist, struct astring *astr)
bool is_user_effect(enum effect_type eff)
int effect_value_will_make_positive(enum effect_type type)
struct multiplier * multiplier
struct effect::@23 rulesave
struct requirement_vector reqs
enum effect_type effect_type