forked from rathena/rathena
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted mob_item_ratio to YAML (rathena#6021)
* Converted mob_item_ratio to YAML * Includes CSV2YAML converter. * Added the possibility to remove an item from monster drop using this feature Co-authored-by: Aleos <[email protected]> Co-authored-by: Lemongrass3110 <[email protected]> Thanks to @idk-whoami !
- Loading branch information
Showing
11 changed files
with
291 additions
and
115 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Specific Item Drop Ratio Database | ||
# This file is a part of rAthena. | ||
# Copyright(C) 2021 rAthena Development Team | ||
# https://rathena.org - https://github.com/rathena | ||
# | ||
# This program 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/>. | ||
# | ||
########################################################################### | ||
# Mob Item Ratio Database | ||
########################################################################### | ||
# | ||
# Mob Item Ratio Settings | ||
# | ||
########################################################################### | ||
# - Item AegisName of item to adjust. | ||
# Ratio Drop rate. | ||
# List: List of monster(s) affected (format <Aegis monster name>: true/false). (Defaulted to all monsters) | ||
########################################################################### | ||
|
||
Header: | ||
Type: MOB_ITEM_RATIO_DB | ||
Version: 1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Specific Item Drop Ratio Database | ||
# This file is a part of rAthena. | ||
# Copyright(C) 2021 rAthena Development Team | ||
# https://rathena.org - https://github.com/rathena | ||
# | ||
# This program 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/>. | ||
# | ||
########################################################################### | ||
# Mob Item Ratio Database | ||
########################################################################### | ||
# | ||
# Mob Item Ratio Settings | ||
# | ||
########################################################################### | ||
# - Item AegisName of item to adjust. | ||
# Ratio Drop rate. | ||
# List: List of monster(s) affected (format <Aegis monster name>: true/false). (Defaulted to all monsters) | ||
########################################################################### | ||
|
||
Header: | ||
Type: MOB_ITEM_RATIO_DB | ||
Version: 1 | ||
|
||
Footer: | ||
Imports: | ||
- Path: db/import/mob_item_ratio.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
//===== rAthena Documentation ================================ | ||
//= Mob Item Ratio Database Structure | ||
//===== By: ================================================== | ||
//= rAthena Dev Team | ||
//===== Last Updated: ======================================== | ||
//= 20210624 | ||
//===== Description: ========================================= | ||
//= Explanation of the mob_item_ratio.yml file and structure. | ||
//============================================================ | ||
|
||
Item base drop rates defined in mob_db.yml will not get multiplied by global item_rate* values (aka drop rates) from | ||
conf/battle/drops.conf and instead, Ratio will be used (100 = 1x). | ||
If no Mob is specified, all monsters will be affected, otherwise only the ones listed. | ||
|
||
Examples: | ||
Jellopies from monsters will drop with 1x drop rate regardless of global drop rate | ||
Body: | ||
- Item: Jellopy | ||
Ratio: 100 | ||
|
||
Jellopies from monsters will drop with 10x drop rate regardless of global drop rate | ||
Body: | ||
- Item: Jellopy | ||
Ratio: 1000 | ||
|
||
Removes Jellopies from monsters drop | ||
Body: | ||
- Item: Jellopy | ||
Ratio: 0 | ||
|
||
Jellopies from Porings will drop with 1x drop rate. Other monsters that drop Jellopies are unaffected (use global drop rate). | ||
Body: | ||
- Item: Jellopy | ||
Ratio: 100 | ||
List: | ||
PORING: true | ||
|
||
Notes: | ||
- Does not override item_drop_*_min/max settings. | ||
- Does not affect card/item-granted drops. To adjust card/item-granted drops, edit them in item_db. | ||
- Does affect MVP prizes and Treasure Boxes. | ||
- You can add only ONE Ratio per Item. If you need various ratios for different monsters, override drop rate with Ratio=100 and edit base drop rates in mob_db. | ||
- This file is reloaded by @reloadmobdb. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Specific Item Drop Ratio Database | ||
# This file is a part of rAthena. | ||
# Copyright(C) 2021 rAthena Development Team | ||
# https://rathena.org - https://github.com/rathena | ||
# | ||
# This program 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/>. | ||
# | ||
########################################################################### | ||
# Mob Item Ratio Database | ||
########################################################################### | ||
# | ||
# Mob Item Ratio Settings | ||
# | ||
########################################################################### | ||
# - Item AegisName of item to adjust. | ||
# Ratio Drop rate. | ||
# List: List of monster(s) affected (format <Aegis monster name>: true/false). (Defaulted to all monsters) | ||
########################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.