-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworks and adds a few flags (the fabric kind) (#12926)
Co-authored-by: TobleroneSwordfish <20713227+TobleroneSwordfish@users.noreply.github.com>
- Loading branch information
1 parent
5e24cf7
commit f9edfed
Showing
9 changed files
with
181 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/obj/decal/poster/flag | ||
name = "flag" | ||
desc = "Neat!" | ||
icon = 'icons/obj/decals/flag.dmi' | ||
icon_state = "blank" | ||
/// Must by a type path of `/obj/item/flag`. | ||
var/starting_flag = /obj/item/flag | ||
var/obj/item/flag/flag_item = null | ||
|
||
New() | ||
src.flag_item = new src.starting_flag(src) | ||
..() | ||
|
||
disposing() | ||
src.flag_item = null | ||
..() | ||
|
||
attack_hand(mob/user) | ||
if (tgui_alert(user, "Are you sure you want to take down the flag?", "Confirmation", list("Take", "Leave")) == "Take") | ||
src.take_flag(user) | ||
|
||
proc/take_flag(mob/user) | ||
if (src.flag_item) | ||
src.flag_item.add_fingerprint(user) | ||
user.put_in_hand_or_drop(src.flag_item) | ||
src.flag_item = null | ||
user.visible_message("<span class='notice'>[user] takes down the [src.name] in [src.loc]!.</span>", "<span class='notice'>You take down the [src.name] in [src.loc]!</span>") | ||
logTheThing(LOG_STATION, user, "Takes down a flag ([src.name]) in [src.loc] at [log_loc(user)].") | ||
qdel(src) | ||
|
||
ace | ||
name = "asexual pride flag" | ||
icon_state = "ace" | ||
starting_flag = /obj/item/flag/ace | ||
|
||
aro | ||
name = "aromantic pride flag" | ||
icon_state = "aro" | ||
starting_flag = /obj/item/flag/aro | ||
|
||
bisexual | ||
name = "bisexual pride flag" | ||
icon_state = "bisexual" | ||
starting_flag = /obj/item/flag/bisexual | ||
|
||
demisexual | ||
name = "demisexual pride flag" | ||
icon_state = "demisexual" | ||
starting_flag = /obj/item/flag/demisexual | ||
|
||
genderqueer | ||
name = "genderqueer pride flag" | ||
icon_state = "genderqueer" | ||
starting_flag = /obj/item/flag/genderqueer | ||
|
||
intersex | ||
name = "intersex pride flag" | ||
icon_state = "intersex" | ||
starting_flag = /obj/item/flag/intersex | ||
|
||
lesb //lesbeean prefab thingy - subtle environmental storytelling, you know? | ||
name = "lesbian pride flag" | ||
icon_state = "lesb" | ||
starting_flag = /obj/item/flag/lesb | ||
|
||
nb | ||
name = "non-binary pride flag" | ||
icon_state = "nb" | ||
starting_flag = /obj/item/flag/nb | ||
|
||
pan | ||
name = "pansexual pride flag" | ||
icon_state = "pan" | ||
starting_flag = /obj/item/flag/pan | ||
|
||
polysexual | ||
name = "polysexual pride flag" | ||
icon_state = "polysexual" | ||
starting_flag = /obj/item/flag/polysexual | ||
|
||
progressive | ||
name = "progressive pride flag" | ||
icon_state = "progressive" | ||
starting_flag = /obj/item/flag/progressive | ||
|
||
rainbow | ||
name = "rainbow flag" | ||
icon_state = "rainbow" | ||
starting_flag = /obj/item/flag/rainbow | ||
|
||
trans | ||
name = "transgender pride flag" | ||
icon_state = "trans" | ||
starting_flag = /obj/item/flag/trans |
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,83 @@ | ||
/obj/item/flag | ||
name = "flag" | ||
desc = "Neat! It's folded up, ready to deploy." | ||
icon = 'icons/obj/items/flag.dmi' | ||
icon_state = "blank" | ||
/// Must by a type path of `/obj/decal/poster/flag`. | ||
var/associated_flag = /obj/decal/poster/flag | ||
|
||
afterattack(turf/simulated/T, mob/user) | ||
if (locate(/obj/decal/poster/flag) in T) | ||
return | ||
if (istype(T, /turf/simulated/wall/) || istype(T, /turf/unsimulated/wall)) | ||
var/obj/decal/poster/flag/new_flag = new src.associated_flag(T) | ||
new_flag.flag_item = src | ||
user.u_equip(src) | ||
src.set_loc(new_flag) | ||
logTheThing(LOG_STATION, user, "Hangs up a flag ([new_flag.name]) in [T] at [log_loc(user)].") | ||
user.visible_message("<span class='notice'>[user] hangs up a [new_flag.name] in [T]!.</span>", "<span class='notice'>You hang up a [new_flag.name] in [T]!</span>") | ||
|
||
ace | ||
name = "asexual pride flag" | ||
icon_state = "ace" | ||
associated_flag = /obj/decal/poster/flag/ace | ||
|
||
aro | ||
name = "aromantic pride flag" | ||
icon_state = "aro" | ||
associated_flag = /obj/decal/poster/flag/aro | ||
|
||
bisexual | ||
name = "bisexual pride flag" | ||
icon_state = "bisexual" | ||
associated_flag = /obj/decal/poster/flag/bisexual | ||
|
||
demisexual | ||
name = "demisexual pride flag" | ||
icon_state = "demisexual" | ||
associated_flag = /obj/decal/poster/flag/demisexual | ||
|
||
genderqueer | ||
name = "genderqueer pride flag" | ||
icon_state = "genderqueer" | ||
associated_flag = /obj/decal/poster/flag/genderqueer | ||
|
||
intersex | ||
name = "intersex pride flag" | ||
icon_state = "intersex" | ||
associated_flag = /obj/decal/poster/flag/intersex | ||
|
||
lesb | ||
name = "lesbian pride flag" | ||
icon_state = "lesb" | ||
associated_flag = /obj/decal/poster/flag/lesb | ||
|
||
nb | ||
name = "non-binary pride flag" | ||
icon_state = "nb" | ||
associated_flag = /obj/decal/poster/flag/nb | ||
|
||
pan | ||
name = "pansexual pride flag" | ||
icon_state = "pan" | ||
associated_flag = /obj/decal/poster/flag/pan | ||
|
||
polysexual | ||
name = "polysexual pride flag" | ||
icon_state = "polysexual" | ||
associated_flag = /obj/decal/poster/flag/polysexual | ||
|
||
progressive | ||
name = "progressive pride flag" | ||
icon_state = "progressive" | ||
associated_flag = /obj/decal/poster/flag/progressive | ||
|
||
rainbow | ||
name = "rainbow flag" | ||
icon_state = "rainbow" | ||
associated_flag = /obj/decal/poster/flag/rainbow | ||
|
||
trans | ||
name = "transgender pride flag" | ||
icon_state = "trans" | ||
associated_flag = /obj/decal/poster/flag/trans |
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
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