123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- /*
- * 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/>.
- */
- package com.l2jserver.gameserver.model;
- /**
- * Stats definition for each pet level.
- * @author JIV, Zoey76
- */
- public class L2PetLevelData
- {
- private final int _ownerExpTaken;
- private final int _petFeedBattle;
- private final int _petFeedNormal;
- private final float _petMAtk;
- private final long _petMaxExp;
- private final int _petMaxFeed;
- private final float _petMaxHP;
- private final float _petMaxMP;
- private final float _petMDef;
- private final float _petPAtk;
- private final float _petPDef;
- private final float _petRegenHP;
- private final float _petRegenMP;
- private final short _petSoulShot;
- private final short _petSpiritShot;
-
- public L2PetLevelData(StatsSet set)
- {
- _ownerExpTaken = set.getInteger("get_exp_type");
- _petMaxExp = set.getLong("exp");
- _petMaxHP = set.getFloat("org_hp");
- _petMaxMP = set.getFloat("org_mp");
- _petPAtk = set.getFloat("org_pattack");
- _petPDef = set.getFloat("org_pdefend");
- _petMAtk = set.getFloat("org_mattack");
- _petMDef = set.getFloat("org_mdefend");
- _petMaxFeed = set.getInteger("max_meal");
- _petFeedBattle = set.getInteger("consume_meal_in_battle");
- _petFeedNormal = set.getInteger("consume_meal_in_normal");
- _petRegenHP = set.getFloat("org_hp_regen");
- _petRegenMP = set.getFloat("org_mp_regen");
- _petSoulShot = set.getShort("soulshot_count");
- _petSpiritShot = set.getShort("spiritshot_count");
- }
-
- /**
- * @return the owner's experience points consumed by the pet.
- */
- public int getOwnerExpTaken()
- {
- return _ownerExpTaken;
- }
-
- /**
- * @return the pet's food consume rate at battle state.
- */
- public int getPetFeedBattle()
- {
- return _petFeedBattle;
- }
-
- /**
- * @return the pet's food consume rate at normal state.
- */
- public int getPetFeedNormal()
- {
- return _petFeedNormal;
- }
-
- /**
- * @return the pet's Magical Attack.
- */
- public float getPetMAtk()
- {
- return _petMAtk;
- }
-
- /**
- * @return the pet's maximum experience points.
- */
- public long getPetMaxExp()
- {
- return _petMaxExp;
- }
-
- /**
- * @return the pet's maximum feed points.
- */
- public int getPetMaxFeed()
- {
- return _petMaxFeed;
- }
-
- /**
- * @return the pet's maximum HP.
- */
- public float getPetMaxHP()
- {
- return _petMaxHP;
- }
-
- /**
- * @return the pet's maximum MP.
- */
- public float getPetMaxMP()
- {
- return _petMaxMP;
- }
-
- /**
- * @return the pet's Magical Defense.
- */
- public float getPetMDef()
- {
- return _petMDef;
- }
-
- /**
- * @return the pet's Physical Attack.
- */
- public float getPetPAtk()
- {
- return _petPAtk;
- }
-
- /**
- * @return the pet's Physical Defense.
- */
- public float getPetPDef()
- {
- return _petPDef;
- }
-
- /**
- * @return the pet's HP regeneration rate.
- */
- public float getPetRegenHP()
- {
- return _petRegenHP;
- }
-
- /**
- * @return the pet's MP regeneration rate.
- */
- public float getPetRegenMP()
- {
- return _petRegenMP;
- }
-
- /**
- * @return the pet's soulshot use count.
- */
- public short getPetSoulShot()
- {
- return _petSoulShot;
- }
-
- /**
- * @return the pet's spiritshot use count.
- */
- public short getPetSpiritShot()
- {
- return _petSpiritShot;
- }
- }
|