Browse Source

Fix campfire randomization to be in line with H3

Campfire can now have one of 3 rewards layouts:
- 400 gold + 4 of random non-gold resource
- 500 gold + 5 of random non-gold resource
- 600 gold + 6 of random non-gold resource

This should make it match H3 logic
Ivan Savenko 8 months ago
parent
commit
71dbe904a6
1 changed files with 33 additions and 3 deletions
  1. 33 3
      config/objects/rewardablePickable.json

+ 33 - 3
config/objects/rewardablePickable.json

@@ -26,17 +26,47 @@
 				"selectMode" : "selectFirst",
 				"rewards" : [
 					{
+						"appearChance" : { "min" : 0, "max" : 33 },
 						"message" : 23,
 						"removeObject" : true,
 						"resources" : [
 							{
 								"anyOf" : [ "wood", "ore", "mercury", "gems", "sulfur", "crystal" ],
-								"min" : 4,
-								"max" : 6
+								"amount" : 4
 							},
 							{
 								"type" : "gold",
-								"amount" : [ 400, 500, 600 ]
+								"amount" : 400
+							}
+						]
+					},
+					{
+						"appearChance" : { "min" : 33, "max" : 66 },
+						"message" : 23,
+						"removeObject" : true,
+						"resources" : [
+							{
+								"anyOf" : [ "wood", "ore", "mercury", "gems", "sulfur", "crystal" ],
+								"amount" : 5
+							},
+							{
+								"type" : "gold",
+								"amount" : 500
+							}
+						]
+					},
+					{
+						"appearChance" : { "min" : 66, "max" : 100 },
+						"message" : 23,
+						"removeObject" : true,
+						"resources" : [
+							{
+								"anyOf" : [ "wood", "ore", "mercury", "gems", "sulfur", "crystal" ],
+								"amount" : 6
+							},
+							{
+								"type" : "gold",
+								"amount" : 600
 							}
 						]
 					}