/**
 * Copyright © 2010, Res Interactive, LLC. All Rights Reserved.
 */
package com.tootsville.items;

import org.starhope.appius.game.inventory.InventoryItem;
import org.starhope.appius.game.inventory.effects.SimpleArmour;
import org.starhope.appius.user.UserTransients;

/**
 * An enchanted item which simply makes one slightly larger
 * 
 * @author brpocock@star-hope.org
 */
public class GrowSlightlyLarger extends SimpleArmour {

	/**
	 * @param theItem the item that makes one larger
	 */
	public GrowSlightlyLarger (final InventoryItem theItem) {
		super (theItem);
	}
	
	/**
	 * @see org.starhope.appius.game.inventory.ItemEffects#onDeEquip()
	 */
	@Override
	public void onDeEquip () {
		super.onDeEquip ();
		UserTransients.getEffects (item.getOwner ()).heightScalar = 1;
	}
	
	/**
	 * @see org.starhope.appius.game.inventory.ItemEffects#onEquip()
	 */
	@Override
	public void onEquip () {
		super.onEquip ();
		UserTransients.getEffects (item.getOwner ()).heightScalar = 1.16;
	}
	
}
