From 4f5c7b79b77ea5d772517bf2f61f24d607801c10 Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Tue, 17 Mar 2020 12:13:08 +0100
Subject: [PATCH] fix

---
 .../data/general/objects/world-artifacts.lua  | 54 +++++++++----------
 1 file changed, 27 insertions(+), 27 deletions(-)

diff --git a/game/modules/tome/data/general/objects/world-artifacts.lua b/game/modules/tome/data/general/objects/world-artifacts.lua
index 0a91d832b0..e41eeaec6d 100644
--- a/game/modules/tome/data/general/objects/world-artifacts.lua
+++ b/game/modules/tome/data/general/objects/world-artifacts.lua
@@ -135,7 +135,7 @@ newEntity{ base = "BASE_STAFF",
 	color=colors.VIOLET,
 	rarity = 170,
 	desc = [[This unique-looking staff is carved with runes of destruction.]],
-	cost = math.random(225,350),
+	cost = resolvers.rngrange(225,350),
 	material_level = 3,
 
 	require = { stat = { mag=24 }, },
@@ -440,7 +440,7 @@ newEntity{ base = "BASE_LITE",
 	sentient = true,
 	desc = [[This dark red heart still beats despite being separated from its owner.  It also snuffs out any light source that comes near it.]],
 	special_desc = function(self) return "The heart seems to absorb light when you deal darkness damage. Standing on unlit tiles, you feel stronger." end,
-	cost = math.random(400,650),
+	cost = resolvers.rngrange(400,650),
 
 	wielder = {
 		lite = -1000,
@@ -553,7 +553,7 @@ newEntity{ base = "BASE_SHIELD",
 	level_range = {27, 35},
 	rarity = 300,
 	require = { stat = { str=28 }, },
-	cost = math.random(400,650),
+	cost = resolvers.rngrange(400,650),
 	material_level = 4,
 	special_combat = {
 		dam = 58,
@@ -802,7 +802,7 @@ newEntity{ base = "BASE_HELM",
 	desc = [[A Dwarven helm embedded with a single diamond that can banish all underground shadows.]],
 	level_range = {16, 28},
 	rarity = 240,
-	cost = math.random(125,200),
+	cost = resolvers.rngrange(125,200),
 	material_level = 2,
 	wielder = {
 		lite = 6,
@@ -839,7 +839,7 @@ newEntity{ base = "BASE_KNIFE",
 	level_range = {23, 28},
 	rarity = 200,
 	require = { stat = { cun=25 }, },
-	cost = math.random(125,200),
+	cost = resolvers.rngrange(125,200),
 	material_level = 2,
 	combat = {
 		dam = 25,
@@ -1130,7 +1130,7 @@ newEntity{ base = "BASE_HELM",
 	require = { stat = { cun=25 } },
 	level_range = {20, 35},
 	rarity = 280,
-	cost = math.random(225,350),
+	cost = resolvers.rngrange(225,350),
 	material_level = 3,
 	wielder = {
 		inc_stats = { [Stats.STAT_CON] = 3, [Stats.STAT_WIL] = 10, },
@@ -1192,7 +1192,7 @@ newEntity{ base = "BASE_GAUNTLETS",
 	desc = [[Fashioned by Grand Smith Dakhtun in the Age of Allure, these dwarven-steel gauntlets have been etched with golden arcane runes and are said to grant the wearer unparalleled physical and magical might.]],
 	level_range = {40, 50},
 	rarity = 300,
-	cost = math.random(700,1200),
+	cost = resolvers.rngrange(700,1200),
 	material_level = 5,
 	wielder = {
 		inc_stats = { [Stats.STAT_STR] = 6, [Stats.STAT_MAG] = 6 },
@@ -1321,7 +1321,7 @@ newEntity{ base = "BASE_CLOAK",
 	desc = [[Cunning and malice seem to emanate from this cloak.]],
 	level_range = {20, 29},
 	rarity = 240,
-	cost = math.random(225,350),
+	cost = resolvers.rngrange(225,350),
 	material_level = 3,
 	wielder = {
 		combat_def = 20,
@@ -1344,7 +1344,7 @@ newEntity{ base = "BASE_CLOTH_ARMOR", define_as = "CONCLAVE_ROBE",
 It was made by Humans for Humans; only they can harness the true power of the robes.]],
 	level_range = {12, 22},
 	rarity = 220,
-	cost = math.random(125,200),
+	cost = resolvers.rngrange(125,200),
 	material_level = 2,
 	wielder = {
 		inc_damage = {[DamageType.ARCANE]=15},
@@ -1374,7 +1374,7 @@ newEntity{ base = "BASE_CLOTH_ARMOR",
 	special_desc = function(self) return "Damage all enemies in range 4 for 40 fire damage and yourself for 5 fire damage every turn." end,
 	level_range = {20, 30},
 	rarity = 300,
-	cost = math.random(225,350),
+	cost = resolvers.rngrange(225,350),
 	material_level = 3,
 	wielder = {
 		inc_damage = {[DamageType.FIRE]=20},
@@ -1432,7 +1432,7 @@ newEntity{ base = "BASE_CLOTH_ARMOR",
 	desc = [[A plain elven-silk robe. It would be unremarkable if not for the sheer power it radiates.]],
 	level_range = {30, 40},
 	rarity = 290,
-	cost = math.random(400,650),
+	cost = resolvers.rngrange(400,650),
 	material_level = 4,
 	moddable_tile = "special/robe_of_the_archmage",
 	moddable_tile_big = true,
@@ -1557,7 +1557,7 @@ newEntity{ base = "BASE_BATTLEAXE",
 	require = { stat = { str=50 }, },
 	level_range = {39, 46},
 	rarity = 300,
-	cost = math.random(400,650),
+	cost = resolvers.rngrange(400,650),
 	material_level = 4,
 	combat = {
 		dam = 68,
@@ -1590,7 +1590,7 @@ newEntity{ base = "BASE_WHIP",
 	name = "Scorpion's Tail", color=colors.GREEN, unique = true, image = "object/artifact/whip_scorpions_tail.png",
 	desc = [[A long whip of linked metal joints finished with a viciously sharp barb leaking terrible venom.]],
 	require = { stat = { dex=28 }, },
-	cost = math.random(225,350),
+	cost = resolvers.rngrange(225,350),
 	rarity = 340,
 	level_range = {20, 30},
 	material_level = 3,
@@ -2022,7 +2022,7 @@ It is said the wielder will slowly grow mad. This, however, has never been prove
 	require = { stat = { str=42 }, },
 	level_range = {40, 50},
 	rarity = 250,
-	cost = math.random(400,650),
+	cost = resolvers.rngrange(400,650),
 	material_level = 5,
 	combat = {
 		dam = 38,
@@ -2255,7 +2255,7 @@ newEntity{ base = "BASE_ARROW",
 	proj_image = "object/artifact/arrow_s_quiver_of_the_sun.png",
 	level_range = {20, 40},
 	rarity = 300,
-	cost = math.random(400,650),
+	cost = resolvers.rngrange(400,650),
 	material_level = 4,
 	require = { stat = { dex=24 }, },
 	combat = {
@@ -2428,7 +2428,7 @@ newEntity{ base = "BASE_SHOT",
 	proj_image = "object/artifact/shot_s_star_shot.png",
 	level_range = {25, 40},
 	rarity = 300,
-	cost = math.random(400,650),
+	cost = resolvers.rngrange(400,650),
 	material_level = 4,
 	require = { stat = { dex=28 }, },
 	combat = {
@@ -2637,7 +2637,7 @@ newEntity{ base = "BASE_STAFF", define_as = "SET_SCEPTRE_LICH",
 	color=colors.VIOLET, image = "object/artifact/sceptre_of_the_archlich.png",
 	rarity = 320,
 	desc = [[This sceptre, carved of ancient, blackened bone, holds a single gem of deep obsidian. You feel a dark power from deep within, looking to get out.]],
-	cost = math.random(700,1200),
+	cost = resolvers.rngrange(700,1200),
 	material_level = 5,
 
 	require = { stat = { mag=50 }, },
@@ -2769,7 +2769,7 @@ newEntity{ base = "BASE_STAFF",
 	color=colors.VIOLET, image = "object/artifact/gravitational_staff.png",
 	rarity = 240,
 	desc = [[Time and Space seem to warp and bend around the massive tip of this stave.]],
-	cost = math.random(225,350),
+	cost = resolvers.rngrange(225,350),
 	material_level = 3,
 	require = { stat = { mag=35 }, },
 	combat = {
@@ -2956,7 +2956,7 @@ newEntity{ base = "BASE_KNIFE",
 	level_range = {12, 25},
 	rarity = 200,
 	require = { stat = { dex=32 }, },
-	cost = math.random(125,200),
+	cost = resolvers.rngrange(125,200),
 	material_level = 2,
 	combat = {
 		dam = 25,
@@ -3012,7 +3012,7 @@ newEntity{ base = "BASE_LONGBOW",
 	level_range = {5, 15},
 	rarity = 200,
 	require = { stat = { dex=18 }, },
-	cost = math.random(50,80),
+	cost = resolvers.rngrange(50,80),
 	material_level = 1,
 	combat = {
 		range = 9,
@@ -3072,7 +3072,7 @@ newEntity{ base = "BASE_WHIP",
 	name = "Stormlash", color=colors.BLUE, unique = true, image = "object/artifact/stormlash.png",
 	desc = [[This steel plated whip arcs with intense electricity. The force feels uncontrollable, explosive, powerful.]],
 	require = { stat = { dex=15 }, },
-	cost = math.random(50,80),
+	cost = resolvers.rngrange(50,80),
 	rarity = 250,
 	level_range = {6, 15},
 	material_level = 1,
@@ -3134,7 +3134,7 @@ newEntity{ base = "BASE_WHIP",
 	name = "Focus Whip", color=colors.YELLOW, unique = true, image = "object/artifact/focus_whip.png",
 	desc = [[A small mindstar rests at top of this handle. As you touch it, a translucent cord appears, flicking with your will.]],
 	require = { stat = { dex=15 }, },
-	cost = math.random(225,350),
+	cost = resolvers.rngrange(225,350),
 	rarity = 250,
 	metallic = false,
 	level_range = {18, 28},
@@ -4114,7 +4114,7 @@ newEntity{ base = "BASE_CLOTH_ARMOR", --Thanks Grayswandir!
 	desc = [[This deep blue robe flows and ripples as if pushed by an invisible tide.]],
 	level_range = {1, 15},
 	rarity = 220,
-	cost = math.random(50,80),
+	cost = resolvers.rngrange(50,80),
 	material_level = 1,
 	wielder = {
 		combat_def = 12,
@@ -4340,7 +4340,7 @@ newEntity{ base = "BASE_ARROW", --Thanks Grayswandir!
 	proj_image = "object/artifact/arrow_s_void_quiver.png",
 	level_range = {35, 50},
 	rarity = 300,
-	cost = math.random(700,1100),
+	cost = resolvers.rngrange(700,1100),
 	material_level = 5,
 	infinite=true,
 	require = { stat = { dex=32 }, },
@@ -6083,7 +6083,7 @@ The heart which wishes that it be unseen.]],
 	level_range = {40, 50},
 	color = colors.BLACK,
 	rarity = 370,
-	cost = math.random(700,1200),
+	cost = resolvers.rngrange(700,1200),
 	material_level = 5,
 	wielder = {
 		combat_def = 14,
@@ -7947,7 +7947,7 @@ Any lightning damage you do that is more than 10% of the victim's maximum life w
 Upon taking lightning damage >10% of your max life, your mind fires back, dealing 30% of the original damage as mind and trying to brainlock the target.
 Upon taking mind damage >10% of your max life, you reflexively trigger the jolt, sending an arc of dazing lightning toward the target (damage based on mindpower).
 This item can have up to 2 charges, with each charge having 4 turn cooldown.]] end,
-	cost = math.random(125,200),
+	cost = resolvers.rngrange(125,200),
 	material_level = 2,
 	wielder = {
 		inc_damage={
@@ -8153,7 +8153,7 @@ newEntity{ base = "BASE_GAUNTLETS",
 	desc = [[Crafted for a warlord who wanted to keep his subjects under a stralite grip. Dark thoughts went into the making of these gauntlets, literally.]],
 	level_range = {30, 40},
 	rarity = 300,
-	cost = math.random(400,650),
+	cost = resolvers.rngrange(400,650),
 	material_level = 4,
 	wielder = {
 		combat_armor = 5,
-- 
GitLab