mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
[IDB IGNORE][MDB IGNORE] Adds Jungleland as a randomly chosen alternative to Lavaland, [Bounty] (#14802)
This commit is contained in:
@@ -21,10 +21,18 @@
|
||||
C.parallax_layers_cached = list()
|
||||
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_1(null, C.view)
|
||||
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_2(null, C.view)
|
||||
if(HAS_TRAIT(SSstation, STATION_TRAIT_MOONSCORCH))
|
||||
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet/moonscorch(null, C.view)
|
||||
else
|
||||
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet(null, C.view)
|
||||
|
||||
if(!GLOB.minetype)
|
||||
stack_trace("GLOB.minetype wasn't set when creating parallax! uh oh!!")
|
||||
|
||||
if(GLOB.minetype == MINETYPE_LAVALAND)
|
||||
if(HAS_TRAIT(SSstation, STATION_TRAIT_MOONSCORCH))
|
||||
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet/moonscorch(null, C.view)
|
||||
else
|
||||
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet(null, C.view)
|
||||
if(GLOB.minetype == MINETYPE_JUNGLE)
|
||||
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet/jungle(null, C.view)
|
||||
|
||||
if(SSparallax.random_layer)
|
||||
C.parallax_layers_cached += new SSparallax.random_layer
|
||||
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_3(null, C.view)
|
||||
@@ -341,3 +349,6 @@
|
||||
|
||||
/atom/movable/screen/parallax_layer/planet/update_o()
|
||||
return //Shit wont move
|
||||
|
||||
/atom/movable/screen/parallax_layer/planet/jungle
|
||||
icon_state = "jungleland"
|
||||
|
||||
@@ -114,7 +114,8 @@
|
||||
user.do_attack_animation(O)
|
||||
O.attacked_by(src, user)
|
||||
user.weapon_slow(src)
|
||||
take_damage(rand(weapon_stats[DAMAGE_LOW], weapon_stats[DAMAGE_HIGH]), sound_effect = FALSE)
|
||||
if(!QDELETED(src))
|
||||
take_damage(rand(weapon_stats[DAMAGE_LOW], weapon_stats[DAMAGE_HIGH]), sound_effect = FALSE)
|
||||
|
||||
/atom/movable/proc/attacked_by()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user