Add energy refill debug shortcut
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -29,6 +29,10 @@ _InputService:ConnectEvent(KeyDownEvent, function(e)
|
|||||||
if self.DebugCtrlDown == true and self.DebugShiftDown == true then
|
if self.DebugCtrlDown == true and self.DebugShiftDown == true then
|
||||||
self:OpenDebugCardPicker()
|
self:OpenDebugCardPicker()
|
||||||
end
|
end
|
||||||
|
elseif e.key == KeyboardKey.E then
|
||||||
|
if self.DebugCtrlDown == true and self.DebugShiftDown == true then
|
||||||
|
self:CheatFillEnergy()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
_InputService:ConnectEvent(KeyUpEvent, function(e)
|
_InputService:ConnectEvent(KeyUpEvent, function(e)
|
||||||
@@ -38,6 +42,12 @@ _InputService:ConnectEvent(KeyUpEvent, function(e)
|
|||||||
self.DebugShiftDown = false
|
self.DebugShiftDown = false
|
||||||
end
|
end
|
||||||
end)`),
|
end)`),
|
||||||
|
method('CheatFillEnergy', `if self.RunActive ~= true or self.CombatOver == true then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
self.Energy = self.MaxEnergy
|
||||||
|
self:RenderPiles()
|
||||||
|
self:Toast("치트: 에너지 회복")`),
|
||||||
method('ReqLoadAscension', `local ds = _DataStorageService:GetUserDataStorage(userId)
|
method('ReqLoadAscension', `local ds = _DataStorageService:GetUserDataStorage(userId)
|
||||||
local errCode, value = ds:GetAndWait("ascensionUnlocked")
|
local errCode, value = ds:GetAndWait("ascensionUnlocked")
|
||||||
local n = 0
|
local n = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user