mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 06:54:18 +01:00
Updates SDQL2 to the latest TG version and adds variable protection. (#17997)
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * discord protection --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
|
||||
for(var/i = 0;i<name_count;i++)
|
||||
new_name = ""
|
||||
for(var/x = rand(Floor(syllable_count/syllable_divisor),syllable_count);x>0;x--)
|
||||
for(var/x = rand(FLOOR(syllable_count/syllable_divisor),syllable_count);x>0;x--)
|
||||
new_name += pick(syllables)
|
||||
full_name += " [capitalize(lowertext(new_name))]"
|
||||
|
||||
|
||||
@@ -392,7 +392,7 @@
|
||||
to_chat(src, SPAN_WARNING("You slipped on [slipped_on]!"))
|
||||
playsound(src.loc, 'sound/misc/slip.ogg', 50, 1, -3)
|
||||
Stun(stun_duration)
|
||||
Weaken(Floor(stun_duration/2))
|
||||
Weaken(FLOOR(stun_duration/2))
|
||||
return 1
|
||||
|
||||
/mob/living/carbon/proc/add_chemical_effect(var/effect, var/magnitude = 1)
|
||||
|
||||
@@ -1918,9 +1918,9 @@
|
||||
//Get fluffy numbers
|
||||
/mob/living/carbon/human/proc/blood_pressure()
|
||||
if(status_flags & FAKEDEATH)
|
||||
return list(Floor(species.bp_base_systolic+rand(-5,5))*0.25, Floor(species.bp_base_disatolic+rand(-5,5))*0.25)
|
||||
return list(FLOOR(species.bp_base_systolic+rand(-5,5))*0.25, FLOOR(species.bp_base_disatolic+rand(-5,5))*0.25)
|
||||
var/blood_result = get_blood_circulation()
|
||||
return list(Floor((species.bp_base_systolic+rand(-5,5))*(blood_result/100)), Floor((species.bp_base_disatolic+rand(-5,5))*(blood_result/100)))
|
||||
return list(FLOOR((species.bp_base_systolic+rand(-5,5))*(blood_result/100)), FLOOR((species.bp_base_disatolic+rand(-5,5))*(blood_result/100)))
|
||||
|
||||
//Formats blood pressure for text display
|
||||
/mob/living/carbon/human/proc/get_blood_pressure()
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
return FALSE
|
||||
if(world.time < user.last_special)
|
||||
if(!silent)
|
||||
to_chat(user, SPAN_WARNING("You cannot maneuver again for another [Floor((user.last_special - world.time)*0.1)] second\s."))
|
||||
to_chat(user, SPAN_WARNING("You cannot maneuver again for another [FLOOR((user.last_special - world.time)*0.1)] second\s."))
|
||||
return FALSE
|
||||
if(!isipc(user))
|
||||
if(user.stamina < stamina_cost)
|
||||
|
||||
@@ -825,7 +825,7 @@
|
||||
|
||||
//Robots take half damage from basic attacks.
|
||||
/mob/living/silicon/robot/attack_generic(var/mob/user, var/damage, var/attack_message)
|
||||
return ..(user,Floor(damage/2),attack_message)
|
||||
return ..(user,FLOOR(damage/2),attack_message)
|
||||
|
||||
/mob/living/silicon/robot/proc/allowed(mob/M)
|
||||
// Check if the borg doesn't require any access at all
|
||||
|
||||
@@ -464,7 +464,7 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
|
||||
return
|
||||
M.shakecamera = current_time + max(TICKS_PER_RECOIL_ANIM, duration)
|
||||
strength = abs(strength)*PIXELS_PER_STRENGTH_VAL
|
||||
var/steps = min(1, Floor(duration/TICKS_PER_RECOIL_ANIM))-1
|
||||
var/steps = min(1, FLOOR(duration/TICKS_PER_RECOIL_ANIM))-1
|
||||
animate(M.client, pixel_x = rand(-(strength), strength), pixel_y = rand(-(strength), strength), time = TICKS_PER_RECOIL_ANIM, easing = JUMP_EASING|EASE_IN)
|
||||
if(steps)
|
||||
for(var/i = 1 to steps)
|
||||
|
||||
Reference in New Issue
Block a user