forked from Baystation12/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2db241f
commit 1e3aa31
Showing
30 changed files
with
549 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
/obj/item/a_gift | ||
name = "gift" | ||
desc = "PRESENTS!!!! eek!" | ||
icon = 'icons/obj/parcels.dmi' | ||
icon_state = "gift1" | ||
item_state = "gift1" | ||
randpixel = 10 | ||
|
||
/obj/item/a_gift/New() | ||
..() | ||
if(w_class > 0 && w_class < ITEM_SIZE_HUGE) | ||
icon_state = "gift[w_class]" | ||
else | ||
icon_state = "gift[pick(1, 2, 3)]" | ||
return | ||
|
||
/obj/item/a_gift/ex_act() | ||
qdel(src) | ||
return | ||
|
||
/obj/item/a_gift/attack_self(mob/M as mob) | ||
var/gift_type = pick( | ||
/obj/item/storage/wallet, | ||
/obj/item/storage/photo_album, | ||
/obj/item/storage/box/snappops, | ||
/obj/item/storage/fancy/crayons, | ||
/obj/item/storage/backpack/holding, | ||
/obj/item/storage/belt/champion, | ||
/obj/item/pickaxe/silver, | ||
/obj/item/pen/invisible, | ||
/obj/item/lipstick/random, | ||
/obj/item/grenade/smokebomb, | ||
/obj/item/carvable/corncob, | ||
/obj/item/contraband/poster, | ||
/obj/item/book/manual/barman_recipes, | ||
/obj/item/book/manual/chef_recipes, | ||
/obj/item/bikehorn, | ||
/obj/item/beach_ball, | ||
/obj/item/beach_ball/holoball, | ||
/obj/item/toy/water_balloon, | ||
/obj/item/toy/blink, | ||
/obj/item/toy/crossbow, | ||
/obj/item/gun/projectile/revolver/capgun, | ||
/obj/item/toy/katana, | ||
/obj/item/toy/prize/deathripley, | ||
/obj/item/toy/prize/durand, | ||
/obj/item/toy/prize/fireripley, | ||
/obj/item/toy/prize/gygax, | ||
/obj/item/toy/prize/honk, | ||
/obj/item/toy/prize/marauder, | ||
/obj/item/toy/prize/mauler, | ||
/obj/item/toy/prize/odysseus, | ||
/obj/item/toy/prize/phazon, | ||
/obj/item/toy/prize/powerloader, | ||
/obj/item/toy/prize/seraph, | ||
/obj/item/toy/spinningtoy, | ||
/obj/item/toy/sword, | ||
/obj/item/reagent_containers/food/snacks/grown/ambrosiadeus, | ||
/obj/item/reagent_containers/food/snacks/grown/ambrosiavulgaris, | ||
/obj/item/device/paicard, | ||
/obj/item/device/synthesized_instrument/violin, | ||
/obj/item/storage/belt/utility/full, | ||
/obj/item/clothing/accessory/horrible, | ||
/obj/item/storage/box/large/foam_gun, | ||
/obj/item/storage/box/large/foam_gun/burst, | ||
/obj/item/storage/box/large/foam_gun/revolver) | ||
|
||
if(!ispath(gift_type,/obj/item)) return | ||
|
||
var/obj/item/I = new gift_type(M) | ||
M.put_in_hands(I) | ||
I.add_fingerprint(M) | ||
qdel(src) | ||
|
||
/* | ||
* Special item for wrapped mobs | ||
*/ | ||
|
||
/obj/effect/mobpresent | ||
name = "strange gift" | ||
desc = "It's a ... gift?" | ||
icon = 'icons/obj/parcels.dmi' | ||
icon_state = "strangegift" | ||
density = TRUE | ||
anchored = FALSE | ||
var/package_type = "parcel" | ||
|
||
/obj/effect/mobpresent/Initialize(mapload, target, wrap_type) | ||
..(mapload) | ||
if (!target || !ishuman(target) || !wrap_type) | ||
return INITIALIZE_HINT_QDEL | ||
|
||
var/mob/living/carbon/human/human = target | ||
if (human.client) | ||
human.client.perspective = EYE_PERSPECTIVE | ||
human.client.eye = src | ||
|
||
name = "strange [package_type]" | ||
desc = "It's a ... [package_type]?" | ||
package_type = wrap_type | ||
update_icon() | ||
|
||
/obj/effect/mobpresent/on_update_icon() | ||
icon_state = "strange[package_type]" | ||
|
||
/obj/effect/mobpresent/relaymove(mob/user as mob) | ||
if (user.stat) | ||
return | ||
to_chat(user, SPAN_WARNING("You can't move.")) | ||
|
||
|
||
/obj/effect/mobpresent/use_tool(obj/item/tool, mob/user, list/click_params) | ||
if (is_sharp(tool)) | ||
user.visible_message( | ||
SPAN_NOTICE("\The [user] cuts open \the [src] with \a [tool]."), | ||
SPAN_NOTICE("You cut open \the [src] with \the [tool].") | ||
) | ||
for (var/mob/M in src) //Should only be one but whatever. | ||
M.dropInto(loc) | ||
if (M.client) | ||
M.client.eye = M.client.mob | ||
M.client.perspective = MOB_PERSPECTIVE | ||
qdel(src) | ||
return TRUE | ||
return ..() | ||
|
||
/obj/effect/mobpresent/attack_hand(mob/living/user) | ||
to_chat(user, "You need a sharp tool to unwrap \the [src].") | ||
|
||
/obj/effect/mobpresent/attack_robot(mob/living/silicon/robot/user) | ||
to_chat(user, "You need a sharp tool to unwrap \the [src].") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.