-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrpg.yml
More file actions
executable file
·766 lines (528 loc) · 19.3 KB
/
rpg.yml
File metadata and controls
executable file
·766 lines (528 loc) · 19.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
---
name: RPG
# DB connect info
Model::DBIC:
schema_class: RPG::Schema
connect_info:
- dbi:mysql:game
- root
- password
- { AutoCommit: 1, mysql_connect_timeout: 12000 }
TestModel::DBIC:
schema_class: RPG::Schema
connect_info:
- dbi:mysql:game_test
- root
- 'megalmadic'
- { AutoCommit: 0 }
map_image_path: /images/map/
url_root: http://crownofconquest.com/
forum_url: http://forum.crownofconquest.com/index.php
static_path: http://crownofconquest.com/static
dojo_url: https://ajax.googleapis.com/ajax/libs/dojo/1.6.1
dojo_path: /dojo/dojo.xd.js
log_file_dir: __path_to(log/)__
data_file_path: __path_to(script/data/)__
smtp_server: localhost
send_email_from: mutant.nz@gmail.com
Log::Dispatch:
- class: File::Stamped
name: file1
min_level: debug
filename: __path_to(log/debug.log)__
mode: append
format: '[%d] [%p] (%P:%L) %m %n'
- class: File::Stamped
name: file2
min_level: error
filename: __path_to(log/error.log)__
mode: append
format: '[%d] [%p] %m %n'
# -------------------------------
# Game params
# -------------------------------
# ----- Ticker Params ------ #
# Default cron string for ticker action (mostly used by new day stuff)
default_cron_string: 5 4 * * *
# Spawning of creature orbs
creature_orb_cron_string: 35 */2 * * *
# Spawning / moving of creatures
creatures_cron_string: 20,50 * * * *
# Re-closing of dungeon doors
dungeon_doors_cron_string: "*/30 * * * *"
# Generation of mayor's group
mayors_group_cron_string: "15 */3 * * *"
# Filling of dungeon treasure chests
treasure_chest_cron_string: "45 * * * *"
# Offline combat cron string
offline_combat_cron_string: "15 * * * *"
# Check for inactive kingdoms, and deactivate
deactivate_kingdoms_cron_string: "55 */2 * * *"
# New turns cron string
new_turns_cron_string: "0 * * * *"
# Mini-map generation cron string
mini_map_cron_string: "*/5 * * * *"
# Archiving of combat logs
combat_log_archive_cron_string: "5 5 * * 1"
# Remove damage to buildings
repair_building_damage_cron_string: "30 * * * *"
# Check whether bombs should be detonated
detonate_cron_string: "*/5 * * * *"
# Do majesty calculations
majesty_cron_string: "0 * * * *"
# Garrison cron string
garrison_cron_string: "40 */2 * * *"
# ----- Character / Party Generation Params ----- #
# Pool of points to add to stats for new character
stats_pool: 30
# Maximum stat for new character
stat_max: 18
# Maximum amount of hit points class gets when going up a level
level_hit_points_max:
Warrior: 10
Archer: 8
Priest: 6
Mage: 4
# Maximum amount of magic points a priest/mage gets when going up a level
level_spell_points_min: 3
level_spell_points_max: 6
# The amount to divide a stat by to give the bonus for a points total
# (e.g. divide con by this to get bonus hit points)
point_dividend: 10
# Number of characters in a new party
new_party_characters: 5
# Maximum number of characters allowed in a party
max_party_characters: 8
# How many stat points a character gets per level
stat_points_per_level: 3
# Amount of gold to start with
start_gold: 250
# Min / Max prosperity of the town a party starts in
min_starting_prosperity: 20
max_starting_prosperity: 40
# Max number of players allowed to register
max_number_of_players: 600
minimum_password_length: 4
# Number of turns a new party starts with
starting_turns: 1000
# Number of days to give the watcher effect for new parties
new_party_watcher_days: 20
# Size of page on party leaderboard
leaderboard_page_size: 20
# ----- Player Params ----- #
# Number of days of inactivity before sending a warning to a player
inactivity_warning_days: 21
# Number of days of inactivity before deleting a player
inactivity_deletion_days: 28
# Number of days after last attempting to login to remind player if they haven't verified
verification_reminder_days: 7
# Number of days we check back for co-op IP address
ip_coop_window: 90
# Number of turns that must be used before a player gets a reward for referring someone
referring_player_turn_threshold: 1000
# Turn reward for referring a friend
refer_a_friend_turn_reward: 250
# Perform various checks based on IP for coop
check_for_coop: 1
# ----- Party Params ----- #
# Size of map to display
map_height:
small: 11
medium: 13
large: 15
map_width:
small: 17
medium: 19
large: 21
# Area party can "view" (i.e. how far they can see on main map)
party_viewing_range: 3
# Number of turns a party gets each hour
turns_per_hour: 25
# Maximum number of turns a party is allowed to have
maximum_turns: 2000
# Maximum bonus turns (from equipment) a party is allowed to gain per day
maximum_bonus_turns: 250
# Min / Max percentage amount to heal characters each day (based on rest)
min_heal_percentage: 2
max_heal_percentage: 30
# Number of turns used for normal camping
camping_turns: 3
# Chance of successful scout per avg intelligence point
scout_chance_per_int: 5
# Maximum chance of successful scout
max_chance_scout: 80
# Number of mins since last action for a party to be considered online
online_threshold: 20
# Minimum party level for raiding towns
minimum_raid_level: 8
# Minimum party level for creating a garrison
minimum_garrison_level: 6
# Minimum party level for creating a building
minimum_building_level: 10
# Minimum level for claiming land for a kingdom
minimum_land_claim_level: 3
# Frequency in days party can change allegiance
party_allegiance_change_frequency: 10
# Number of times per day a party can raid a town
max_raids_per_day: 3
# Max party level to give a warning to a party about leaving town
max_party_level_leave_town_warning: 2
# Minimum level a character has to be before they can enscribe spells onto scrolls
min_scroll_enscribe_level: 8
# Gold cost to train a new character
train_gold_cost: 15000
# Turn cost to train a new character
train_turn_cost: 50
# Minumum level for training new characters
train_min_party_level: 12
# Minimum party level that allows party to have mayors
min_party_level_for_mayors: 15
# Minimum level of characters that count towards mayor count limit
mayor_limit_char_min_level: 20
# Maximum number of land that can be claimed per game day
max_land_claimed_per_day: 10
# Parameters to control number of mayors allowed
mayor_count_divisor_1: 2.8
mayor_count_divisor_2: 100
# ----- Combat Params ----- #
# Chance creatures will notice a party in their sector, and decide to attack
creature_attack_chance: 30
# Size of 'roll' for attack
attack_dice_roll: 30
defence_dice_roll: 30
# Bonus a char gets for choosing to defend
defend_bonus: 5
# Base creature attack/defence factor
creature_attack_base: 8
creature_defence_base: 8
# Amount af/df increases in a creature per level
create_attack_factor_increment: 2
create_defence_factor_increment: 2
# Add 1 more to the af increment every x levels
creature_factor_level_increase_step: 6
# Amount to multiply creature's level by to get it's base XP value
xp_multiplier: 10
# Amount to multiply character's level by to get it's base XP value
xp_multiplier_character: 10
# Base chance a party can flee from an encounter
base_flee_chance: 50
# Modifier on flee chance, per level creature group is higher than party level
flee_chance_level_modifier: 5
# Modifier on flee chance, per attempt made to flee in current battle
flee_chance_attempt_modifier: 5
# Bonus modifier on flee chance for level 1 parties
flee_chance_low_level_bonus: 10
# Chance per level of finding an item on defeated creatures
chance_to_find_item: 10
# Amount of item prevalence per level to find
prevalence_per_creature_level_to_find: 10
# Chance per level below the party's level that a creature group will flee
chance_creatures_flee_per_level_diff: 7
# Max difference in factor aggregates before a cg will attack (or party will be warned if they attack)
cg_attack_max_factor_difference: -5
# Max levels below a party before a cg will attack
cg_attack_max_level_below_party: 4
# Max levels above another party where a party is allowed to attack
max_party_level_diff_for_attack: 2
# Range around towns where combat etc can be "seen" (i.e. could have an affect, e.g. prestige, news)
nearby_town_range: 7
# Change a CG will initiate offline combat
offline_combat_chance: 35
# Maximum number of offline combats allowed between logins
max_offline_combat_count: 5
# Number of rounds per turn cost
combat_rounds_per_turn: 2
# Max number of times a party can be attacked by another party when offline
max_party_offline_attacks: 3
# Min avg divinity for enchantment chance increase
min_avg_divinity_for_enchantment_chance_increase: 12
# Divinity points per 1% increase in enchantment chance
divinity_points_per_enchantment_chance_increase: 3
# Chance of critical hit per creature level (fractions rounded down)
creature_critical_hit_chance_per_level: 0.5
# Divinity points per chance of critical hit
character_divinity_points_per_chance_of_critical_hit: 8
# Character level per bonus point to critical hit chance
character_level_per_bonus_point_to_critical_hit: 6
# ----- Shop Params ----- #
# Usual prosperity per shop in a particular town
prosperity_per_shop: 15
# Maximum amount a shop's cost modifier can move in a day
max_cost_modifier_change: 5
# Percentage shops take off the base cost of an item when party sells it to them
shop_sell_modifier: -20
# Percentage chance an item in a shop will be enchanted
shop_enchanted_item_chance: 3
# Percentage sales tax for towns with NPC mayors
default_sales_tax: 10
# ----- Town Params ----- #
# Minimum / Maximum cost to heal at the healer, per hit point (actual is based on prosperity)
min_healer_cost: 1
max_healer_cost: 6
# Cost per character level for resurrection
resurrection_cost: 100
# Percentage of xp a char loses when resurrected
ressurection_percent_xp_to_lose: 5
# Number of days worth of news to display
news_day_range: 4
# Cost of sage
sage_direction_cost: 75
sage_distance_cost: 100
sage_location_cost: 600
sage_item_find_cost: 100
sage_find_dungeon_cost_per_level: 300
sage_find_orb_base_cost: 100
sage_find_orb_level_step: 200
# Range from the town where a dungeon can be found
sage_dungeon_find_range: 40
# Modifer cost for books of past lives from the sage
sage_book_cost_modifier: 2
# Number of characters per prosperity point (ideally) for recruitment
characters_per_prosperity: 10
# Chance a blacksmith's skill will go up on a given day
blacksmith_skill_increase_chance: 40
# Chance a blacksmith will retire
blacksmith_retire_chance: 10
# Max blacksmith starting skill
blacksmith_max_start_skill: 5
# Base cost to upgrade an item
base_item_upgrade_cost: 200
# Minimum / Maximum cost to repair items at the blacksmith, per durability point (actual is based on prosperity)
min_repair_cost: 1
max_repair_cost: 5
# Minimum Durability an item can have to be allowed to upgrade it
min_upgrade_durability: 20
# Amount of tax per prosperity point a town charges
tax_per_prosperity: 0.3
# Additional multiplier for tax based on party's level (above level 1)
tax_level_modifier: 0.25
# Amount to divide tax gold cost by to get cost in turns
tax_turn_divisor: 8
# Range to look for CTR for prosperity calculation
prosperity_calc_ctr_range: 9
# Max amount of prosp change allowed per day
max_prosp_change: 5
# Types of discounts available
discount_types:
- sage
- healer
- blacksmith
# Range of discounts available (%)
min_discount_value: 10
max_discount_value: 30
# Percentage chance of being captured when raiding a castle, and fleeing from combat
castle_capture_chance: 66
# Minimum level a character must be in order to run for mayor
min_character_mayoral_candidate_level: 8
# Minimum days before an election a character is allowed to declare candidacy
min_days_for_election_candidacy: 1
# Prosperity to sector range ratio (i.e. n prosperity to 1 range)
decay_ctr_ratio: 30
# Max number of characters that can be garrisoned in a town (by mayor)
mayor_garrison_max_characters: 8
# Amount of sectors automatically claimed by a town for its kingdom
town_land_claim_range: 1
# Chance the treasury will be moved in the castle (daily)
castle_treasury_movement_chance: 5
# Chance a character will get deleted when sold
character_sell_deletion_chance: 15
# Max % difference to base price allowed when trading items
trade_max_percentage_difference_in_base_price: 100
# Maintenance cost of town traps per day per level
town_trap_maint_cost: 5
# Cost to upgrade to a trap level (per level)
town_trap_upgrade_cost: 500
# Max level of town traps
town_trap_max_level: 10
# Range of towns that a town will have a coach service to
town_coach_range: 10
# Gold cost per sector for town coaches
town_coach_gold_cost: 86
# Extra gold cost per party level for town coaches
town_coach_party_level_gold_cost: 54
# Turn cost per sector for town coaches
town_coach_turn_cost: 1.6
# ----- Dungeon Params ----- #
# Amount of land per dungeon
land_per_dungeon: 200
# Min distance from a town or another dungeon each dungeon must be
min_distance_from_dungeon_or_town: 5
# Maximum level of a dungeon
dungeon_max_level: 4
# Max sizes of rooms
max_x_dungeon_room_size: 6
max_y_dungeon_room_size: 6
# Maximum amount of sector's a party can move in one turn
dungeon_move_maximum: 3
# Ratio of sectors per creature in dungeons
dungeon_sectors_per_creature: 12
# Ratio of sectors per creature in sewers
sewer_sectors_per_creature: 8
# Number of party levels required to enter a dungeon per level (with level 1 dungeons = 0, level 2 = step * 1, level 3 = step * 2, etc)
dungeon_entrance_level_step: 5
# Chance an empty chest will get refilled
empty_chest_fill_chance: 20
# Max number of offline combats per dungeon level
max_offline_combat_per_dungeon_level: 4
# Offline combat chance in a dungeon
dungeon_offline_combat_chance: 100
# Percentage of dungeon rooms that are special
dungeon_special_room_percentage: 2
# Movement cost
cost_of_moving_through_dungeons: 2
# Cost in turns to dismantle a dungeon door
dismantle_door_cost: 15
# ----- Creature Params ----- #
# Ratio of number of creature groups to parties
creature_groups_to_parties: 10
# Max number of creature groups per sectors in the world
max_creature_groups_per_sector: 0.5
# Min number of creature groups per sectors in the world
min_creature_groups_per_sector: 0.4
# Percentage chance a creature should move somewhere
creature_move_chance: 50
# Chance monsters will move when a party moves within a dungeon
creature_move_chance_on_party_move: 20
# Number of land per creature orb
land_per_orb: 100
# Minimum distance an orb must be from a town per level of the orb (x & y)
orb_distance_from_town_per_level: 2.5
# Minimum distance an orb must be from another orb
orb_distance_from_other_orb: 2
# Max number of squares a CG can hop if it's blocked by towns, ctr or other cgs
max_hops: 3
# Max level of orb to spawn
max_orb_level: 3
# Amount to multiply orb level by to get the party level allowed to destroy the orb
orb_level_multiplier_to_destroy_orb: 3
# ----- Quests ----- #
# Number of prosperity points per quest offered by a town
prosperity_per_quest: 10
# Base number of quests allowed per party
base_allowed_quests: 2
# Number of quests per level allowed per party
additional_quests_per_level: 1
quest_type_vars:
### Kill Creatures Near Town Quest Type
kill_creatures_near_town:
# Min/max number of creature groups to kill
min_cgs_to_kill: 2
max_cgs_to_kill: 6
# Range from town to consider creature kills (number of sectors)
range: 3
# Gold awarded per CG to kill
gold_per_cg: 75
xp_per_cg: 50
### Take msg to a town quest types
msg_to_town:
initial_search_range: 45
gold_per_distance: 35
xp_per_distance: 20
### Find a jewel
find_jewel:
search_range: 25
jewels_to_create: 3
gold_value: 250
xp_value: 100
### Destroy a creature orb
destroy_orb:
initial_search_range: 11
max_search_range: 30
gold_per_distance: 60
xp_per_distance: 40
### Raid town
raid_town:
initial_search_range: 11
max_search_range: 30
gold_per_distance: 115
xp_per_distance: 65
### Find dungeon item
find_dungeon_item:
search_range: 35
gold_per_distance: 85
xp_per_distance: 30
### Construct building
construct_building:
town_search_range: 9
building_search_range: 9
search_range: 9
### Take over town
take_over_town:
town_search_range: 13
# ----- Garrison Params ----- #
# Chance a creature will attack a garrison
garrison_combat_chance: 35
# Max level above a party can attack a garrison (and vice verca)
max_party_garrison_level_difference: 5
# Turn cost for creating a garrison
garrison_creation_turn_cost: 15
# Minimum distance between garrisons - 1=one empty space min between
garrison_min_spacing: 1
# Minimum level a party must be before a garrison will attack
min_party_level_for_garrison_attack: 6
# Number of days garrison must be in a sector before they will begin claiming land
garrison_time_to_claim_land: 2
# Period to check for recent garrison battles (in hours)
garrison_recent_battle_period: 12
# Number of attacks allowed within the garrison recent period
garrison_recent_battle_max: 3
# ----- Enchantment Params ----- #
# Minimum creature level that has enchanted items
minimum_enchantment_creature_level: 8
# Step in chance for creature levels for finding enchanted items
enchantment_creature_level_step: 1.8
# ----- Building Params ----- #
# Minimum distance between buildings- 1=one empty space min between
building_min_spacing: 1
# Maximum 'visibility' value for any building type
max_building_visibility: 7
# Turn cost to seize a building
building_seize_turn_cost: 15
# ----- Kingdom Params ----- #
# Number of land required per kingdom quest
land_per_kingdom_quests: 100
# Minimum number of quests per kingdom
minimum_kingdom_quests: 2
# Days to leave a quest offer opening before cancelling it
kingdom_quest_offer_time_limit: 12
# Number of towns required before a kingdom can be declared
town_count_for_kingdom_declaration: 4
# Minimum level for declaring a kingdom
minimum_kingdom_level: 16
# Min/max days a party can be banished by the king
min_banish_days: 5
max_banish_days: 30
# Minimum number of parties in an NPC kingdom before they will start banishing disloyal parties
npc_kingdom_min_parties: 10
# Maximum amount of gold that can be given as a Kingdom quest reward
max_kingdom_quest_reward: 25000
# Grace period for change of kingdom for parties suspected of co-op (days)
kingdom_co_op_grace: 7
# Gold cost per sector of kingdom to move the capital
capital_move_cost_per_sector: 6
# Chance sectors not claimed by town or building go neutral
chance_free_claimed_sector_becomes_neutral: 5
# Number of days a claim for the throne takes
claim_wait_period: 7
# Number of days before being allowed to claim again after a failed claim
failed_claim_ban_period: 28
# Minimum level for parties allowed to respond to a claim
minimum_claim_response_level: 3
# Minimum level parties can delcare allegiance
min_level_for_allegiance_declaration: 3
# Minimum majesty score before a kingdom can be awarded the crown
crown_minimum_majesty: 80
# Number of days a kingdom must lead before being awarded the crown
crown_majesty_wait_period: 8
# ----- Skills Params ----- #
# Maximum level allowed for a particular skill
max_skill_level: 10
# Cost modifiers for book of past lives with different max levels (to base cost)
# (Needs to be configured here as item_types don't usually have different costs)
book_of_past_live_cost_modifiers:
10: 1
20: 5
30: 10
# ----- Debug ----- #
# Buildings are free (no resources used)
#dbg_free_buildings: 1