Merge pull request #13318 from MMMiracles/snowiscold

New Away Mission: Snow Valley+snow atmos
This commit is contained in:
tkdrg
2015-12-16 21:01:07 -03:00
29 changed files with 1531 additions and 23 deletions
@@ -3,6 +3,7 @@ Mineral Sheets
Contains:
- Sandstone
- Diamond
- Snow
- Uranium
- Plasma
- Gold
@@ -237,6 +238,32 @@ var/global/list/datum/stack_recipe/clown_recipes = list ( \
pixel_y = rand(0,4)-4
..()
/*
* Snow
*/
/obj/item/stack/sheet/mineral/snow
name = "snow"
icon_state = "sheet-snow"
singular_name = "snow block"
force = 1
throwforce = 2
w_class = 3
throw_speed = 1
throw_range = 3
origin_tech = "materials=1"
sheettype = "snow"
var/global/list/datum/stack_recipe/snow_recipes = list ( \
new/datum/stack_recipe("Snow Wall",/turf/simulated/wall/mineral/snow, 5, one_per_turf = 1, on_floor = 1), \
new/datum/stack_recipe("Snowman", /obj/structure/statue/snow/snowman, 5, one_per_turf = 1, on_floor = 1), \
new/datum/stack_recipe("Snowball", /obj/item/toy/snowball, 1), \
)
/obj/item/stack/sheet/mineral/snow/New(var/loc, var/amount=null)
recipes = snow_recipes
pixel_x = rand(0,4)-4
pixel_y = rand(0,4)-4
..()
/****************************** Others ****************************/
+22 -1
View File
@@ -1,5 +1,5 @@
/* Toys!
* ContainsL
* Contains
* Balloons
* Fake singularity
* Toy gun
@@ -18,6 +18,7 @@
* Beach ball
* Toy xeno
* Kitty toys!
* Snowballs
*/
@@ -1168,6 +1169,26 @@
else
user << "<span class='alert'>Nothing happens.</span>"
/*
* Snowballs
*/
/obj/item/toy/snowball
name = "snowball"
desc = "A compact ball of snow. Good for throwing at people."
icon = 'icons/obj/toy.dmi'
icon_state = "snowball"
throwforce = 12 //pelt your enemies to death with lumps of snow
/obj/item/toy/snowball/afterattack(atom/target as mob|obj|turf|area, mob/user)
user.drop_item()
src.throw_at(target, throw_range, throw_speed)
/obj/item/toy/snowball/throw_impact(atom/hit_atom)
if(!..())
playsound(src, 'sound/effects/pop.ogg', 20, 1)
qdel(src)
/*
* Beach ball
*/