mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
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:
@@ -902,7 +902,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/window/reinforced/tinted/frosted/spaw
|
||||
return ..()
|
||||
if(istype(W, /obj/item/paper) && atom_integrity < max_integrity)
|
||||
user.visible_message(span_notice("[user] starts to patch the holes in \the [src]."))
|
||||
if(do_after(user, 20, target = src))
|
||||
if(do_after(user, 2 SECONDS, target = src))
|
||||
atom_integrity = min(atom_integrity+4,max_integrity)
|
||||
qdel(W)
|
||||
user.visible_message(span_notice("[user] patches some of the holes in \the [src]."))
|
||||
|
||||
Reference in New Issue
Block a user