Updated pending totem logic
Pending totem logic was only storing the latest pending totem. Refactored it to have a pending totem for each element type so that they do not overwrite when using throwset.
This commit is contained in:
@@ -47,6 +47,12 @@ COE.TotemsAvailable["Air"] = 0;
|
||||
-------------------------------------------------------------------]]
|
||||
COE["ActiveTotems"] = {Earth = nil, Fire = nil, Water = nil, Air = nil};
|
||||
COE["TotemPending"] = {Totem = nil, UseRank = 0, Timeout = 0.75};
|
||||
COE["PendingTotems"] = {
|
||||
Earth = {Totem = nil, Rank = 0, TimeoutStartMS = 0},
|
||||
Fire = {Totem = nil, Rank = 0, TimeoutStartMS = 0},
|
||||
Water = {Totem = nil, Rank = 0, TimeoutStartMS = 0},
|
||||
Air = {Totem = nil, Rank = 0, TimeoutStartMS = 0}
|
||||
};
|
||||
|
||||
--[[ ----------------------------------------------------------------
|
||||
COE.CleansingTotems stores pointers to the buttons and totems
|
||||
|
||||
Reference in New Issue
Block a user