diff options
author | Haru <haru@dotalux.com> | 2019-05-05 18:09:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-05 18:09:32 +0200 |
commit | 78f9922a3e8276b920cbbdf9c273e03e22c6eb8d (patch) | |
tree | af2a9b0425228bd17a06e2c9fd36c7618b2bebe7 /db | |
parent | d55b291c88cff726c5ac99b4d6f40efe416cf83e (diff) | |
parent | 781011398ba501a50e120d6ad8dc86d155c8ce9e (diff) | |
download | hercules-78f9922a3e8276b920cbbdf9c273e03e22c6eb8d.tar.gz hercules-78f9922a3e8276b920cbbdf9c273e03e22c6eb8d.tar.bz2 hercules-78f9922a3e8276b920cbbdf9c273e03e22c6eb8d.tar.xz hercules-78f9922a3e8276b920cbbdf9c273e03e22c6eb8d.zip |
Merge pull request #2309 from guilherme-gm/201810-randomopt-drop
Support for monster drops with Random Options
Diffstat (limited to 'db')
-rw-r--r-- | db/mob_db2.conf | 2 | ||||
-rw-r--r-- | db/option_drop_groups.conf | 53 | ||||
-rw-r--r-- | db/pre-re/mob_db.conf | 2 | ||||
-rw-r--r-- | db/re/mob_db.conf | 2 |
4 files changed, 59 insertions, 0 deletions
diff --git a/db/mob_db2.conf b/db/mob_db2.conf index 8d3e67904..e2894a719 100644 --- a/db/mob_db2.conf +++ b/db/mob_db2.conf @@ -89,6 +89,8 @@ mob_db: ( } Drops: { AegisName: chance (string: int) + // or + AegisName: (chance, "Option Drop Group") // ... } }, diff --git a/db/option_drop_groups.conf b/db/option_drop_groups.conf new file mode 100644 index 000000000..b293be19a --- /dev/null +++ b/db/option_drop_groups.conf @@ -0,0 +1,53 @@ +//================= Hercules Database ===================================== +//= _ _ _ +//= | | | | | | +//= | |_| | ___ _ __ ___ _ _| | ___ ___ +//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| +//= | | | | __/ | | (__| |_| | | __/\__ \ +//= \_| |_/\___|_| \___|\__,_|_|\___||___/ +//================= License =============================================== +//= This file is part of Hercules. +//= http://herc.ws - http://github.com/HerculesWS/Hercules +//= +//= Copyright (C) 2018 Hercules Dev Team +//= +//= Hercules is free software: you can redistribute it and/or modify +//= it under the terms of the GNU General Public License as published by +//= the Free Software Foundation, either version 3 of the License, or +//= (at your option) any later version. +//= +//= This program is distributed in the hope that it will be useful, +//= but WITHOUT ANY WARRANTY; without even the implied warranty of +//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +//= GNU General Public License for more details. +//= +//= You should have received a copy of the GNU General Public License +//= along with this program. If not, see <http://www.gnu.org/licenses/>. +//========================================================================= +//= Random Option Drop Group Database +//========================================================================= + +option_drop_group_db: ( +{ +/************************************************************************** + ************* Entry structure ******************************************** + ************************************************************************** + <Group Name Constant>: ( + { // Option Slot 1 + Rate: (int) chance of filling option slot 1 (100 = 1%) + + // Possible options for slot 1 + // min/max value : int, defaults to 0 + // chance : int, 100 = 1% if not set, will be 100%/number of possibiltiies + OptionName: value + // or + OptionName: [min value, max value] + // or + OptionName: [min value, max value, chance] + // ... (as many as you want) + }, + // ... (up to MAX_ITEM_OPTION) + ), +**************************************************************************/ +} +) diff --git a/db/pre-re/mob_db.conf b/db/pre-re/mob_db.conf index 40635cd68..553593cea 100644 --- a/db/pre-re/mob_db.conf +++ b/db/pre-re/mob_db.conf @@ -89,6 +89,8 @@ mob_db: ( } Drops: { AegisName: chance (string: int) + // or + AegisName: (chance, "Option Drop Group") // ... } }, diff --git a/db/re/mob_db.conf b/db/re/mob_db.conf index e90b478e7..f787d5478 100644 --- a/db/re/mob_db.conf +++ b/db/re/mob_db.conf @@ -89,6 +89,8 @@ mob_db: ( } Drops: { AegisName: chance (string: int) + // or + AegisName: (chance, "Option Drop Group") // ... } }, |