Added action skill mod

This commit is contained in:
Seefo
2014-03-31 22:03:39 -04:00
parent 515cb92ce7
commit f93a7b68db
3 changed files with 18 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
import sys
def add(core, actor, name, base):
actor.addSkillMod(name, base)
actor.setMaxAction(actor.getMaxAction() + base)
return
def deduct(core, actor, name, base):
actor.deductSkillMod(name, base)
actor.setMaxAction(actor.getMaxAction() - base)
return
+2
View File
@@ -100,6 +100,8 @@ public class BuffService implements INetworkDispatch {
return null;
}
if(target.hasBuff(buffName)) return null;
final Buff buff = new Buff(buffName, target.getObjectID());
if(target.getSlottedObject("ghost") != null)
buff.setTotalPlayTime(((PlayerObject) target.getSlottedObject("ghost")).getTotalPlayTime());
+4 -2
View File
@@ -534,11 +534,13 @@ public class ObjectService implements INetworkDispatch {
{
if(object.getAttachment("tempUseCount") != null)
{
int useCount = (int)object.getAttachment("tempUseCount"); // Placeholder until delta for stack count/use count
int useCount = (int)object.getAttachment("tempUseCount"); // Seefo: Placeholder until delta for stack count/use count
if(useCount - 1 == 0) destroyObject(object);
if((useCount - 1) == 0) destroyObject(object);
else object.setAttachment("tempUseCount", useCount--);
}
// Seefo: We need to add cool downs for buff items
core.buffService.addBuffToCreature(creature, object.getStringAttribute("proc_name").replace("@ui_buff:", ""), creature);
}