Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* fix

* hotfix

* hothotfix
  • Loading branch information
Krashly authored Sep 9, 2023
1 parent a8378e6 commit 0aac456
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions modular_bluemoon/krashly/code/game/objects/items/item.dm
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,28 @@
icon_state = "full"
item_flag = /obj/item/sign/flag/skull

/obj/item/sign/flag
var/flag_type = ""

/obj/item/sign/flag/skull
name = "folded flag of the PMC Skull"
desc = "The folded flag of the PMC Skull."
flag_type = "skull"
icon = 'modular_bluemoon/krashly/icons/obj/skull_flag.dmi'
icon_state = "mini"
sign_path = /obj/structure/sign/flag/skull

/obj/structure/closet/crate/coffin/attackby(obj/item/sign/flag/skull/I)
icon = 'modular_bluemoon/krashly/icons/obj/skull_flag.dmi'
icon_state = "grob_full"
locked = TRUE
qdel(I)
/obj/structure/closet/crate/coffin/attacked_by(obj/item/sign/flag/I, mob/living/user)
if(I.flag_type == "skull")
icon = 'modular_bluemoon/krashly/icons/obj/skull_flag.dmi'
icon_state = "grob_full"
locked = TRUE
qdel(I)
if(I.flag_type == "inteq")
icon = 'modular_bluemoon/krashly/icons/obj/inteq_flag.dmi'
icon_state = "grob_full"
locked = TRUE
qdel(I)

/datum/gear/donator/bm/skull_flag
name = "PMC Skull flag"
Expand All @@ -66,16 +76,11 @@
/obj/item/sign/flag/inteq
name = "folded flag of the PMC InteQ"
desc = "The folded flag of the PMC InteQ."
flag_type = "inteq"
icon = 'modular_bluemoon/krashly/icons/obj/inteq_flag.dmi'
icon_state = "mini"
sign_path = /obj/structure/sign/flag/inteq

/obj/structure/closet/crate/coffin/attackby(obj/item/sign/flag/inteq/I)
icon = 'modular_bluemoon/krashly/icons/obj/inteq_flag.dmi'
icon_state = "grob_full"
locked = TRUE
qdel(I)

/obj/item/poster/random_inteq
name = "random InteQ poster"
poster_type = /obj/structure/sign/poster/contraband/inteq/random
Expand Down

0 comments on commit 0aac456

Please sign in to comment.