Skip to content

Commit

Permalink
crown pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
casualspacestation14enjoyer committed Dec 14, 2024
1 parent a8a7bfb commit a821697
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 2 deletions.
40 changes: 40 additions & 0 deletions code/game/objects/items/pinpointer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,46 @@
A.other_pair = B
B.other_pair = A

/obj/item/pinpointer/crown
name = "POINTER"
desc = "Where do we go? Heed the call of war."
icon_state = "crownpointer"
icon_suffix = "_hunter"
dropshrink = 0.6
var/team

/obj/item/pinpointer/crown/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/clothing/head/roguetown/crownblu))
team = BLUE_WARTEAM
say("I HAVE ACQUIRED THE SMELL OF THE GRENZELHOFTS. TRACKING HEARTFELT SCUM'S CROWN!")
playsound(src, 'sound/misc/machinetalk.ogg', 50, TRUE)
if(istype(I, /obj/item/clothing/head/roguetown/crownred))
team = RED_WARTEAM
say("I HAVE ACQUIRED THE SMELL OF THE HEARTFELTS. TRACKING GRENZELHOFT SCUM'S CROWN!")
playsound(src, 'sound/misc/machinetalk.ogg', 50, TRUE)

/obj/item/pinpointer/crown/scan_for_target()
var/datum/game_mode/warfare/W = SSticker.mode
switch(team)
if(RED_WARTEAM)
target = W.blucrown
if(BLUE_WARTEAM)
target = W.redcrown

/obj/item/pinpointer/crown/toggle_on()
if(!team)
playsound(src, 'sound/misc/machineno.ogg', 50, TRUE)
say("THERE'S TWO SMELLS OF CROWNS! THIS IS CONFUSING, WHICH ONE DO I TRACK?!")
return
active = !active
playsound(src, 'sound/misc/machinevomit.ogg', 50, TRUE)
if(active)
START_PROCESSING(SSfastprocess, src)
else
target = null
STOP_PROCESSING(SSfastprocess, src)
update_icon()

/obj/item/pinpointer/shuttle
name = "fugitive pinpointer"
desc = ""
Expand Down
8 changes: 6 additions & 2 deletions code/modules/jobs/job_types/roguetown/warfare.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"BOMBS",\
"FIRE BOMB",\
"WOODEN BALLS",\
"CROWN POINTER",\
"LEAD BALLS",\
"LARGE LEAD BALLS")

Expand Down Expand Up @@ -79,7 +80,7 @@
M.playsound_local(M.loc, 'sound/foley/trumpt.ogg', 75)

/mob/living/carbon/human/proc/warfare_shop()
set name = "REINFORCEMENT BONUSES"
set name = "REDEEM SUPPORT POINTS"
set category = "LORD"
var/mob/living/carbon/human/H = usr
var/datum/game_mode/warfare/C = SSticker.mode
Expand Down Expand Up @@ -110,8 +111,11 @@
new /obj/item/bomb/smoke(H.loc)
if("GAS BOMB")
new /obj/item/bomb/poison(H.loc)
if("BOMB")
if("BOMBS")
new /obj/item/bomb(H.loc)
new /obj/item/bomb(H.loc)
if("CROWN POINTER")
new /obj/item/pinpointer/crown(H.loc)
if("FIRE BOMB")
new /obj/item/bomb/fire(H.loc)
if("WOODEN BALLS")
Expand Down
Binary file modified icons/obj/device.dmi
Binary file not shown.
Binary file modified icons/roguetown/weapons/32.dmi
Binary file not shown.
Binary file modified icons/roguetown/weapons/64.dmi
Binary file not shown.
Binary file modified icons/roguetown/weapons/ammo.dmi
Binary file not shown.

0 comments on commit a821697

Please sign in to comment.