Add energy refill debug shortcut
This commit is contained in:
@@ -29,6 +29,10 @@ _InputService:ConnectEvent(KeyDownEvent, function(e)
|
||||
if self.DebugCtrlDown == true and self.DebugShiftDown == true then
|
||||
self:OpenDebugCardPicker()
|
||||
end
|
||||
elseif e.key == KeyboardKey.E then
|
||||
if self.DebugCtrlDown == true and self.DebugShiftDown == true then
|
||||
self:CheatFillEnergy()
|
||||
end
|
||||
end
|
||||
end)
|
||||
_InputService:ConnectEvent(KeyUpEvent, function(e)
|
||||
@@ -38,6 +42,12 @@ _InputService:ConnectEvent(KeyUpEvent, function(e)
|
||||
self.DebugShiftDown = false
|
||||
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)
|
||||
local errCode, value = ds:GetAndWait("ascensionUnlocked")
|
||||
local n = 0
|
||||
|
||||
Reference in New Issue
Block a user