package com.planet_ink.coffee_mud.Items.MiscMagic; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; 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.Locales.interfaces.*; import com.planet_ink.coffee_mud.MOBS.interfaces.*; import com.planet_ink.coffee_mud.Races.interfaces.*; import java.util.*; import com.planet_ink.coffee_mud.Libraries.interfaces.*; /** * <p>Title: False Realities Flavored CoffeeMUD</p> * <p>Description: The False Realities Version of CoffeeMUD</p> * <p>Copyright: Copyright (c) 2004 Jeremy Vyska</p> * <p>Licensed under the Apache License, Version 2.0 (the "License"); * <p>you may not use this file except in compliance with the License. * <p>You may obtain a copy of the License at * * <p> http://www.apache.org/licenses/LICENSE-2.0 * * <p>Unless required by applicable law or agreed to in writing, software * <p>distributed under the License is distributed on an "AS IS" BASIS, * <p>WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * <p>See the License for the specific language governing permissions and * <p>limitations under the License. * <p>Company: http://www.falserealities.com</p> * @author FR - Jeremy Vyska; CM - Bo Zimmerman * @version 1.0.0.0 */ public class GenPowder extends StdPowder { public String ID(){ return "GenPowder";} public GenPowder() { super(); setName("a generic powder"); baseEnvStats.setWeight(1); setDisplayText("a generic powder sits here."); setDescription(""); baseGoldValue=1; baseEnvStats().setLevel(1); recoverEnvStats(); setMaterial(RawMaterial.RESOURCE_ASH); } public boolean isGeneric(){return true;} public String text() { return CMLib.coffeeMaker().getPropertiesStr(this,false); } public void setMiscText(String newText) { miscText=""; CMLib.coffeeMaker().setPropertiesStr(this,newText,false); recoverEnvStats(); } public String getStat(String code) { return CMLib.coffeeMaker().getGenItemStat(this,code);} public void setStat(String code, String val) { CMLib.coffeeMaker().setGenItemStat(this,code,val);} public String[] getStatCodes(){return CMObjectBuilder.GENITEMCODES;} public boolean sameAs(Environmental E) { if(!(E instanceof GenPowder)) return false; for(int i=0;i<getStatCodes().length;i++) if(!E.getStat(getStatCodes()[i]).equals(getStat(getStatCodes()[i]))) return false; return true; } }