game-village-politics-backend/config/game/quests.php

131 lines
5.7 KiB
PHP
Raw Normal View History

<?php
/*
* The quest book: parallel lines of quests a player works through in order. A line
* shows its first unclaimed quest; claiming it pays the reward into the village the
* player is looking at and opens the next one.
*
* Goals:
* ['building', type, level] a building of that type at that level in any village
* ['instances', type, count] that many buildings of one type in one village
* ['counter', key, count, hint] something done that often (Quests::bump keys);
* hint names the client screen it points at: overview, recruit, rally, workforce, map, reports
*
* Titles and story texts live in the client's i18n (quests.<key>.title|text).
*/
return [
// Every building level a player reaches for the first time (per building type, in
// any village) pays back this share of what that order cost.
'level_reward_share' => 0.2,
'lines' => [
'construction' => [
'hq_2' => [
'goals' => [['building', 'headquarters', 2]],
'reward' => ['wood' => 120, 'clay' => 120, 'iron' => 100],
],
'storage_farm_2' => [
'goals' => [['building', 'storage', 2], ['building', 'farm', 2]],
'reward' => ['wood' => 150, 'clay' => 150, 'iron' => 150],
],
'resource_camps' => [
'goals' => [['building', 'timber_camp', 1], ['building', 'clay_pit', 1], ['building', 'iron_mine', 1]],
'reward' => ['wood' => 200, 'clay' => 200, 'iron' => 150],
],
'camps_3' => [
'goals' => [['building', 'timber_camp', 3], ['building', 'clay_pit', 3], ['building', 'iron_mine', 3]],
'reward' => ['wood' => 400, 'clay' => 400, 'iron' => 300],
],
'hq_3' => [
'goals' => [['building', 'headquarters', 3]],
'reward' => ['wood' => 400, 'clay' => 350, 'iron' => 300],
],
'storage_farm_5' => [
'goals' => [['building', 'storage', 5], ['building', 'farm', 5]],
'reward' => ['wood' => 800, 'clay' => 800, 'iron' => 700],
],
'hq_5' => [
'goals' => [['building', 'headquarters', 5]],
'reward' => ['wood' => 1200, 'clay' => 1200, 'iron' => 1000],
],
'camps_8' => [
'goals' => [['building', 'timber_camp', 8], ['building', 'clay_pit', 8], ['building', 'iron_mine', 6]],
'reward' => ['wood' => 1500, 'clay' => 1500, 'iron' => 1500],
],
],
'army' => [
'barracks' => [
'goals' => [['building', 'barracks', 1]],
'reward' => ['wood' => 250, 'clay' => 220, 'iron' => 120],
],
'first_spears' => [
'goals' => [['counter', 'recruited.spear', 5, 'recruit']],
'reward' => ['wood' => 250, 'clay' => 150, 'iron' => 50],
],
'rally_point' => [
'goals' => [['building', 'rally_point', 1]],
'reward' => ['wood' => 100, 'clay' => 100, 'iron' => 100],
],
'first_raid' => [
'goals' => [['counter', 'attacks.barbarian', 1, 'rally']],
'reward' => ['wood' => 300, 'clay' => 300, 'iron' => 300],
],
'wall_3' => [
'goals' => [['building', 'wall', 3]],
'reward' => ['wood' => 300, 'clay' => 400, 'iron' => 150],
],
'barracks_3' => [
'goals' => [['building', 'barracks', 3]],
'reward' => ['wood' => 600, 'clay' => 550, 'iron' => 400],
],
'stable' => [
'goals' => [['building', 'stable', 1]],
'reward' => ['wood' => 700, 'clay' => 600, 'iron' => 600],
],
'first_scouts' => [
'goals' => [['counter', 'scouts.sent', 1, 'rally']],
'reward' => ['wood' => 500, 'clay' => 500, 'iron' => 500],
],
],
// What makes this game different from Die Stämme: names, staffing, a second
// instance of a building, the levy.
'village' => [
'rename' => [
'goals' => [['counter', 'village.renamed', 1, 'overview']],
'reward' => ['wood' => 60, 'clay' => 60, 'iron' => 60],
],
'priority' => [
'goals' => [['counter', 'priority.set', 1, 'workforce']],
'reward' => ['wood' => 100, 'clay' => 100, 'iron' => 100],
],
'look_around' => [
'goals' => [['counter', 'map.viewed', 1, 'map']],
'reward' => ['wood' => 100, 'clay' => 100, 'iron' => 80],
],
'hiding_place' => [
'goals' => [['building', 'hiding_place', 1]],
'reward' => ['wood' => 120, 'clay' => 120, 'iron' => 120],
],
'second_camp' => [
'goals' => [['instances', 'timber_camp', 2]],
'reward' => ['wood' => 250, 'clay' => 300, 'iron' => 200],
],
'read_report' => [
'goals' => [['counter', 'reports.read', 1, 'reports']],
'reward' => ['wood' => 150, 'clay' => 150, 'iron' => 150],
],
'levy' => [
'goals' => [['counter', 'levy.called', 1, 'recruit']],
'reward' => ['wood' => 200, 'clay' => 200, 'iron' => 200],
],
'second_farm' => [
'goals' => [['instances', 'farm', 2]],
'reward' => ['wood' => 400, 'clay' => 400, 'iron' => 300],
],
],
],
];