Chrimbus Tree

This commit is contained in:
BlackMajor
2022-12-23 20:40:37 +13:00
parent ea30064f25
commit 362f539e12
4 changed files with 18 additions and 10 deletions

View File

@@ -8,22 +8,17 @@
icon = 'icons/obj/items_ch.dmi' icon = 'icons/obj/items_ch.dmi'
icon_state = "chomp_present" icon_state = "chomp_present"
item_state = "chomp_present" item_state = "chomp_present"
var/chaos = "I can do anything!" plane = ABOVE_MOB_PLANE
var/chaos
/obj/item/weapon/a_gift/advanced/New() /obj/item/weapon/a_gift/advanced/New()
..() ..()
pixel_x = rand(-10,10) icon_state += "_[pick("g","r","b","y","p")]"
pixel_y = rand(-10,10) if(prob(1))
chaos = rand(1, 100)
if(chaos == 1)
icon_state = "chomp_present_chaos" icon_state = "chomp_present_chaos"
chaos = TRUE chaos = TRUE
name = "chaotic present" name = "chaotic present"
desc = "The casino dev messed up and gave you the wrong present! This one pulses with potential for good or evil!" desc = "The casino dev messed up and gave you the wrong present! This one pulses with potential for good or evil!"
else
chaos = FALSE
item_state = icon_state
return return
/obj/item/weapon/a_gift/advanced/attack_self(mob/M as mob) //WIP - ALWAYS add more items to list! - Jack /obj/item/weapon/a_gift/advanced/attack_self(mob/M as mob) //WIP - ALWAYS add more items to list! - Jack
@@ -178,7 +173,7 @@
var/obj/item/I = null var/obj/item/I = null
if(chaos == TRUE) if(chaos)
if(!ispath(gift_type_chaos,/obj/item)) return if(!ispath(gift_type_chaos,/obj/item)) return
I = new gift_type_chaos(M) I = new gift_type_chaos(M)

View File

@@ -0,0 +1,12 @@
/obj/structure/loot_pile/christmas_tree
name = "festive tree"
desc = "Happy Holidays!"
icon = 'modular_chomp/icons/obj/loot_piles.dmi'
icon_state = "festivetree"
plane = ABOVE_MOB_PLANE
chance_uncommon = 0
chance_rare = 0
common_loot = list(/obj/item/weapon/a_gift/advanced)
pixel_x = -32
bound_width = 96
bound_height = 64

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -4509,6 +4509,7 @@
#include "modular_chomp\code\game\jobs\job\silicon.dm" #include "modular_chomp\code\game\jobs\job\silicon.dm"
#include "modular_chomp\code\game\machinery\airconditioner_ch.dm" #include "modular_chomp\code\game\machinery\airconditioner_ch.dm"
#include "modular_chomp\code\game\objects\items\clockwork\ratvarian_spear.dm" #include "modular_chomp\code\game\objects\items\clockwork\ratvarian_spear.dm"
#include "modular_chomp\code\game\objects\structures\loot_pile.dm"
#include "modular_chomp\code\game\objects\structures\watercloset_ch.dm" #include "modular_chomp\code\game\objects\structures\watercloset_ch.dm"
#include "modular_chomp\code\game\objects\structures\crate_lockers\largecrate.dm" #include "modular_chomp\code\game\objects\structures\crate_lockers\largecrate.dm"
#include "modular_chomp\code\game\turfs\simulated\outdoors\desert_planet.dm" #include "modular_chomp\code\game\turfs\simulated\outdoors\desert_planet.dm"