Clean up of code

Cleaned up some classes
Moved functionalities into more appropriate methods/classes
This commit is contained in:
CharonInferar
2014-04-06 02:08:55 +02:00
parent d4876fc87f
commit 065fe79945
16 changed files with 75 additions and 413 deletions
@@ -333,6 +333,13 @@ public class ResourceContainerObject extends TangibleObject {
if (isNewContainer)
this.stackCount = stackCount;
}
public void setStackCount(int stackCount,CreatureObject owner) {
this.stackCount = stackCount;
this.getAttributes().put("@obj_attr_n:resource_contents", this.getStackCount()+"/"+maximalStackCapacity);
if (stackCount>0)
this.sendDelta3(owner.getClient());
}
public short getColdResistance() {
return coldResistance;