<NME> Thief_Poison.java
<BEF> package com.planet_ink.coffee_mud.Abilities.Thief;
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.*;
public class Thief_Poison extends ThiefSkill
{
	public String ID() { return "Thief_Poison"; }
	public String name(){ return "Poison";}
	public String displayText(){ return "(Poisoned)";}
	protected int canAffectCode(){return CAN_MOBS;}
	protected int canTargetCode(){return CAN_MOBS;}
import com.planet_ink.coffee_mud.MOBS.interfaces.*;
import com.planet_ink.coffee_mud.Races.interfaces.*;

import java.util.*;

/*
   Copyright 2001-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 Thief_Poison extends ThiefSkill
{
	// **
	// This is a deprecated skill provided only
	// for backwards compatibility.  It has been
	// replaced with Thief_UsePoison
	// **
	@Override
	public String ID()
	{
		return "Thief_Poison";
	}

	private final static String	localizedName	= CMLib.lang().L("Deprecated Poison");

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

	@Override
	public String displayText()
	{
		return "";
	}

	@Override
	protected int canAffectCode()
	{
		return 0;
	}

	@Override
	protected int canTargetCode()
	{
		return CAN_MOBS;
	}

	@Override
	public int abstractQuality()
	{
		return Ability.QUALITY_MALICIOUS;
	}

	@Override
	public int classificationCode()
	{
		return Ability.ACODE_THIEF_SKILL|Ability.DOMAIN_POISONING;
	}

	private static final String[]	triggerStrings	= I(new String[] { "DOPOISON" });

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

	@Override
	public int usageType()
	{
		return USAGE_MOVEMENT | USAGE_MANA;
	}

	@Override
	public boolean invoke(final MOB mob, final List<String> commands, final Physical givenTarget, final boolean auto, final int asLevel)
	{
		final MOB target=this.getTarget(mob,commands,givenTarget);
		if(target==null)
			return false;

		if(!super.invoke(mob,commands,givenTarget,auto,asLevel))
			return false;

		final boolean success=proficiencyCheck(mob,0,auto);

		String str=null;
		if(success)
		{
			str=auto?"":L("^F^<FIGHT^><S-NAME> attempt(s) to poison <T-NAMESELF>!^</FIGHT^>^?");
			final CMMsg msg=CMClass.getMsg(mob,target,this,CMMsg.MSG_THIEF_ACT,str,CMMsg.MSK_MALICIOUS_MOVE|CMMsg.MSG_THIEF_ACT|(auto?CMMsg.MASK_ALWAYS:0),str,CMMsg.MSG_NOISYMOVEMENT,str);
			final CMMsg msg2=CMClass.getMsg(mob,target,this,CMMsg.MASK_MALICIOUS|CMMsg.TYP_POISON,null,CMMsg.MASK_MALICIOUS|CMMsg.TYP_POISON|(auto?CMMsg.MASK_ALWAYS:0),null,CMMsg.NO_EFFECT,null);
			CMLib.color().fixSourceFightColor(msg);
			final Room R=mob.location();
			if(R.okMessage(mob,msg) && R.okMessage(mob,msg2))
			{
				R.send(mob,msg);
				R.send(mob,msg2);
				if((msg.value()<=0) && (msg2.value()<=0))
				{
					final Ability A=CMClass.getAbility("Poison");
					A.invoke(mob,target,true,asLevel);
					if(target.fetchEffect("Poison")!=null)
						mob.tell(L("@x1 is now poisoned.",target.name()));
				}
			}
		}
		else
			return maliciousFizzle(mob,target,L("<S-NAME> attempt(s) to poison <T-NAMESELF>, but fail(s)."));

		return success;
	}
}

<MSG> 

git-svn-id: svn://192.168.1.10/public/CoffeeMud@1900 0d6f1817-ed0e-0410-87c9-987e46238f29

<DFF> @@ -8,7 +8,7 @@ import java.util.*;
 public class Thief_Poison extends ThiefSkill
 {
 	public String ID() { return "Thief_Poison"; }
-	public String name(){ return "Poison";}
+	public String name(){ return "Poisoning";}
 	public String displayText(){ return "(Poisoned)";}
 	protected int canAffectCode(){return CAN_MOBS;}
 	protected int canTargetCode(){return CAN_MOBS;}

{'commit': 'diff --git a/com/planet_ink/coffee_mud/Abilities/Druid/Chant_Earthquake.java b/com/planet_ink/coffee_mud/Abilities/Druid/Chant_Earthquake.java\nindex db1e03ad91..30620fb028 100644\n--- a/com/planet_ink/coffee_mud/Abilities/Druid/Chant_Earthquake.java\n+++ b/com/planet_ink/coffee_mud/Abilities/Druid/Chant_Earthquake.java\n@@ -7,8 +7,8 @@ import java.util.*;\n public class Chant_Earthquake extends Chant\r\n {\r\n \tpublic String ID() { return "Chant_Earthquake"; }\r\n-\tpublic String name(){ return "Earthquake";}\r\n-\tpublic String displayText(){return "(Earthquake)";}\r\n+\tpublic String name(){ return "Quake";}\r\n+\tpublic String displayText(){return "(Quaking)";}\r\n \tpublic int quality(){return Ability.MALICIOUS;}\r\n \tpublic int maxRange(){return 3;}\r\n \tprotected int canAffectCode(){return 0;}\r\ndiff --git a/com/planet_ink/coffee_mud/Abilities/Misc/Poison.java b/com/planet_ink/coffee_mud/Abilities/Misc/Poison.java\nindex ce0b9edc99..7e98f92884 100644\n--- a/com/planet_ink/coffee_mud/Abilities/Misc/Poison.java\n+++ b/com/planet_ink/coffee_mud/Abilities/Misc/Poison.java\n@@ -9,7 +9,7 @@ public class Poison extends StdAbility\n {\r\n \tint poisonTick=3;\r\n \tpublic String ID() { return "Poison"; }\r\n-\tpublic String name(){ return "Poison";}\r\n+\tpublic String name(){ return "Poisonous";}\r\n \tpublic String displayText(){ return "(Poisoned)";}\r\n \tprotected int canAffectCode(){return CAN_MOBS;}\r\n \tprotected int canTargetCode(){return CAN_MOBS;}\r\ndiff --git a/com/planet_ink/coffee_mud/Abilities/Thief/Thief_Poison.java b/com/planet_ink/coffee_mud/Abilities/Thief/Thief_Poison.java\nindex 626822f971..94487f2fd9 100644\n--- a/com/planet_ink/coffee_mud/Abilities/Thief/Thief_Poison.java\n+++ b/com/planet_ink/coffee_mud/Abilities/Thief/Thief_Poison.java\n@@ -8,7 +8,7 @@ import java.util.*;\n public class Thief_Poison extends ThiefSkill\r\n {\r\n \tpublic String ID() { return "Thief_Poison"; }\r\n-\tpublic String name(){ return "Poison";}\r\n+\tpublic String name(){ return "Poisoning";}\r\n \tpublic String displayText(){ return "(Poisoned)";}\r\n \tprotected int canAffectCode(){return CAN_MOBS;}\r\n \tprotected int canTargetCode(){return CAN_MOBS;}\r\ndiff --git a/com/planet_ink/coffee_mud/Commands/base/Help.java b/com/planet_ink/coffee_mud/Commands/base/Help.java\nindex 1368199416..829057c023 100644\n--- a/com/planet_ink/coffee_mud/Commands/base/Help.java\n+++ b/com/planet_ink/coffee_mud/Commands/base/Help.java\n@@ -203,9 +203,9 @@ public class Help\n \t\t\t\t\tfor(int c=0;c<CMClass.charClasses.size();c++)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tCharClass C=(CharClass)CMClass.charClasses.elementAt(c);\r\n-\t\t\t\t\t\tif((!C.ID().equalsIgnoreCase("Archon"))\r\n-\t\t\t\t\t\t&&(CMAble.getQualifyingLevel(C.ID(),A.ID())>=0))\r\n-\t\t\t\t\t\t\tavail.addElement(C.name());\r\n+\t\t\t\t\t\tint lvl=CMAble.getQualifyingLevel(C.ID(),A.ID());\r\n+\t\t\t\t\t\tif((!C.ID().equalsIgnoreCase("Archon"))&&(lvl>=0))\r\n+\t\t\t\t\t\t\tavail.addElement(C.name()+"("+lvl+")");\r\n \t\t\t\t\t}\r\n \t\t\t\t\tfor(int c=0;c<avail.size();c++)\r\n \t\t\t\t\t{\r\ndiff --git a/guides/bugs.txt b/guides/bugs.txt\nindex 7958848c2c..cfc551b7b5 100644\n--- a/guides/bugs.txt\n+++ b/guides/bugs.txt\n@@ -2,4 +2,3 @@ bug look for alternate materials in the common skills\n Damn Scriptable Behavior\r\n poison looks funny too.\r\n view.n A large golden statue adorns \r\n-Put qualifying levels in the classes list for <ABILITY> help\n\\ No newline at end of file\ndiff --git a/resources/arc_help.ini b/resources/arc_help.ini\nindex a555bae834..e8c348d052 100644\n--- a/resources/arc_help.ini\n+++ b/resources/arc_help.ini\n@@ -1274,8 +1274,9 @@ Description: \\n\\r\\\n This mob property makes them unable to recall or magically leave their present location. \\\r\n It also prevents fleeing from combat.\r\n \r\n+PIOSONOUS=POISON\r\n POISON=\\\r\n-Ability    : Poison\\n\\r\\\r\n+Ability    : Poisonous\\n\\r\\\r\n Parameters : \\n\\r\\\r\n Example    : \\n\\r\\\r\n Description: \\n\\r\\\r\ndiff --git a/resources/chant_help.ini b/resources/chant_help.ini\nindex 41acf16cf1..f382e2b914 100644\n--- a/resources/chant_help.ini\n+++ b/resources/chant_help.ini\n@@ -80,9 +80,10 @@ This chant will allow the Druid to summon one of his or her magical plants to a\n The plant will grow at the place specified, and will be subject to the druids "my plants" skill, \\\r\n as well as "tangle", and "plant pass".\r\n \r\n+QUAKE=CHANT_EARTHQUAKE\r\n CHANT_EARTHQUAKE=<ABILITY>\\\r\n-Usage    : CHANT EARTHQUAKE\\n\\r\\\r\n-Example  : chant "earthquake"\\n\\r\\\r\n+Usage    : CHANT QUAKE\\n\\r\\\r\n+Example  : chant "quake"\\n\\r\\\r\n This powerful chant will cause the earth beneath the druids enemies to begin shaking violently. \\\r\n Those effected will take damage from the rattling, and will probably fall down.\r\n \r\ndiff --git a/resources/skill_help.ini b/resources/skill_help.ini\nindex a10a35a309..2a0b1145d5 100644\n--- a/resources/skill_help.ini\n+++ b/resources/skill_help.ini\n@@ -405,7 +405,8 @@ Usage    : PICK [DIRECTION, or EXIT NAME]\\n\\r\\\n Example  : pick e\\n\\r\\\r\n The thief attempts pick the lock on a door.\r\n \r\n-POISON=<ABILITY>\\\r\n+POISONING=THIEF_POISON\r\n+THIEF_POISON=<ABILITY>\\\r\n Usage    : POISON [OPPONENT NAME] \\n\\r\\\r\n Example  : poison orc\\n\\r\\\r\n The thief attempts to inflict a poisonous wound on his \\\r\n', 'commit_subject': '', 'repo_name': 'bozimmerman/CoffeeMud', 'committer': {'name': 'bozimmerman', 'email': 'dc45fe023482b3b890b5e574e53c1d051f45b1ef@zimmers.net', 'time_sec': '1049743816', 'tz_offset': '0', 'date': {'seconds': '1049743816'}}, 'commit_tree': '6e09b7230d24818b383ced96eb5212a3b5408d59', 'commit_message': '\n\ngit-svn-id: svn://192.168.1.10/public/CoffeeMud@1900 0d6f1817-ed0e-0410-87c9-987e46238f29\n', 'language_name': 'HTML', 'license': 'apache-2.0', 'hunks': '@@ -8,7 +8,7 @@ import java.util.*;\n public class Thief_Poison extends ThiefSkill\r\n {\r\n \tpublic String ID() { return "Thief_Poison"; }\r\n-\tpublic String name(){ return "Poison";}\r\n+\tpublic String name(){ return "Poisoning";}\r\n \tpublic String displayText(){ return "(Poisoned)";}\r\n \tprotected int canAffectCode(){return CAN_MOBS;}\r\n \tprotected int canTargetCode(){return CAN_MOBS;}\r\n', 'addition_count': 1, 'deletion_count': 1, 'src_file': 'a/com/planet_ink/coffee_mud/Abilities/Thief/Thief_Poison.java', 'tgt_file': 'b/com/planet_ink/coffee_mud/Abilities/Thief/Thief_Poison.java', 'file_extension': '.java', 'before_file': 'package com.planet_ink.coffee_mud.Abilities.Thief;\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.*;\npublic class Thief_Poison extends ThiefSkill\r\n{\r\n\tpublic String ID() { return "Thief_Poison"; }\r\n\tpublic String name(){ return "Poison";}\r\n\tpublic String displayText(){ return "(Poisoned)";}\r\n\tprotected int canAffectCode(){return CAN_MOBS;}\r\n\tprotected int canTargetCode(){return CAN_MOBS;}\r\nimport com.planet_ink.coffee_mud.MOBS.interfaces.*;\nimport com.planet_ink.coffee_mud.Races.interfaces.*;\n\nimport java.util.*;\n\n/*\n   Copyright 2001-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 Thief_Poison extends ThiefSkill\n{\n\t// **\n\t// This is a deprecated skill provided only\n\t// for backwards compatibility.  It has been\n\t// replaced with Thief_UsePoison\n\t// **\n\t@Override\n\tpublic String ID()\n\t{\n\t\treturn "Thief_Poison";\n\t}\n\n\tprivate final static String\tlocalizedName\t= CMLib.lang().L("Deprecated Poison");\n\n\t@Override\n\tpublic String name()\n\t{\n\t\treturn localizedName;\n\t}\n\n\t@Override\n\tpublic String displayText()\n\t{\n\t\treturn "";\n\t}\n\n\t@Override\n\tprotected int canAffectCode()\n\t{\n\t\treturn 0;\n\t}\n\n\t@Override\n\tprotected int canTargetCode()\n\t{\n\t\treturn CAN_MOBS;\n\t}\n\n\t@Override\n\tpublic int abstractQuality()\n\t{\n\t\treturn Ability.QUALITY_MALICIOUS;\n\t}\n\n\t@Override\n\tpublic int classificationCode()\n\t{\n\t\treturn Ability.ACODE_THIEF_SKILL|Ability.DOMAIN_POISONING;\n\t}\n\n\tprivate static final String[]\ttriggerStrings\t= I(new String[] { "DOPOISON" });\n\n\t@Override\n\tpublic String[] triggerStrings()\n\t{\n\t\treturn triggerStrings;\n\t}\n\n\t@Override\n\tpublic int usageType()\n\t{\n\t\treturn USAGE_MOVEMENT | USAGE_MANA;\n\t}\n\n\t@Override\n\tpublic boolean invoke(final MOB mob, final List<String> commands, final Physical givenTarget, final boolean auto, final int asLevel)\n\t{\n\t\tfinal MOB target=this.getTarget(mob,commands,givenTarget);\n\t\tif(target==null)\n\t\t\treturn false;\n\n\t\tif(!super.invoke(mob,commands,givenTarget,auto,asLevel))\n\t\t\treturn false;\n\n\t\tfinal boolean success=proficiencyCheck(mob,0,auto);\n\n\t\tString str=null;\n\t\tif(success)\n\t\t{\n\t\t\tstr=auto?"":L("^F^<FIGHT^><S-NAME> attempt(s) to poison <T-NAMESELF>!^</FIGHT^>^?");\n\t\t\tfinal CMMsg msg=CMClass.getMsg(mob,target,this,CMMsg.MSG_THIEF_ACT,str,CMMsg.MSK_MALICIOUS_MOVE|CMMsg.MSG_THIEF_ACT|(auto?CMMsg.MASK_ALWAYS:0),str,CMMsg.MSG_NOISYMOVEMENT,str);\n\t\t\tfinal CMMsg msg2=CMClass.getMsg(mob,target,this,CMMsg.MASK_MALICIOUS|CMMsg.TYP_POISON,null,CMMsg.MASK_MALICIOUS|CMMsg.TYP_POISON|(auto?CMMsg.MASK_ALWAYS:0),null,CMMsg.NO_EFFECT,null);\n\t\t\tCMLib.color().fixSourceFightColor(msg);\n\t\t\tfinal Room R=mob.location();\n\t\t\tif(R.okMessage(mob,msg) && R.okMessage(mob,msg2))\n\t\t\t{\n\t\t\t\tR.send(mob,msg);\n\t\t\t\tR.send(mob,msg2);\n\t\t\t\tif((msg.value()<=0) && (msg2.value()<=0))\n\t\t\t\t{\n\t\t\t\t\tfinal Ability A=CMClass.getAbility("Poison");\n\t\t\t\t\tA.invoke(mob,target,true,asLevel);\n\t\t\t\t\tif(target.fetchEffect("Poison")!=null)\n\t\t\t\t\t\tmob.tell(L("@x1 is now poisoned.",target.name()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\treturn maliciousFizzle(mob,target,L("<S-NAME> attempt(s) to poison <T-NAMESELF>, but fail(s)."));\n\n\t\treturn success;\n\t}\n}\n', 'message': '\n\ngit-svn-id: svn://192.168.1.10/public/CoffeeMud@1900 0d6f1817-ed0e-0410-87c9-987e46238f29\n', 'author_name': 'bozimmerman', 'lang': 'java'}