forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request tgstation#8777 from CosmicScientist/SpaceCarpTator…
…Item Adds space carp traitor item and carp plushie "attack"
- Loading branch information
Showing
7 changed files
with
119 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Dehydrated Carp | ||
* Instant carp, just add water | ||
*/ | ||
|
||
// Child of carpplushie because this should do everything the toy does and more | ||
/obj/item/toy/carpplushie/dehy_carp | ||
var/mob/owner = null // Carp doesn't attack owner, set when using in hand | ||
var/owned = 1 // Boolean, no owner to begin with | ||
|
||
// Attack self | ||
/obj/item/toy/carpplushie/dehy_carp/attack_self(mob/user as mob) | ||
src.add_fingerprint(user) // Anyone can add their fingerprints to it with this | ||
if(owned) | ||
user << "<span class='notice'>[src] stares up at you with friendly eyes.</span>" | ||
owner = user | ||
owned = 0 | ||
return ..() | ||
|
||
|
||
/obj/item/toy/carpplushie/dehy_carp/afterattack(obj/O, mob/user,proximity) | ||
if(!proximity) return | ||
if(istype(O,/obj/structure/sink)) | ||
user << "<span class='notice'>You place [src] under a stream of water...</span>" | ||
user.drop_item() | ||
loc = get_turf(O) | ||
return Swell() | ||
..() | ||
|
||
/obj/item/toy/carpplushie/dehy_carp/proc/Swell() | ||
desc = "It's growing!" | ||
visible_message("<span class='notice'>[src] swells up!</span>") | ||
|
||
// Animation | ||
icon = 'icons/mob/animal.dmi' | ||
flick("carp_swell", src) | ||
// Wait for animation to end | ||
sleep(6) | ||
// Make space carp | ||
var/mob/living/simple_animal/hostile/carp/C = new /mob/living/simple_animal/hostile/carp(get_turf(src)) | ||
// Make carp non-hostile to user, yes this means | ||
C.faction |= "\ref[owner]" | ||
qdel(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
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,38 @@ | ||
################################ | ||
# Example Changelog File | ||
# | ||
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. | ||
# | ||
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) | ||
# When it is, any changes listed below will disappear. | ||
# | ||
# Valid Prefixes: | ||
# bugfix | ||
# wip (For works in progress) | ||
# tweak | ||
# soundadd | ||
# sounddel | ||
# rscadd (general adding of nice things) | ||
# rscdel (general deleting of nice things) | ||
# imageadd | ||
# imagedel | ||
# spellcheck (typo fixes) | ||
# experiment | ||
# tgs (TG-ported fixes?) | ||
################################# | ||
|
||
# Your name. | ||
author: CosmicScientist | ||
|
||
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. | ||
delete-after: True | ||
|
||
# Any changes you've made. See valid prefix list above. | ||
# INDENT WITH TWO SPACES. NOT TABS. SPACES. | ||
# SCREW THIS UP AND IT WON'T WORK. | ||
# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit. | ||
# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog. | ||
changes: | ||
- rscadd: "Added a dehydrated space carp to traitor items, bought with telecrystals. Use dehydrated space carp in hand to school them on loyalty. Add water to create a vicious murder machine just for the halibut." | ||
- tweak: "The toy carp plushie now has attack verbs for fun, hit your friend with one today. I put my sole into this mod." | ||
- wip: "If you can think of a better fish pun let minnow but I shouldn't leave it to salmon else." |
Binary file not shown.
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