Bug Fixes: Issue #215 + #235 & Minor improvements.

(BugFix) Officer group buff's will now check ranges
(BugFix) Group buffs applied when a player joins a group as long as they
are within range
(BugFix) /inspire will now take a command string for target
(BugFix) /imagedesign will now take a command string for target
This commit is contained in:
Waverunner
2014-03-27 11:23:15 -04:00
parent c63c602367
commit bb85682bd6
23 changed files with 101 additions and 29 deletions
+5 -2
View File
@@ -27,7 +27,10 @@ def run(core, actor, target, commandString):
if commandString == "kitty":
commandString = "technokitty"
if commandString is None or commandString == "":
commandString == installedEmote
if commandString != installedEmote and installedEmote != 'all':
actor.sendSystemMessage('Your installed Holo-Emote generator does not support that emote.', 0)
return
@@ -47,7 +50,7 @@ def holoPrompt(player, emote):
if player.getHoloEmoteUses() == 1:
remainingCharges = "You have 1 charge remaining.\n"
body = "To play a Holo-Emote, type /holoemote <name>." \
body = "To play a Holo-Emote, type /holoemote <name>.\n" \
"To delete your Holo-Emote type /holoemote delete.\n" \
"Purchasing a new Holo-Emote will automatically delete your current Holo-Emote.\n" \
"\n" \
+6 -1
View File
@@ -7,13 +7,18 @@ def setup():
def run(core, actor, target, commandString):
if target is None:
if target is None and commandString is None:
design = ImageDesignStartMessage(actor.getObjectId(), actor.getObjectId(), target.getObjectId())
obj = ObjControllerMessage(11, design)
actor.getClient().getSession().write(obj.serialize())
return
else:
if target is None and commandString is not None:
target = core.chatService.getObjectByFirstName(commandString)
if target is None:
return
if target.getGroupId() == actor.getGroupId():
tDesign = ImageDesignStartMessage(target.getObjectId(), actor.getObjectId(), target.getObjectId())
+5
View File
@@ -17,6 +17,11 @@ def run(core, actor, target, commandString):
actor.getClient().getSession().write(objController.serialize())
return
if target is None and commandString is not None:
target = core.chatService.getObjectByFirstName(commandString)
if target is None:
return
if actor.getPosture() != 0x09 and target.getObjectId() != actor.getObjectId():
actor.sendSystemMessage('@performance:insp_buff_must_perform', 2)
return
+4 -1
View File
@@ -4,6 +4,9 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_buff_def_1')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_buff_def_1', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_buff_def_2')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_buff_def_2', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_buff_def_3')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_buff_def_3', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_buff_def_4')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_buff_def_4', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_buff_def_5')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_buff_def_5', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_buff_def_6')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_buff_def_6', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_buff_def_7')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_buff_def_7', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_buff_def_8')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_buff_def_8', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_buff_def_9')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_buff_def_9', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_drillmaster_1')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_drillmaster_1', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_focus_fire_1')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_focus_fire_1', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_focus_fire_2')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_focus_fire_2', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_focus_fire_3')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_focus_fire_3', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_focus_fire_4')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_focus_fire_4', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_focus_fire_5')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_focus_fire_5', actor)
return
+3 -1
View File
@@ -4,6 +4,8 @@ def setup(core, actor, buff):
return
def run(core, actor, target, commandString):
core.buffService.addGroupBuff(actor, 'of_focus_fire_6')
if target is None:
target = actor
core.buffService.addGroupBuff(target, 'of_focus_fire_6', actor)
return