forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Port some of RuPara objects, part 1
- Loading branch information
Showing
33 changed files
with
707 additions
and
3 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,78 @@ | ||
// It's just works :skull: | ||
/obj/item/paper/stamp(obj/item/stamp/S) | ||
if(istype(S, /obj/item/stamp/custom)) | ||
stamps += (!stamps || stamps == "" ? "<HR>" : "") + "<img src=large_[S.icon_state].png>" | ||
var/image/stampoverlay_custom = image('modular_ss220/aesthetics/stamps/icons/stamps.dmi') | ||
var/x = rand(-2, 0) | ||
var/y = rand(-1, 2) | ||
offset_x += x | ||
offset_y += y | ||
stampoverlay_custom.pixel_x = x | ||
stampoverlay_custom.pixel_y = y | ||
stampoverlay_custom.icon_state = "paper_[S.icon_state]" | ||
stamp_overlays += stampoverlay_custom | ||
|
||
if(!ico) | ||
ico = new | ||
ico += "paper_[S.icon_state]" | ||
if(!stamped) | ||
stamped = new | ||
stamped += S.type | ||
|
||
update_icon(UPDATE_OVERLAYS) | ||
else | ||
. = ..() | ||
|
||
// TODO: Paperplane overlays code. Now there's no overlays at all on paperplanes because of /obj/item/paperplane/update_overlays() | ||
|
||
// I've made subclass for custom stamps, just for istype would work without more shiitier code that i already gave us | ||
/obj/item/stamp/custom | ||
name = "DO NOT USE" | ||
icon_state = "" | ||
|
||
/obj/item/stamp/custom/warden | ||
name = "warden's rubber stamp" | ||
icon = 'modular_ss220/aesthetics/stamps/icons/stamps.dmi' | ||
icon_state = "stamp-ward" | ||
item_color = "hosred" | ||
|
||
/obj/item/stamp/custom/ploho | ||
name = "'Very Bad, Redo' rubber stamp" | ||
icon = 'modular_ss220/aesthetics/stamps/icons/stamps.dmi' | ||
icon_state = "stamp-ploho" | ||
item_color = "hop" | ||
|
||
/obj/item/stamp/custom/bigdeny | ||
name = "\improper BIG DENY rubber stamp" | ||
icon = 'modular_ss220/aesthetics/stamps/icons/stamps.dmi' | ||
icon_state = "stamp-BIGdeny" | ||
item_color = "redcoat" | ||
|
||
/obj/item/stamp/custom/navcom | ||
name = "Nanotrasen Naval Command rubber stamp" | ||
icon = 'modular_ss220/aesthetics/stamps/icons/stamps.dmi' | ||
icon_state = "stamp-navcom" | ||
item_color = "captain" | ||
|
||
/obj/item/stamp/custom/mime | ||
name = "mime's rubber stamp" | ||
icon = 'modular_ss220/aesthetics/stamps/icons/stamps.dmi' | ||
icon_state = "stamp-mime" | ||
item_color = "mime" | ||
|
||
/obj/item/stamp/custom/ussp | ||
name = "old USSP rubber stamp" | ||
icon = 'modular_ss220/aesthetics/stamps/icons/stamps.dmi' | ||
icon_state = "stamp-ussp" | ||
item_color = "redcoat" | ||
|
||
// Adding new stamps to the list | ||
/datum/asset/simple/paper/New() | ||
assets += list( | ||
"large_stamp-ward.png" = 'modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-ward.png', | ||
"large_stamp-ploho.png" = 'modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-ploho.png', | ||
"large_stamp-BIGdeny.png" = 'modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-BIGdeny.png', | ||
"large_stamp-navcom.png" = 'modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-navcom.png', | ||
"large_stamp-mime.png" = 'modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-mime.png', | ||
"large_stamp-ussp.png" = 'modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-ussp.png' | ||
) |
Binary file added
BIN
+9.49 KB
modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-BIGdeny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+825 Bytes
modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-mime.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.9 KB
modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-navcom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.16 KB
modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-ploho.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.3 KB
modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-ussp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.18 KB
modular_ss220/aesthetics/stamps/icons/paper_icons/large_stamp-ward.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,53 @@ | ||
/obj/item/lighter/zippo | ||
/obj/item/lighter/zippo/cap | ||
name = "\improper Captain's zippo" | ||
desc = "A limited edition gold Zippo espesially for NT Captains. Looks extremely expensive." | ||
icon_state = "zippo-cap" | ||
item_state = "zippo-cap" | ||
icon = 'modular_ss220/aesthetics/zippo/icons/zippo.dmi' | ||
//TODO: give heads their zippos | ||
lefthand_file = 'modular_ss220/aesthetics/zippo/icons/items_lefthand.dmi' | ||
righthand_file = 'modular_ss220/aesthetics/zippo/icons/items_righthand.dmi' | ||
|
||
/obj/item/lighter/zippo/hop | ||
name = "\improper Head of Personnel's zippo" | ||
desc = "A limited edition Zippo for NT Heads. Tries it best to look like captain's." | ||
icon_state = "zippo-hop" | ||
item_state = "zippo-hop" | ||
icon = 'modular_ss220/aesthetics/zippo/icons/zippo.dmi' | ||
lefthand_file = 'modular_ss220/aesthetics/zippo/icons/items_lefthand.dmi' | ||
righthand_file = 'modular_ss220/aesthetics/zippo/icons/items_righthand.dmi' | ||
|
||
/obj/item/lighter/zippo/hos | ||
name = "\improper Head of Security's zippo" | ||
desc = "A limited edition Zippo for NT Heads. Fuel it with clown's tears." | ||
icon_state = "zippo-hos" | ||
item_state = "zippo-hos" | ||
icon = 'modular_ss220/aesthetics/zippo/icons/zippo.dmi' | ||
lefthand_file = 'modular_ss220/aesthetics/zippo/icons/items_lefthand.dmi' | ||
righthand_file = 'modular_ss220/aesthetics/zippo/icons/items_righthand.dmi' | ||
|
||
/obj/item/lighter/zippo/cmo | ||
name = "\improper Chief Medical Officer's zippo" | ||
desc = "A limited edition Zippo for NT Heads. Made of hypoallergenic steel." | ||
icon_state = "zippo-cmo" | ||
item_state = "zippo-cmo" | ||
icon = 'modular_ss220/aesthetics/zippo/icons/zippo.dmi' | ||
lefthand_file = 'modular_ss220/aesthetics/zippo/icons/items_lefthand.dmi' | ||
righthand_file = 'modular_ss220/aesthetics/zippo/icons/items_righthand.dmi' | ||
|
||
/obj/item/lighter/zippo/ce | ||
name = "\improper Chief Engineer's zippo" | ||
desc = "A limited edition Zippo for NT Heads. Somebody've tried to repair cover with blue tape." | ||
icon_state = "zippo-ce" | ||
item_state = "zippo-ce" | ||
icon = 'modular_ss220/aesthetics/zippo/icons/zippo.dmi' | ||
lefthand_file = 'modular_ss220/aesthetics/zippo/icons/items_lefthand.dmi' | ||
righthand_file = 'modular_ss220/aesthetics/zippo/icons/items_righthand.dmi' | ||
|
||
/obj/item/lighter/zippo/rd | ||
name = "\improper Research Director's zippo" | ||
desc = "A limited edition Zippo for NT Heads. Uses advanced tech to make fire from plasma." | ||
icon_state = "zippo-rd" | ||
item_state = "zippo-rd" | ||
icon = 'modular_ss220/aesthetics/zippo/icons/zippo.dmi' | ||
lefthand_file = 'modular_ss220/aesthetics/zippo/icons/items_lefthand.dmi' | ||
righthand_file = 'modular_ss220/aesthetics/zippo/icons/items_righthand.dmi' |
Binary file not shown.
Binary file not shown.
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
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#include "_objects.dm" | ||
|
||
#include "code/platform.dm" | ||
#include "code/miscellaneous.dm" | ||
#include "code/officetoys.dm" | ||
#include "code/papershredder.dm" | ||
#include "code/platform.dm" | ||
#include "code/tribune.dm" |
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.