mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +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:
@@ -592,7 +592,7 @@
|
||||
|
||||
semicd = TRUE
|
||||
|
||||
if(!bypass_timer && (!do_after(user, 120, target) || user.zone_selected != BODY_ZONE_PRECISE_MOUTH))
|
||||
if(!bypass_timer && (!do_after(user, 12 SECONDS, target) || user.zone_selected != BODY_ZONE_PRECISE_MOUTH))
|
||||
if(user)
|
||||
if(user == target)
|
||||
user.visible_message(span_notice("[user] decided not to shoot."))
|
||||
|
||||
@@ -651,7 +651,7 @@ GLOBAL_LIST_INIT(gun_saw_types, typecacheof(list(
|
||||
user.visible_message(span_danger("[src] goes off!"), span_danger("[src] goes off in your face!"))
|
||||
return
|
||||
|
||||
if(do_after(user, 30, target = src))
|
||||
if(do_after(user, 3 SECONDS, target = src))
|
||||
if(sawn_off)
|
||||
return
|
||||
user.visible_message(span_notice("[user] shortens [src]!"), span_notice("You shorten [src]."))
|
||||
@@ -681,7 +681,7 @@ GLOBAL_LIST_INIT(gun_saw_types, typecacheof(list(
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
balloon_alert(user, "cleaning...")
|
||||
|
||||
if(do_after(user, 100, target = src))
|
||||
if(do_after(user, 10 SECONDS, target = src))
|
||||
misfire_probability = initial(misfire_probability)
|
||||
balloon_alert(user, "fouling cleaned out")
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user