8 changed files with 0 additions and 216 deletions
			
			
		| @ -1,26 +0,0 @@@@ -1,26 +0,0 @@ | ||||
| // • ▌ ▄ ·.  ▄▄▄·  ▄▄ • ▪   ▄▄· ▄▄▄▄·  ▄▄▄·  ▐▄▄▄  ▄▄▄ .
 | ||||
| // ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
 | ||||
| // ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
 | ||||
| // ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
 | ||||
| // ▀▀  █▪▀▀▀ ▀  ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀  ▀  ▀ ▀▀  █▪ ▀▀▀
 | ||||
| //      Magicbane Emulator Project © 2013 - 2022
 | ||||
| //                www.magicbane.com
 | ||||
| 
 | ||||
| package engine.loot; | ||||
| 
 | ||||
| import java.util.ArrayList; | ||||
| 
 | ||||
| public class GenTable { | ||||
|     public ArrayList<GenTableRow> rows = new ArrayList<GenTableRow>(); | ||||
| 
 | ||||
|     public GenTableRow getRowForRange(int roll) { | ||||
| 
 | ||||
|         GenTableRow outRow = null; | ||||
| 
 | ||||
|         for (GenTableRow iteration : this.rows) | ||||
|             if (roll >= iteration.minRoll && roll <= iteration.maxRoll) | ||||
|                 outRow = iteration; | ||||
| 
 | ||||
|         return outRow; | ||||
|     } | ||||
| } | ||||
| @ -1,28 +0,0 @@@@ -1,28 +0,0 @@ | ||||
| // • ▌ ▄ ·.  ▄▄▄·  ▄▄ • ▪   ▄▄· ▄▄▄▄·  ▄▄▄·  ▐▄▄▄  ▄▄▄ .
 | ||||
| // ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
 | ||||
| // ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
 | ||||
| // ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
 | ||||
| // ▀▀  █▪▀▀▀ ▀  ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀  ▀  ▀ ▀▀  █▪ ▀▀▀
 | ||||
| //      Magicbane Emulator Project © 2013 - 2022
 | ||||
| //                www.magicbane.com
 | ||||
| 
 | ||||
| package engine.loot; | ||||
| 
 | ||||
| import java.sql.ResultSet; | ||||
| import java.sql.SQLException; | ||||
| 
 | ||||
| public class GenTableRow { | ||||
|     public int minRoll; | ||||
|     public int maxRoll; | ||||
|     public int itemTableID; | ||||
|     public int pModTable; | ||||
|     public int sModTable; | ||||
| 
 | ||||
|     public GenTableRow(ResultSet rs) throws SQLException { | ||||
|         this.minRoll = rs.getInt("minRoll"); | ||||
|         this.maxRoll = rs.getInt("maxRoll"); | ||||
|         this.itemTableID = rs.getInt("itemTableID"); | ||||
|         this.pModTable = rs.getInt("pModTableID"); | ||||
|         this.sModTable = rs.getInt("sModTableID"); | ||||
|     } | ||||
| } | ||||
| @ -1,29 +0,0 @@@@ -1,29 +0,0 @@ | ||||
| // • ▌ ▄ ·.  ▄▄▄·  ▄▄ • ▪   ▄▄· ▄▄▄▄·  ▄▄▄·  ▐▄▄▄  ▄▄▄ .
 | ||||
| // ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
 | ||||
| // ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
 | ||||
| // ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
 | ||||
| // ▀▀  █▪▀▀▀ ▀  ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀  ▀  ▀ ▀▀  █▪ ▀▀▀
 | ||||
| //      Magicbane Emulator Project © 2013 - 2022
 | ||||
| //                www.magicbane.com
 | ||||
| 
 | ||||
| package engine.loot; | ||||
| 
 | ||||
| import java.util.ArrayList; | ||||
| 
 | ||||
| public class ItemTable { | ||||
|     public ArrayList<ItemTableRow> rows = new ArrayList<>(); | ||||
| 
 | ||||
|     public ItemTableRow getRowForRange(int roll) { | ||||
| 
 | ||||
|         if (roll > 320) | ||||
|             roll = 320; | ||||
| 
 | ||||
|         ItemTableRow outRow = null; | ||||
| 
 | ||||
|         for (ItemTableRow iteration : this.rows) | ||||
|             if (roll >= iteration.minRoll && roll <= iteration.maxRoll) | ||||
|                 outRow = iteration; | ||||
| 
 | ||||
|         return outRow; | ||||
|     } | ||||
| } | ||||
| @ -1,28 +0,0 @@@@ -1,28 +0,0 @@ | ||||
| // • ▌ ▄ ·.  ▄▄▄·  ▄▄ • ▪   ▄▄· ▄▄▄▄·  ▄▄▄·  ▐▄▄▄  ▄▄▄ .
 | ||||
| // ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
 | ||||
| // ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
 | ||||
| // ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
 | ||||
| // ▀▀  █▪▀▀▀ ▀  ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀  ▀  ▀ ▀▀  █▪ ▀▀▀
 | ||||
| //      Magicbane Emulator Project © 2013 - 2022
 | ||||
| //                www.magicbane.com
 | ||||
| 
 | ||||
| package engine.loot; | ||||
| 
 | ||||
| import java.sql.ResultSet; | ||||
| import java.sql.SQLException; | ||||
| 
 | ||||
| public class ItemTableRow { | ||||
|     public int minRoll; | ||||
|     public int maxRoll; | ||||
|     public int cacheID; | ||||
|     public int minSpawn; | ||||
|     public int maxSpawn; | ||||
| 
 | ||||
|     public ItemTableRow(ResultSet rs) throws SQLException { | ||||
|         this.minRoll = rs.getInt("minRoll"); | ||||
|         this.maxRoll = rs.getInt("maxRoll"); | ||||
|         this.cacheID = rs.getInt("itemBaseUUID"); | ||||
|         this.minSpawn = rs.getInt("minSpawn"); | ||||
|         this.maxSpawn = rs.getInt("maxSpawn"); | ||||
|     } | ||||
| } | ||||
| @ -1,29 +0,0 @@@@ -1,29 +0,0 @@ | ||||
| // • ▌ ▄ ·.  ▄▄▄·  ▄▄ • ▪   ▄▄· ▄▄▄▄·  ▄▄▄·  ▐▄▄▄  ▄▄▄ .
 | ||||
| // ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
 | ||||
| // ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
 | ||||
| // ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
 | ||||
| // ▀▀  █▪▀▀▀ ▀  ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀  ▀  ▀ ▀▀  █▪ ▀▀▀
 | ||||
| //      Magicbane Emulator Project © 2013 - 2022
 | ||||
| //                www.magicbane.com
 | ||||
| 
 | ||||
| package engine.loot; | ||||
| 
 | ||||
| import java.util.ArrayList; | ||||
| 
 | ||||
| public class ModTable { | ||||
|     public ArrayList<ModTableRow> rows = new ArrayList<ModTableRow>(); | ||||
| 
 | ||||
|     public ModTableRow getRowForRange(int roll) { | ||||
| 
 | ||||
|         if (roll > 320) | ||||
|             roll = 320; | ||||
| 
 | ||||
|         ModTableRow outRow = null; | ||||
| 
 | ||||
|         for (ModTableRow iteration : this.rows) | ||||
|             if (roll >= iteration.minRoll && roll <= iteration.maxRoll) | ||||
|                 outRow = iteration; | ||||
| 
 | ||||
|         return outRow; | ||||
|     } | ||||
| } | ||||
| @ -1,26 +0,0 @@@@ -1,26 +0,0 @@ | ||||
| // • ▌ ▄ ·.  ▄▄▄·  ▄▄ • ▪   ▄▄· ▄▄▄▄·  ▄▄▄·  ▐▄▄▄  ▄▄▄ .
 | ||||
| // ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
 | ||||
| // ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
 | ||||
| // ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
 | ||||
| // ▀▀  █▪▀▀▀ ▀  ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀  ▀  ▀ ▀▀  █▪ ▀▀▀
 | ||||
| //      Magicbane Emulator Project © 2013 - 2022
 | ||||
| //                www.magicbane.com
 | ||||
| 
 | ||||
| package engine.loot; | ||||
| 
 | ||||
| import java.sql.ResultSet; | ||||
| import java.sql.SQLException; | ||||
| 
 | ||||
| public class ModTableRow { | ||||
|     public int minRoll; | ||||
|     public int maxRoll; | ||||
|     public String action; | ||||
|     public int level; | ||||
| 
 | ||||
|     public ModTableRow(ResultSet rs) throws SQLException { | ||||
|         this.minRoll = rs.getInt("minRoll"); | ||||
|         this.maxRoll = rs.getInt("maxRoll"); | ||||
|         this.action = rs.getString("action"); | ||||
|         this.level = rs.getInt("level"); | ||||
|     } | ||||
| } | ||||
| @ -1,26 +0,0 @@@@ -1,26 +0,0 @@ | ||||
| // • ▌ ▄ ·.  ▄▄▄·  ▄▄ • ▪   ▄▄· ▄▄▄▄·  ▄▄▄·  ▐▄▄▄  ▄▄▄ .
 | ||||
| // ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
 | ||||
| // ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
 | ||||
| // ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
 | ||||
| // ▀▀  █▪▀▀▀ ▀  ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀  ▀  ▀ ▀▀  █▪ ▀▀▀
 | ||||
| //      Magicbane Emulator Project © 2013 - 2022
 | ||||
| //                www.magicbane.com
 | ||||
| 
 | ||||
| package engine.loot; | ||||
| 
 | ||||
| import java.util.ArrayList; | ||||
| 
 | ||||
| public class ModTypeTable { | ||||
|     public ArrayList<ModTypeTableRow> rows = new ArrayList<>(); | ||||
| 
 | ||||
|     public ModTypeTableRow getRowForRange(int roll) { | ||||
| 
 | ||||
|         ModTypeTableRow outRow = null; | ||||
| 
 | ||||
|         for (ModTypeTableRow iteration : this.rows) | ||||
|             if (roll >= iteration.minRoll && roll <= iteration.maxRoll) | ||||
|                 return iteration; | ||||
| 
 | ||||
|         return outRow; | ||||
|     } | ||||
| } | ||||
| @ -1,24 +0,0 @@@@ -1,24 +0,0 @@ | ||||
| // • ▌ ▄ ·.  ▄▄▄·  ▄▄ • ▪   ▄▄· ▄▄▄▄·  ▄▄▄·  ▐▄▄▄  ▄▄▄ .
 | ||||
| // ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
 | ||||
| // ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
 | ||||
| // ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
 | ||||
| // ▀▀  █▪▀▀▀ ▀  ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀  ▀  ▀ ▀▀  █▪ ▀▀▀
 | ||||
| //      Magicbane Emulator Project © 2013 - 2022
 | ||||
| //                www.magicbane.com
 | ||||
| 
 | ||||
| package engine.loot; | ||||
| 
 | ||||
| import java.sql.ResultSet; | ||||
| import java.sql.SQLException; | ||||
| 
 | ||||
| public class ModTypeTableRow { | ||||
|     public int minRoll; | ||||
|     public int maxRoll; | ||||
|     public int modTableID; | ||||
| 
 | ||||
|     public ModTypeTableRow(ResultSet rs) throws SQLException { | ||||
|         this.minRoll = rs.getInt("minRoll"); | ||||
|         this.maxRoll = rs.getInt("maxRoll"); | ||||
|         this.modTableID = rs.getInt("subTableID"); | ||||
|     } | ||||
| } | ||||
					Loading…
					
					
				
		Reference in new issue