MCPcopy Index your code
hub / github.com/hovancik/stretchly / decreaseDanger

Function decreaseDanger

app/main.js:1043–1049  ·  view source on GitHub ↗
(amount)

Source from the content-addressed store, hash-verified

1041}
1042
1043function decreaseDanger (amount) {
1044 if (!settings.get('breakHealthMode')) {
1045 return
1046 }
1047 danger = Math.max(danger - amount, 0)
1048 log.info(`Stretchly: danger decreased to ${danger}`)
1049}
1050
1051function enterManualAwaitPhase (type, shouldPlaySound) {
1052 const isMini = type === 'mini'

Callers 4

initializeFunction · 0.85
startMicrobreakFunction · 0.85
startBreakFunction · 0.85
main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected