Skip to content

Commit

Permalink
test quest
Browse files Browse the repository at this point in the history
  • Loading branch information
JasXSL committed May 3, 2018
1 parent ffc3293 commit 46dc456
Show file tree
Hide file tree
Showing 6 changed files with 472 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ExiWoW-Ero.toc
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ lib_Underwear.lua
lib_Loot.lua
# Spells
lib_Spells.lua
#Quests
lib_Quests.lua
31 changes: 31 additions & 0 deletions lib_Actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ aTable.actions = function(self)
local Effect = require("Effect");
local Func = require("Func");
local toggleVibHubProgram = Func.get("toggleVibHubProgram");
local Condition = require("Condition");

-- Fondle (Public) --
table.insert(out, Action:new({
Expand Down Expand Up @@ -133,6 +134,9 @@ aTable.actions = function(self)
end
}));




-- Pulsating mushroom consumable
table.insert(out, Action:new({
id = "PULSATING_MUSHROOM",
Expand Down Expand Up @@ -214,6 +218,33 @@ aTable.actions = function(self)
end
}));

-- Vine Squirm (Learned action) --
table.insert(out, Action:new({
id = "VINE_SQUIRM",
name = "Vine Squirm",
description = "Makes the target's Everliving Vine Thong squirm against their groin, provided they're wearing one.",
texture = "inv_misc_herb_nightmarevine",
cast_time = 2,
charges = 0,
rarity = 3,
cooldown = 3,
cast_sound_success = 47759,
cast_sound_loop = 27,
conditions = {
Condition:new({id="vineThongCheck", type=Condition.Types.RTYPE_UNDIES, data={["EVERLIVING_VINE_THONG"]=true}}),
Condition.get("melee_range"),
Condition.get("sender_not_moving"),
},
not_defaults = {},
fn_send = Action.sendRPText,
fn_receive = function(self, sender, target, args)
self:receiveRPText(sender, target, args) -- Default behavior
--TODO: Run effect
Effect.run("VINE_SQUIRM");
return true
end
}));

return out;

end
Expand Down
41 changes: 41 additions & 0 deletions lib_Effects.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ aTable.effects = function(self)
local Action = require("Action");
local RPText = require("RPText");
local Func = require("Func");
local Event = require("Event");
local out = {};

-- These are Effect effect definitions
Expand Down Expand Up @@ -226,6 +227,46 @@ aTable.effects = function(self)
end,
}));




table.insert(out, Effect:new({
id = "VINE_SQUIRM",
detrimental = true,
duration = 15,
max_stacks = 1,
ticking = 2,
texture = "Interface/Icons/spell_nature_magicimmunity",
name = "Squirming Thong",
description = "Your vine thong is squirming!",
sound_loop = 25152,
onAdd = function(self, binding, fromReload)
Effect.remByTagsNotThis(self, "VINE_THONG");
Func.get("toggleVibHubProgram")("VINE_THONG", math.huge);
local function onUnderwearChange()
if not ExiWoW.ME:getUnderwear() or ExiWoW.ME:getUnderwear().id ~= "EVERLIVING_VINE_THONG" then
Effect.remByID("VINE_SQUIRM");
end
end
self.onUnderwearEquip = Event.on(Event.Types.ACTION_UNDERWEAR_EQUIP, onUnderwearChange);
self.onUnderwearRemove = Event.on(Event.Types.ACTION_UNDERWEAR_UNEQUIP, onUnderwearChange);

end,
onTick = function()
local amount = 0.03;
ExiWoW.ME:addExcitement(amount);
end,
onRemove = function(self)
if self.onUnderwearEquip then Event.off(self.onUnderwearEquip); end
if self.onUnderwearRemove then Event.off(self.onUnderwearRemove); end
Func.get("toggleVibHubProgram")("VINE_THONG");
end,
tags = {"VINE_THONG"}
}));




-- MossyVine
table.insert(out, Effect:new({
id = "MossyVine",
Expand Down
Loading

0 comments on commit 46dc456

Please sign in to comment.