[MIRROR] Meteor turfs typecache [MDB IGNORE] (#23565)

* Meteor turfs typecache (#78152)

## About The Pull Request

When looking why meteors randomly explode sometimes, the check has it
taking damage and exploding from turfs that it should just be flying
over. This creates a typecache of turfs the meteor shouldn't deplete
health from flying over. Most commonly openspace and asteroid baseturf.

## Why It's Good For The Game

Meteor is more likely to explode when it actually hits something vs
flying into an openspace tile.

## Changelog

🆑 LT3
fix: Meteors no longer take damage from crossing certain unoccupied
turfs
/🆑

---------

Co-authored-by: san7890 <the@ san7890.com>

* Meteor turfs typecache

---------

Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com>
Co-authored-by: san7890 <the@ san7890.com>
This commit is contained in:
SkyratBot
2023-09-07 10:22:10 -07:00
committed by GitHub
co-authored by san7890 lessthanthree
parent b20fd2a3be
commit 30e79f6cc1
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -56,7 +56,7 @@
var/turf/T = get_turf(loc)
ram_turf(T)
if(prob(10) && !isspaceturf(T))//randomly takes a 'hit' from ramming
if(prob(10) && !ispassmeteorturf(T))//randomly takes a 'hit' from ramming
get_hit()
if(z != z_original || loc == get_turf(dest))