Redefine difficulty levels
Bug #1516785 reported by
TiborB
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Well, I suggest renaming current AI modes to easy/moderate/
F.e. easy mode of barbarians would impose these limitations:
farms: 2
wood hardener: 1
battlearena: 1
trainingcamp: 0
This would be implemented via ai_hints section for init.lua for each buildings and I would modify the current AI - the change would be quite simple and would do no harm to current AI - aggressive/strong mode would be inaffected of course.
Of course there might be good objection that this would not scalle well for big maps
Opinions welcomed
Related forum threads:
Related branches
lp://staging/~widelands-dev/widelands/ai_level_names
- Widelands Developers: Pending requested
-
Diff: 703 lines (+116/-98)32 files modifiedcampaigns/bar02.wmf/player_names (+3/-3)
maps/The Green Plateau.wmf/player_names (+3/-3)
maps/Trident of Fire.wmf/player_names (+5/-5)
scripting/widelands/multiplayer_help.lua (+1/-1)
src/ai/ai_hints.cc (+2/-2)
src/ai/ai_hints.h (+5/-5)
src/ai/computer_player.cc (+7/-3)
src/ai/computer_player.h (+2/-0)
src/ai/defaultai.cc (+14/-14)
src/ai/defaultai.h (+21/-15)
src/wui/multiplayersetupgroup.cc (+8/-4)
src/wui/playerdescrgroup.cc (+5/-3)
test/maps/lua_testsuite.wmf/player_names (+2/-2)
tribes/buildings/productionsites/atlanteans/sawmill/init.lua (+2/-2)
tribes/buildings/productionsites/atlanteans/smelting_works/init.lua (+2/-2)
tribes/buildings/productionsites/atlanteans/smokery/init.lua (+2/-2)
tribes/buildings/productionsites/atlanteans/weaving_mill/init.lua (+2/-2)
tribes/buildings/productionsites/barbarians/lime_kiln/init.lua (+2/-2)
tribes/buildings/productionsites/barbarians/smelting_works/init.lua (+2/-2)
tribes/buildings/productionsites/barbarians/wood_hardener/init.lua (+2/-2)
tribes/buildings/productionsites/empire/brewery/init.lua (+2/-2)
tribes/buildings/productionsites/empire/sawmill/init.lua (+2/-2)
tribes/buildings/productionsites/empire/smelting_works/init.lua (+2/-2)
tribes/buildings/productionsites/empire/stonemasons_house/init.lua (+2/-2)
tribes/buildings/productionsites/empire/winery/init.lua (+2/-2)
tribes/buildings/trainingsites/atlanteans/dungeon/init.lua (+2/-2)
tribes/buildings/trainingsites/atlanteans/labyrinth/init.lua (+2/-2)
tribes/buildings/trainingsites/barbarians/battlearena/init.lua (+2/-2)
tribes/buildings/trainingsites/barbarians/trainingcamp/init.lua (+2/-2)
tribes/buildings/trainingsites/empire/arena/init.lua (+2/-2)
tribes/buildings/trainingsites/empire/colosseum/init.lua (+2/-2)
tribes/buildings/trainingsites/empire/trainingcamp/init.lua (+2/-2)
lp://staging/~widelands-dev/widelands/ai_differentiation
- GunChleoc: Approve
-
Diff: 877 lines (+161/-107)24 files modifieddata/ai/ai_input_1.wai (+9/-9)
data/ai/ai_input_2.wai (+11/-11)
data/ai/ai_input_3.wai (+14/-14)
data/ai/ai_input_4.wai (+12/-12)
data/tribes/buildings/productionsites/atlanteans/blackroot_farm/init.lua (+3/-1)
data/tribes/buildings/productionsites/atlanteans/farm/init.lua (+3/-1)
data/tribes/buildings/productionsites/atlanteans/fishers_house/init.lua (+3/-1)
data/tribes/buildings/productionsites/atlanteans/foresters_house/init.lua (+3/-1)
data/tribes/buildings/productionsites/atlanteans/sawmill/init.lua (+1/-1)
data/tribes/buildings/productionsites/barbarians/farm/init.lua (+3/-1)
data/tribes/buildings/productionsites/barbarians/fishers_hut/init.lua (+3/-1)
data/tribes/buildings/productionsites/barbarians/hunters_hut/init.lua (+3/-1)
data/tribes/buildings/productionsites/barbarians/rangers_hut/init.lua (+3/-1)
data/tribes/buildings/productionsites/empire/bakery/init.lua (+3/-1)
data/tribes/buildings/productionsites/empire/farm/init.lua (+3/-1)
data/tribes/buildings/productionsites/empire/foresters_house/init.lua (+3/-1)
data/tribes/buildings/productionsites/empire/sawmill/init.lua (+1/-1)
data/tribes/buildings/productionsites/empire/sheepfarm/init.lua (+3/-1)
data/tribes/buildings/productionsites/empire/vineyard/init.lua (+4/-1)
src/ai/ai_help_structs.cc (+33/-13)
src/ai/ai_help_structs.h (+1/-3)
src/ai/defaultai.cc (+32/-29)
src/ai/defaultai.h (+0/-1)
src/ai/defaultai_warfare.cc (+7/-0)
Changed in widelands: | |
milestone: | none → build19-rc1 |
Changed in widelands: | |
milestone: | build19-rc1 → build20-rc1 |
To post a comment you must log in.
Maybe the limitations could be a factor that changes with map size?