Skip to content

Commit

Permalink
Fix Magenta Fungus Cap drop amount.
Browse files Browse the repository at this point in the history
Closes #2367
  • Loading branch information
ratkosrb committed Dec 23, 2023
1 parent 9daa4e4 commit e3a322d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions sql/migrations/20231223004507_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
DROP PROCEDURE IF EXISTS add_migration;
delimiter ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20231223004507');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20231223004507');
-- Add your query below.


-- Magenta Cap Clusters can contain up to 6 Magenta Fungus Cap but on 3 different slots.
DELETE FROM `gameobject_loot_template` WHERE `entry`=5212;
INSERT INTO `gameobject_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `groupid`, `mincountOrRef`, `maxcount`, `condition_id`, `patch_min`, `patch_max`) VALUES (5212, 8047, -100, 0, 1, 1, 0, 0, 10);
INSERT INTO `gameobject_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `groupid`, `mincountOrRef`, `maxcount`, `condition_id`, `patch_min`, `patch_max`) VALUES (5212, 30576, 100, 0, -30576, 2, 0, 0, 10);
INSERT INTO `reference_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `groupid`, `mincountOrRef`, `maxcount`, `condition_id`, `patch_min`, `patch_max`) VALUES (30576, 8047, 50, 0, 1, 2, 0, 0, 10);


-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;

0 comments on commit e3a322d

Please sign in to comment.