AlertThiefSkill.java

com/planet_ink/coffee_mud/Abilities/Thief/AlertThiefSkill.java · 1.1 KB

From the archive CoffeeMud.zip

Download the archive   « Back to the archive contents

package com.planet_ink.coffee_mud.Abilities.Thief;

import com.planet_ink.coffee_mud.MOBS.interfaces.MOB;
import com.planet_ink.coffee_mud.core.*;

public class AlertThiefSkill extends ThiefSkill {
	public String ID() { return "AlertThiefSkill"; }
	public String name(){ return "an alert Thief Skill";}
    private static final int EXPERTISE_STAGES=10;
    private static final String[] EXPERTISE={"ALERT"};
    private static final String[] EXPERTISE_NAME={"Alertness"};
    public void initializeClass()
    {
        super.initializeClass();
        if(CMLib.expertises().getDefinition(EXPERTISE[0]+EXPERTISE_STAGES)==null)
            for(int i=1;i<=EXPERTISE_STAGES;i++)
                CMLib.expertises().addDefinition(EXPERTISE[0]+i,EXPERTISE_NAME[0]+" "+CMath.convertToRoman(i),
                        "","+WIS "+(11+i)+" -LEVEL +>="+(14+(5*i)),0,1,0,0,0);
        if(!ID().equals("AlertThiefSkill"))
            registerExpertiseUsage(EXPERTISE,EXPERTISE_STAGES,false,null);
    }
    protected int getXLevel(MOB mob){ return getExpertiseLevel(mob,EXPERTISE[0]);}
}

Site Stats

Snippets: 1791
Codebases: 571