mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-31 07:58:22 +01:00
Fix some CanPass stuff
This commit is contained in:
@@ -3,14 +3,6 @@
|
||||
/atom/var/pressure_resistance = ONE_ATMOSPHERE
|
||||
/atom/var/can_atmos_pass = ATMOS_PASS_YES
|
||||
|
||||
// Purpose: Determines if the object can pass this atom.
|
||||
// Called by: Movement.
|
||||
// Inputs: The moving atom, target turf.
|
||||
// Outputs: Boolean if can pass.
|
||||
// Airflow and ZAS zones now uses CanZASPass() instead of this proc.
|
||||
/atom/proc/CanPass(atom/movable/mover, turf/target)
|
||||
return !density
|
||||
|
||||
// Purpose: Determines if airflow is allowed between T and loc.
|
||||
// Called by: Airflow.
|
||||
// Inputs: The turf the airflow is from, which may not be the same as loc. is_zone is for conditionally disallowing merging.
|
||||
|
||||
+1
-1
@@ -170,7 +170,7 @@ If it gains pressure too slowly, it may leak or just rupture instead of explodin
|
||||
continue
|
||||
|
||||
//Spread the fire.
|
||||
if(prob( 50 + 50 * (firelevel/vsc.fire_firelevel_multiplier) ) && my_tile.CanPass(null, enemy_tile, 0,0) && enemy_tile.CanPass(null, my_tile, 0,0))
|
||||
if(prob( 50 + 50 * (firelevel/vsc.fire_firelevel_multiplier) ) && my_tile.CanPass(src, enemy_tile) && enemy_tile.CanPass(src, my_tile))
|
||||
enemy_tile.create_fire(firelevel)
|
||||
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user