[Pets] Unhardcode Beastlord pet values. (#1379)

* [Pets] Unhardcode Beastlord pet values.
- Create a Beastlord pets table to allow server operators to easily customize Beastlord pets without a source modification.

* Add table to schema.
This commit is contained in:
Alex
2021-06-11 16:57:14 -04:00
committed by GitHub
parent f0bf3826bd
commit b87c5484b1
6 changed files with 81 additions and 34 deletions
+1
View File
@@ -420,6 +420,7 @@
9164|2021_04_23_character_exp_modifiers.sql|SHOW TABLES LIKE 'character_exp_modifiers'|empty|
9165|2021_04_28_idle_pathing.sql|SHOW COLUMNS FROM `spawn2` LIKE 'path_when_zone_idle'|empty|
9166|2021_02_12_dynamic_zone_members.sql|SHOW TABLES LIKE 'dynamic_zone_members'|empty|
9167|2021_06_06_beastlord_pets.sql|SHOW TABLES LIKE 'pets_beastlord_data'|empty|
# Upgrade conditions:
# This won't be needed after this system is implemented, but it is used database that are not
@@ -0,0 +1,28 @@
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for pets_beastlord_data
-- ----------------------------
DROP TABLE IF EXISTS `pets_beastlord_data`;
CREATE TABLE `pets_beastlord_data` (
`player_race` int UNSIGNED NOT NULL DEFAULT 1,
`pet_race` int UNSIGNED NOT NULL DEFAULT 42,
`texture` tinyint UNSIGNED NOT NULL DEFAULT 0,
`helm_texture` tinyint UNSIGNED NOT NULL DEFAULT 0,
`gender` tinyint UNSIGNED NOT NULL DEFAULT 2,
`size_modifier` float UNSIGNED NULL DEFAULT 1,
`face` tinyint UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`player_race`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of pets_beastlord_data
-- ----------------------------
INSERT INTO `pets_beastlord_data` VALUES (2, 42, 2, 0, 2, 1, 0); -- Barbarian
INSERT INTO `pets_beastlord_data` VALUES (9, 91, 0, 0, 2, 2.5, 0); -- Troll
INSERT INTO `pets_beastlord_data` VALUES (10, 43, 3, 0, 2, 1, 0); -- Ogre
INSERT INTO `pets_beastlord_data` VALUES (128, 42, 0, 0, 1, 2, 0); -- Iksar
INSERT INTO `pets_beastlord_data` VALUES (130, 63, 0, 0, 2, 0.8, 0); -- Vah Shir
SET FOREIGN_KEY_CHECKS = 1;