Replaces a number of deciseconds into SECONDS (#82436)

## About The Pull Request
Using these search regexes:

Number ending in 0:
`do_after\((\w+), (\d+)0,`
Replace:
`do_after($1, $2 SECONDS,`

Single digit number:
`do_after\((\w+), [1-9],`
replace:
`do_after($1, 0.$2 SECONDS,`

Double:
`do_after\((\w+), (\d)([1-9]),`
Replace:
`do_after($1, $2.$3 SECONDS,`

## Why It's Good For The Game
Code readability
This commit is contained in:
Jeremiah
2024-04-04 18:56:08 -06:00
committed by GitHub
parent 6dc40ca522
commit 1443ef79d3
77 changed files with 137 additions and 122 deletions
+1 -1
View File
@@ -109,7 +109,7 @@
to_chat(user, span_warning("You need one [material.name] sheet to do this!"))
return
to_chat(user, span_notice("You start adding [material] to [src]..."))
if(do_after(user, 20, target = src) && material.use(1))
if(do_after(user, 2 SECONDS, target = src) && material.use(1))
make_new_table(toConstruct, null, carpet_type)
else
return ..()