Add maker_random_reward table and data (formerly "makerrewarddata")

This commit is contained in:
P0nk
2023-03-01 21:09:32 +01:00
parent 26357a8d7b
commit 5cecb7adb6

View File

@@ -14,7 +14,7 @@ CREATE TABLE maker_recipe
);
GRANT SELECT ON maker_recipe TO ${server-username};
CREATE TABLE maker_recipe_ingredient
CREATE TABLE maker_ingredient
(
maker_recipe integer NOT NULL,
item_id integer NOT NULL,
@@ -22,7 +22,7 @@ CREATE TABLE maker_recipe_ingredient
PRIMARY KEY (maker_recipe, item_id),
CONSTRAINT fk_maker_recipe_ingredient_maker_recipe FOREIGN KEY (maker_recipe) REFERENCES maker_recipe (item_id)
);
GRANT SELECT ON maker_recipe_ingredient TO ${server-username};
GRANT SELECT ON maker_ingredient TO ${server-username};
CREATE TABLE maker_reagent
(
@@ -33,6 +33,17 @@ CREATE TABLE maker_reagent
);
GRANT SELECT ON maker_reagent TO ${server-username};
CREATE TABLE maker_random_reward
(
maker_recipe integer NOT NULL,
item_id integer NOT NULL,
count smallint NOT NULL,
prob smallint NOT NULL,
PRIMARY KEY(maker_recipe, item_id),
CONSTRAINT fk_maker_random_reward_maker_recipe FOREIGN KEY(maker_recipe) REFERENCES maker_recipe(item_id)
);
GRANT SELECT ON maker_random_reward TO ${server-username};
INSERT INTO maker_recipe(job_category, item_id, required_level, required_maker_level, meso_cost, required_item,
required_equip, catalyst, quantity, reagent_slots)
VALUES (0, 4250000, 45, 1, 110000, null, null, 0, 1, 0),
@@ -870,7 +881,7 @@ VALUES (0, 4250000, 45, 1, 110000, null, null, 0, 1, 0),
(16, 1482023, 115, 3, 616000, null, null, 4130016, 1, 3),
(16, 1492023, 115, 3, 627000, null, null, 4130017, 1, 3);
INSERT INTO maker_recipe_ingredient(maker_recipe, item_id, count)
INSERT INTO maker_ingredient(maker_recipe, item_id, count)
VALUES (4250000, 4021007, 1),
(4250100, 4021005, 1),
(4250200, 4021000, 1),
@@ -2844,3 +2855,103 @@ VALUES (4250000, 'incPAD', 1),
(4251400, 'randStat', 2),
(4251401, 'randStat', 3),
(4251402, 'randStat', 5);
INSERT INTO maker_random_reward(maker_recipe, item_id, count, prob)
VALUES (4250000, 4250000, 1, 14),
(4250000, 4250001, 1, 5),
(4250000, 4250002, 1, 1),
(4250100, 4250100, 1, 14),
(4250100, 4250101, 1, 5),
(4250100, 4250102, 1, 1),
(4250200, 4250200, 1, 14),
(4250200, 4250201, 1, 5),
(4250200, 4250202, 1, 1),
(4250300, 4250300, 1, 14),
(4250300, 4250301, 1, 5),
(4250300, 4250302, 1, 1),
(4250400, 4250400, 1, 14),
(4250400, 4250401, 1, 5),
(4250400, 4250402, 1, 1),
(4250500, 4250500, 1, 14),
(4250500, 4250501, 1, 5),
(4250500, 4250502, 1, 1),
(4250600, 4250600, 1, 14),
(4250600, 4250601, 1, 5),
(4250600, 4250602, 1, 1),
(4250700, 4250700, 1, 14),
(4250700, 4250701, 1, 5),
(4250700, 4250702, 1, 1),
(4250800, 4250800, 1, 75),
(4250800, 4250801, 1, 24),
(4250800, 4250802, 1, 1),
(4250900, 4250900, 1, 75),
(4250900, 4250901, 1, 24),
(4250900, 4250902, 1, 1),
(4251000, 4251000, 1, 75),
(4251000, 4251001, 1, 24),
(4251000, 4251002, 1, 1),
(4251100, 4251100, 1, 75),
(4251100, 4251101, 1, 24),
(4251100, 4251102, 1, 1),
(4251300, 4251300, 1, 27),
(4251300, 4251301, 1, 12),
(4251300, 4251302, 1, 1),
(4251400, 4251400, 1, 27),
(4251400, 4251401, 1, 12),
(4251400, 4251402, 1, 1),
(4250001, 4250001, 1, 3),
(4250001, 4250000, 9, 2),
(4250101, 4250101, 1, 3),
(4250101, 4250100, 9, 2),
(4250201, 4250201, 1, 3),
(4250201, 4250200, 9, 2),
(4250301, 4250301, 1, 3),
(4250301, 4250300, 9, 2),
(4250401, 4250401, 1, 3),
(4250401, 4250400, 9, 2),
(4250501, 4250501, 1, 3),
(4250501, 4250500, 9, 2),
(4250601, 4250601, 1, 3),
(4250601, 4250600, 9, 2),
(4250701, 4250701, 1, 3),
(4250701, 4250700, 9, 2),
(4250801, 4250801, 1, 3),
(4250801, 4250800, 9, 2),
(4250901, 4250901, 1, 3),
(4250901, 4250900, 9, 2),
(4251001, 4251001, 1, 3),
(4251001, 4251000, 9, 2),
(4251101, 4251101, 1, 3),
(4251101, 4251100, 9, 2),
(4251301, 4251301, 1, 1),
(4251301, 4251300, 9, 1),
(4251401, 4251401, 1, 1),
(4251401, 4251400, 9, 1),
(4250002, 4250002, 1, 3),
(4250002, 4250001, 9, 7),
(4250102, 4250102, 1, 3),
(4250102, 4250101, 9, 7),
(4250202, 4250202, 1, 3),
(4250202, 4250201, 9, 7),
(4250302, 4250302, 1, 3),
(4250302, 4250301, 9, 7),
(4250402, 4250402, 1, 3),
(4250402, 4250401, 9, 7),
(4250502, 4250502, 1, 3),
(4250502, 4250501, 9, 7),
(4250602, 4250602, 1, 3),
(4250602, 4250601, 9, 7),
(4250702, 4250702, 1, 3),
(4250702, 4250701, 9, 7),
(4250802, 4250802, 1, 3),
(4250802, 4250801, 9, 7),
(4250902, 4250902, 1, 3),
(4250902, 4250901, 9, 7),
(4251002, 4251002, 1, 3),
(4251002, 4251001, 9, 7),
(4251102, 4251102, 1, 3),
(4251102, 4251101, 9, 7),
(4251302, 4251302, 1, 1),
(4251302, 4251301, 9, 4),
(4251402, 4251402, 1, 1),
(4251402, 4251401, 9, 4);