mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Chrimbus Tree
This commit is contained in:
@@ -8,22 +8,17 @@
|
||||
icon = 'icons/obj/items_ch.dmi'
|
||||
icon_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()
|
||||
..()
|
||||
pixel_x = rand(-10,10)
|
||||
pixel_y = rand(-10,10)
|
||||
chaos = rand(1, 100)
|
||||
if(chaos == 1)
|
||||
icon_state += "_[pick("g","r","b","y","p")]"
|
||||
if(prob(1))
|
||||
icon_state = "chomp_present_chaos"
|
||||
chaos = TRUE
|
||||
name = "chaotic present"
|
||||
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
|
||||
|
||||
/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
|
||||
|
||||
|
||||
if(chaos == TRUE)
|
||||
if(chaos)
|
||||
if(!ispath(gift_type_chaos,/obj/item)) return
|
||||
I = new gift_type_chaos(M)
|
||||
|
||||
|
||||
12
modular_chomp/code/game/objects/structures/loot_pile.dm
Normal file
12
modular_chomp/code/game/objects/structures/loot_pile.dm
Normal 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
|
||||
BIN
modular_chomp/icons/obj/loot_piles.dmi
Normal file
BIN
modular_chomp/icons/obj/loot_piles.dmi
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -4509,6 +4509,7 @@
|
||||
#include "modular_chomp\code\game\jobs\job\silicon.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\structures\loot_pile.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\turfs\simulated\outdoors\desert_planet.dm"
|
||||
|
||||
Reference in New Issue
Block a user