mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-27 17:57:22 -04:00
Added action skill mod
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user