Skip to content

Commit

Permalink
dont allow wands to be unusable when dropping from someone with highe…
Browse files Browse the repository at this point in the history
…r frame number then you
  • Loading branch information
bgkillas committed Dec 5, 2024
1 parent a7cefed commit 5246111
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions quant.ew/files/core/inventory_helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ end
function inventory_helper.deserialize_single_item(item_data)
local x, y = item_data[2], item_data[3]
local item = util.deserialize_entity(item_data[1], x, y)
local ability = ComponentGetValue2(item, "AbilityComponent")
if ability ~= nil then
ComponentSetValue2(ability, "mNextFrameUsable", 0)
ComponentSetValue2(ability, "mCastDelayStartFrame", 0)
ComponentSetValue2(ability, "mReloadNextFrameUsable", 0)
end

if item_data.shop_info ~= nil then
local item_cost_component = util.get_or_create_component(item, "ItemCostComponent")
Expand Down
2 changes: 1 addition & 1 deletion quant.ew/files/system/notplayer_ai/notplayer_ai.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ local water_mats = {"water", "swamp", "water_swamp", "water_salt", "blood", "mud
local ignore_spell = {"ANTIHEAL", "BLACK_HOLE", "BLACK_HOLE_DEATH_TRIGGER", "POWERDIGGER", "DIGGER", "PIPE_BOMB", "PIPE_BOMB_DEATH_TRIGGER", "GRENADE_LARGE", "CRUMBLING_EARTH", "HEAL_BULLET", "FISH",
"TELEPORT_PROJECTILE_CLOSER", "TELEPORT_PROJECTILE_STATIC", "SWAPPER_PROJECTILE", "TELEPORT_PROJECTILE", "TELEPORT_PROJECTILE_SHORT", "WHITE_HOLE", "CESSATION", "ADD_TRIGGER",
"ADD_TIMER", "ADD_DEATH_TRIGGER", "DIVIDE_2", "DIVIDE_3", "DIVIDE_4", "DIVIDE_10", "GAMMA", "MU", "ALPHA", "OMEGA", "PHI", "SIGMA", "TAU", "SUMMON_PORTAL", "DUPLICATE",
"IF_PROJECTILE", "IF_HP", "IF_ENEMY", "IF_HALF", "IF_ELSE", "IF_END", "ALL_SPELLS", "SUMMON_ROCK", "SUMMON_EGG", "SUMMON_HOLLOW_EGG", "PEBBLE", "COMMON_GRUB"}
"IF_PROJECTILE", "IF_HP", "IF_ENEMY", "IF_HALF", "IF_ELSE", "IF_END", "ALL_SPELLS", "SUMMON_ROCK", "SUMMON_EGG", "SUMMON_HOLLOW_EGG", "PEBBLE", "COMMON_GRUB", "TORCH", "TORCH_ELECTRIC"}

local function get_potions_of_type(type)
local potions = {}
Expand Down

0 comments on commit 5246111

Please sign in to comment.