mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[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:
co-authored by
san7890
lessthanthree
parent
b20fd2a3be
commit
30e79f6cc1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user