mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-06 07:22:42 +00:00
Fixed a runtime in airflow, made it so that stuff doesn't fly around every 3.5 seconds.
This commit is contained in:
@@ -59,7 +59,7 @@ vs_control/var
|
||||
airflow_damage = 0.3
|
||||
airflow_stun = 0.15
|
||||
airflow_speed_decay = 1
|
||||
airflow_delay = 35 //Time in deciseconds before they can be moved by airflow again.
|
||||
airflow_delay = 350 //Time in deciseconds before they can be moved by airflow again.
|
||||
airflow_mob_slowdown = 3 //Time in tenths of a second to add as a delay to each movement by a mob.\
|
||||
Only active if they are fighting the pull of the airflow.
|
||||
airflow_stun_cooldown = 10 //How long, in tenths of a second, to wait before stunning them again.
|
||||
@@ -350,7 +350,7 @@ mob/airflow_hit(atom/A)
|
||||
for(var/mob/M in hearers(src))
|
||||
M.show_message("\red <B>[src] slams into [A]!</B>",1,"\red You hear a loud slam!",2)
|
||||
playsound(src.loc, "smash.ogg", 25, 1, -1)
|
||||
weakened = max(weakened, (A.vars["w_class"] ? A:w_class : rand(1,5))) //Heheheh
|
||||
weakened = max(weakened, (istype(A,/obj/item) ? A:w_class : rand(1,5))) //Heheheh
|
||||
. = ..()
|
||||
|
||||
obj/airflow_hit(atom/A)
|
||||
|
||||
Reference in New Issue
Block a user