<NME> Dolphin.java
<BEF> package com.planet_ink.coffee_mud.Races;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_ink.coffee_mud.CharClasses.interfaces.*;
import com.planet_ink.coffee_mud.Commands.interfaces.*;
import com.planet_ink.coffee_mud.Common.interfaces.*;
import com.planet_ink.coffee_mud.Exits.interfaces.*;
import com.planet_ink.coffee_mud.Items.interfaces.*;
import com.planet_ink.coffee_mud.Libraries.interfaces.*;
import com.planet_ink.coffee_mud.Locales.interfaces.*;
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;

import java.util.*;

/*
   Copyright 2016-2022 Bo Zimmerman

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

	   http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/
public class Dolphin extends Seal
{
	@Override
	public String ID()
	{
		return "Dolphin";
	}

	private final static String localizedStaticName = CMLib.lang().L("Dolphin");

	@Override
	public String name()
	{
		return localizedStaticName;
	}

	@Override
	public int shortestMale()
	{
		return 70;
	}

	@Override
	public int shortestFemale()
	{
		return 65;
	}

	@Override
	public int heightVariance()
	{
		return 10;
	}

	@Override
	public int lightestWeight()
	{
		return 300;
	}

	@Override
	public int weightVariance()
	{
		return 100;
	}

	@Override
	public int[] getBreathables()
	{
		return breatheAirWaterArray;
	}

	private final String[]					racialAbilityNames			= { "Aquan", "Skill_Swim", "Skill_AutoSwim","Skill_HighJump" };
	private final int[]						racialAbilityLevels			= { 1,1,1,15 };
	private final int[]						racialAbilityProficiencies	= { 100,100,100,50 };
	private final boolean[]					racialAbilityQuals			= { false,false,false,false };
	private final String[]					racialAbilityParms			= { "", "", "", "" };

	@Override
	protected String[] racialAbilityNames()
	{
		return racialAbilityNames;
	}

	@Override
	protected int[] racialAbilityLevels()
	{
		return racialAbilityLevels;
	}

	@Override
	protected int[] racialAbilityProficiencies()
	{
		return racialAbilityProficiencies;
	}

	@Override
	protected boolean[] racialAbilityQuals()
	{
		return racialAbilityQuals;
	}

	@Override
	public String[] racialAbilityParms()
	{
		return racialAbilityParms;
	}

	private final int[]	agingChart	= { 0, 2, 5, 8, 15, 25, 35, 45, 50 };

	@Override
	public int[] getAgingChart()
	{
		return agingChart;
	}

	@Override
	public void affectCharStats(final MOB affectedMOB, final CharStats affectableStats)
	{
		//super.affectCharStats(affectedMOB, affectableStats);
		affectableStats.setRacialStat(CharStats.STAT_INTELLIGENCE,1);
		affectableStats.setRacialStat(CharStats.STAT_STRENGTH,13);
		affectableStats.setRacialStat(CharStats.STAT_DEXTERITY,13);
		affectableStats.setRacialStat(CharStats.STAT_CHARISMA,20);
	}
				for(int i=0;i<8;i++)
				{
					resources.addElement(makeResource
					(L("some @x1",name().toLowerCase()),RawMaterial.RESOURCE_FISH));
				}
				for(int i=0;i<5;i++)
				{
		affectableStats.setStat(CharStats.STAT_STRENGTH,affectedMOB.baseCharStats().getStat(CharStats.STAT_STRENGTH));
		affectableStats.setStat(CharStats.STAT_MAX_STRENGTH_ADJ,affectedMOB.baseCharStats().getStat(CharStats.STAT_MAX_STRENGTH_ADJ));
		affectableStats.setStat(CharStats.STAT_DEXTERITY,affectedMOB.baseCharStats().getStat(CharStats.STAT_DEXTERITY));
		affectableStats.setStat(CharStats.STAT_MAX_DEXTERITY_ADJ,affectedMOB.baseCharStats().getStat(CharStats.STAT_MAX_DEXTERITY_ADJ));
		affectableStats.setStat(CharStats.STAT_CHARISMA,affectedMOB.baseCharStats().getStat(CharStats.STAT_CHARISMA));
		affectableStats.setStat(CharStats.STAT_MAX_CHARISMA_ADJ,affectedMOB.baseCharStats().getStat(CharStats.STAT_MAX_CHARISMA_ADJ));
	}

	@Override
	public String arriveStr()
	{
		return "flops in";
	}

	@Override
	public String leaveStr()
	{
		return "flops";
	}

	@Override
	public Weapon myNaturalWeapon()
	{
		if(naturalWeapon==null)
		{
			naturalWeapon=CMClass.getWeapon("StdWeapon");
			naturalWeapon.setName(L("a nose butt"));
			naturalWeapon.setMaterial(RawMaterial.RESOURCE_BONE);
			naturalWeapon.setUsesRemaining(1000);
			naturalWeapon.setWeaponDamageType(Weapon.TYPE_BASHING);
		}
		return naturalWeapon;
	}

	protected static Vector<RawMaterial> resources=new Vector<RawMaterial>();

	@Override
	public List<RawMaterial> myResources()
	{
		synchronized(resources)
		{
			if(resources.size()==0)
			{
				for(int i=0;i<8;i++)
				{
					resources.addElement(makeResource
					(L("some @x1 meat",name().toLowerCase()),RawMaterial.RESOURCE_FISH));
				}
				for(int i=0;i<5;i++)
				{
					resources.addElement(makeResource
					(L("a slippery @x1 hide",name().toLowerCase()),RawMaterial.RESOURCE_HIDE));
				}
				resources.addElement(makeResource
				(L("some @x1 blood",name().toLowerCase()),RawMaterial.RESOURCE_BLOOD));
			}
		}
		return resources;
	}
}

<MSG> dolphin rsc fix

git-svn-id: 0cdf8356e41b2d8ccbb41bb76c82068fe80b2514@16522 0d6f1817-ed0e-0410-87c9-987e46238f29

<DFF> @@ -140,7 +140,7 @@ public class Dolphin extends Seal
 				for(int i=0;i<8;i++)
 				{
 					resources.addElement(makeResource
-					(L("some @x1",name().toLowerCase()),RawMaterial.RESOURCE_FISH));
+					(L("some @x1 meat",name().toLowerCase()),RawMaterial.RESOURCE_FISH));
 				}
 				for(int i=0;i<5;i++)
 				{

{'commit': 'diff --git a/com/planet_ink/coffee_mud/Races/Dolphin.java b/com/planet_ink/coffee_mud/Races/Dolphin.java\nindex beb074321e..9c26002909 100644\n--- a/com/planet_ink/coffee_mud/Races/Dolphin.java\n+++ b/com/planet_ink/coffee_mud/Races/Dolphin.java\n@@ -140,7 +140,7 @@ public class Dolphin extends Seal\n \t\t\t\tfor(int i=0;i<8;i++)\r\n \t\t\t\t{\r\n \t\t\t\t\tresources.addElement(makeResource\r\n-\t\t\t\t\t(L("some @x1",name().toLowerCase()),RawMaterial.RESOURCE_FISH));\r\n+\t\t\t\t\t(L("some @x1 meat",name().toLowerCase()),RawMaterial.RESOURCE_FISH));\r\n \t\t\t\t}\r\n \t\t\t\tfor(int i=0;i<5;i++)\r\n \t\t\t\t{\r\n', 'commit_subject': 'dolphin rsc fix', 'repo_name': 'bozimmerman/CoffeeMud', 'committer': {'name': 'bozimmerman', 'email': 'dc45fe023482b3b890b5e574e53c1d051f45b1ef@zimmers.net', 'time_sec': '1528617917', 'tz_offset': '0', 'date': {'seconds': '1528617917'}}, 'commit_tree': '3d2c2802e3bdd2173d319d30137eb012aaa7717a', 'commit_message': 'dolphin rsc fix\n\ngit-svn-id: 0cdf8356e41b2d8ccbb41bb76c82068fe80b2514@16522 0d6f1817-ed0e-0410-87c9-987e46238f29\n', 'language_name': 'HTML', 'license': 'apache-2.0', 'hunks': '@@ -140,7 +140,7 @@ public class Dolphin extends Seal\n \t\t\t\tfor(int i=0;i<8;i++)\r\n \t\t\t\t{\r\n \t\t\t\t\tresources.addElement(makeResource\r\n-\t\t\t\t\t(L("some @x1",name().toLowerCase()),RawMaterial.RESOURCE_FISH));\r\n+\t\t\t\t\t(L("some @x1 meat",name().toLowerCase()),RawMaterial.RESOURCE_FISH));\r\n \t\t\t\t}\r\n \t\t\t\tfor(int i=0;i<5;i++)\r\n \t\t\t\t{\r\n', 'addition_count': 1, 'deletion_count': 1, 'src_file': 'a/com/planet_ink/coffee_mud/Races/Dolphin.java', 'tgt_file': 'b/com/planet_ink/coffee_mud/Races/Dolphin.java', 'file_extension': '.java', 'before_file': 'package com.planet_ink.coffee_mud.Races;\nimport com.planet_ink.coffee_mud.core.interfaces.*;\nimport com.planet_ink.coffee_mud.core.*;\nimport com.planet_ink.coffee_mud.core.collections.*;\nimport com.planet_ink.coffee_mud.Abilities.interfaces.*;\nimport com.planet_ink.coffee_mud.Areas.interfaces.*;\nimport com.planet_ink.coffee_mud.Behaviors.interfaces.*;\nimport com.planet_ink.coffee_mud.CharClasses.interfaces.*;\nimport com.planet_ink.coffee_mud.Commands.interfaces.*;\nimport com.planet_ink.coffee_mud.Common.interfaces.*;\nimport com.planet_ink.coffee_mud.Exits.interfaces.*;\nimport com.planet_ink.coffee_mud.Items.interfaces.*;\nimport com.planet_ink.coffee_mud.Libraries.interfaces.*;\nimport com.planet_ink.coffee_mud.Locales.interfaces.*;\nimport com.planet_ink.coffee_mud.MOBS.interfaces.*;\nimport com.planet_ink.coffee_mud.Races.interfaces.*;\n\nimport java.util.*;\n\n/*\n   Copyright 2016-2022 Bo Zimmerman\n\n   Licensed under the Apache License, Version 2.0 (the "License");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n\t   http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an "AS IS" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n*/\npublic class Dolphin extends Seal\n{\n\t@Override\n\tpublic String ID()\n\t{\n\t\treturn "Dolphin";\n\t}\n\n\tprivate final static String localizedStaticName = CMLib.lang().L("Dolphin");\n\n\t@Override\n\tpublic String name()\n\t{\n\t\treturn localizedStaticName;\n\t}\n\n\t@Override\n\tpublic int shortestMale()\n\t{\n\t\treturn 70;\n\t}\n\n\t@Override\n\tpublic int shortestFemale()\n\t{\n\t\treturn 65;\n\t}\n\n\t@Override\n\tpublic int heightVariance()\n\t{\n\t\treturn 10;\n\t}\n\n\t@Override\n\tpublic int lightestWeight()\n\t{\n\t\treturn 300;\n\t}\n\n\t@Override\n\tpublic int weightVariance()\n\t{\n\t\treturn 100;\n\t}\n\n\t@Override\n\tpublic int[] getBreathables()\n\t{\n\t\treturn breatheAirWaterArray;\n\t}\n\n\tprivate final String[]\t\t\t\t\tracialAbilityNames\t\t\t= { "Aquan", "Skill_Swim", "Skill_AutoSwim","Skill_HighJump" };\n\tprivate final int[]\t\t\t\t\t\tracialAbilityLevels\t\t\t= { 1,1,1,15 };\n\tprivate final int[]\t\t\t\t\t\tracialAbilityProficiencies\t= { 100,100,100,50 };\n\tprivate final boolean[]\t\t\t\t\tracialAbilityQuals\t\t\t= { false,false,false,false };\n\tprivate final String[]\t\t\t\t\tracialAbilityParms\t\t\t= { "", "", "", "" };\n\n\t@Override\n\tprotected String[] racialAbilityNames()\n\t{\n\t\treturn racialAbilityNames;\n\t}\n\n\t@Override\n\tprotected int[] racialAbilityLevels()\n\t{\n\t\treturn racialAbilityLevels;\n\t}\n\n\t@Override\n\tprotected int[] racialAbilityProficiencies()\n\t{\n\t\treturn racialAbilityProficiencies;\n\t}\n\n\t@Override\n\tprotected boolean[] racialAbilityQuals()\n\t{\n\t\treturn racialAbilityQuals;\n\t}\n\n\t@Override\n\tpublic String[] racialAbilityParms()\n\t{\n\t\treturn racialAbilityParms;\n\t}\n\n\tprivate final int[]\tagingChart\t= { 0, 2, 5, 8, 15, 25, 35, 45, 50 };\n\n\t@Override\n\tpublic int[] getAgingChart()\n\t{\n\t\treturn agingChart;\n\t}\n\n\t@Override\n\tpublic void affectCharStats(final MOB affectedMOB, final CharStats affectableStats)\n\t{\n\t\t//super.affectCharStats(affectedMOB, affectableStats);\n\t\taffectableStats.setRacialStat(CharStats.STAT_INTELLIGENCE,1);\n\t\taffectableStats.setRacialStat(CharStats.STAT_STRENGTH,13);\n\t\taffectableStats.setRacialStat(CharStats.STAT_DEXTERITY,13);\n\t\taffectableStats.setRacialStat(CharStats.STAT_CHARISMA,20);\n\t}\n\t\t\t\tfor(int i=0;i<8;i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tresources.addElement(makeResource\r\n\t\t\t\t\t(L("some @x1",name().toLowerCase()),RawMaterial.RESOURCE_FISH));\r\n\t\t\t\t}\r\n\t\t\t\tfor(int i=0;i<5;i++)\r\n\t\t\t\t{\r\n\t\taffectableStats.setStat(CharStats.STAT_STRENGTH,affectedMOB.baseCharStats().getStat(CharStats.STAT_STRENGTH));\n\t\taffectableStats.setStat(CharStats.STAT_MAX_STRENGTH_ADJ,affectedMOB.baseCharStats().getStat(CharStats.STAT_MAX_STRENGTH_ADJ));\n\t\taffectableStats.setStat(CharStats.STAT_DEXTERITY,affectedMOB.baseCharStats().getStat(CharStats.STAT_DEXTERITY));\n\t\taffectableStats.setStat(CharStats.STAT_MAX_DEXTERITY_ADJ,affectedMOB.baseCharStats().getStat(CharStats.STAT_MAX_DEXTERITY_ADJ));\n\t\taffectableStats.setStat(CharStats.STAT_CHARISMA,affectedMOB.baseCharStats().getStat(CharStats.STAT_CHARISMA));\n\t\taffectableStats.setStat(CharStats.STAT_MAX_CHARISMA_ADJ,affectedMOB.baseCharStats().getStat(CharStats.STAT_MAX_CHARISMA_ADJ));\n\t}\n\n\t@Override\n\tpublic String arriveStr()\n\t{\n\t\treturn "flops in";\n\t}\n\n\t@Override\n\tpublic String leaveStr()\n\t{\n\t\treturn "flops";\n\t}\n\n\t@Override\n\tpublic Weapon myNaturalWeapon()\n\t{\n\t\tif(naturalWeapon==null)\n\t\t{\n\t\t\tnaturalWeapon=CMClass.getWeapon("StdWeapon");\n\t\t\tnaturalWeapon.setName(L("a nose butt"));\n\t\t\tnaturalWeapon.setMaterial(RawMaterial.RESOURCE_BONE);\n\t\t\tnaturalWeapon.setUsesRemaining(1000);\n\t\t\tnaturalWeapon.setWeaponDamageType(Weapon.TYPE_BASHING);\n\t\t}\n\t\treturn naturalWeapon;\n\t}\n\n\tprotected static Vector<RawMaterial> resources=new Vector<RawMaterial>();\n\n\t@Override\n\tpublic List<RawMaterial> myResources()\n\t{\n\t\tsynchronized(resources)\n\t\t{\n\t\t\tif(resources.size()==0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<8;i++)\n\t\t\t\t{\n\t\t\t\t\tresources.addElement(makeResource\n\t\t\t\t\t(L("some @x1 meat",name().toLowerCase()),RawMaterial.RESOURCE_FISH));\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<5;i++)\n\t\t\t\t{\n\t\t\t\t\tresources.addElement(makeResource\n\t\t\t\t\t(L("a slippery @x1 hide",name().toLowerCase()),RawMaterial.RESOURCE_HIDE));\n\t\t\t\t}\n\t\t\t\tresources.addElement(makeResource\n\t\t\t\t(L("some @x1 blood",name().toLowerCase()),RawMaterial.RESOURCE_BLOOD));\n\t\t\t}\n\t\t}\n\t\treturn resources;\n\t}\n}\n', 'message': 'dolphin rsc fix\n\ngit-svn-id: 0cdf8356e41b2d8ccbb41bb76c82068fe80b2514@16522 0d6f1817-ed0e-0410-87c9-987e46238f29\n', 'author_name': 'bozimmerman', 'lang': 'java'}