Skip to content

Commit

Permalink
Merge pull request #5579 from ARF-SS13/Hand-items
Browse files Browse the repository at this point in the history
Active Bounty System
  • Loading branch information
Tk420634 authored Jan 13, 2025
2 parents 26b3433 + 1759d99 commit bb9c104
Show file tree
Hide file tree
Showing 33 changed files with 294 additions and 93 deletions.
113 changes: 29 additions & 84 deletions _maps/map_files/coyote_bayou/Nash_and_Texarkana-Upper.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -695,11 +695,6 @@
icon_state = "darkrusty"
},
/area/f13/building/massfusion)
"aqO" = (
/obj/effect/decal/cleanable/dirt,
/obj/effect/decal/cleanable/dirt,
/turf/closed/wall/f13/wood,
/area/f13/wasteland/nash)
"aqR" = (
/obj/structure/closet/fridge/cannibal,
/obj/item/storage/trash_stack/loot/uncommon,
Expand Down Expand Up @@ -3299,7 +3294,7 @@
/turf/open/floor/wood_common{
color = "#779999"
},
/area/f13/wasteland/nash)
/area/f13/building)
"bHQ" = (
/obj/structure/flora/grass/jungle/b,
/turf/open/indestructible/ground/outside/dirt,
Expand Down Expand Up @@ -5429,7 +5424,7 @@
/turf/open/floor/wood_common{
color = "#779999"
},
/area/f13/wasteland/nash)
/area/f13/building)
"cUY" = (
/obj/structure/window/fulltile/store,
/turf/open/floor/f13{
Expand Down Expand Up @@ -7295,9 +7290,6 @@
/obj/structure/flora/ausbushes/fullgrass,
/turf/open/floor/f13/wood,
/area/f13/wasteland)
"dTT" = (
/turf/closed/wall/f13/wood,
/area/f13/wasteland/nash)
"dUa" = (
/turf/open/floor/wood_wide,
/area/f13/wasteland)
Expand Down Expand Up @@ -9157,7 +9149,7 @@
/turf/open/floor/wood_common{
color = "#779999"
},
/area/f13/wasteland/nash)
/area/f13/building)
"eTN" = (
/turf/open/floor/wood_common,
/area/f13/building/hospital)
Expand Down Expand Up @@ -10167,7 +10159,7 @@
/obj/effect/decal/cleanable/dirt,
/obj/effect/decal/cleanable/dirt,
/turf/closed/wall/f13/tentwall,
/area/f13/wasteland/nash)
/area/f13/building)
"fwt" = (
/obj/effect/decal/cleanable/dirt/dust{
color = "#11ff11"
Expand Down Expand Up @@ -11111,12 +11103,6 @@
/obj/item/storage/trash_stack/loot/uncommon,
/turf/open/floor/carpet,
/area/f13/building/abandoned)
"fXF" = (
/obj/structure/barricade/wooden,
/obj/structure/barricade/wooden/planks/pregame,
/obj/structure/decoration/rag,
/turf/closed/wall/f13/tentwall,
/area/f13/wasteland/nash)
"fXN" = (
/obj/structure/sign/poster/contraband/pinup_topless,
/turf/closed/wall/mineral/brick,
Expand Down Expand Up @@ -23067,10 +23053,6 @@
},
/turf/open/indestructible/ground/outside/roof,
/area/f13/wasteland)
"lXV" = (
/obj/effect/decal/cleanable/dirt,
/turf/closed/wall/f13/wood,
/area/f13/wasteland/nash)
"lYa" = (
/obj/machinery/light{
bulb_colour = "#BC8F8F";
Expand Down Expand Up @@ -26061,13 +26043,6 @@
},
/turf/open/indestructible/ground/outside/roof,
/area/f13/wasteland)
"nxq" = (
/obj/effect/decal/cleanable/dirt,
/obj/effect/decal/cleanable/dirt,
/turf/open/floor/wood_common{
color = "#779999"
},
/area/f13/wasteland/nash)
"nxF" = (
/obj/effect/decal/cleanable/dirt/dust,
/obj/effect/decal/cleanable/dirt/dust,
Expand Down Expand Up @@ -27926,13 +27901,6 @@
color = "#777777"
},
/area/f13/wasteland)
"ovg" = (
/obj/structure/table/wood/settler,
/obj/item/storage/trash_stack/loot/common,
/turf/open/floor/wood_common{
color = "#779999"
},
/area/f13/wasteland/nash)
"ovG" = (
/obj/structure/rack/shelf_wood{
pixel_y = -1
Expand Down Expand Up @@ -30362,15 +30330,6 @@
},
/turf/open/floor/plasteel/f13/vault_floor/misc/vaultrust,
/area/f13/building)
"pOV" = (
/obj/structure/bed/mattress{
pixel_x = 1;
pixel_y = -1
},
/turf/open/floor/wood_common{
color = "#779999"
},
/area/f13/wasteland/nash)
"pPv" = (
/obj/machinery/door/airlock/security/glass{
name = "Gatehouse";
Expand Down Expand Up @@ -36046,7 +36005,7 @@
/turf/open/floor/wood_common{
color = "#779999"
},
/area/f13/wasteland/nash)
/area/f13/building)
"sYU" = (
/obj/structure/spacevine{
color = "#225522"
Expand Down Expand Up @@ -39991,16 +39950,6 @@
/obj/structure/barricade/bars,
/turf/closed/wall/r_wall/rust,
/area/f13/building)
"vaJ" = (
/obj/structure/simple_door/interior,
/obj/effect/decal/cleanable/dirt/dust,
/obj/item/lock_bolt{
dir = 1
},
/turf/open/floor/f13{
icon_state = "bar"
},
/area/f13/wasteland/nash)
"vaQ" = (
/obj/effect/decal/cleanable/dirt,
/obj/effect/decal/cleanable/dirt,
Expand Down Expand Up @@ -40429,10 +40378,6 @@
/obj/structure/floodlight_frame,
/turf/open/indestructible/ground/inside/subway,
/area/f13/caves)
"vlI" = (
/obj/structure/decoration/rag,
/turf/closed/wall/f13/wood,
/area/f13/wasteland/nash)
"vlJ" = (
/obj/effect/decal/cleanable/dirt,
/obj/structure/simple_door/room,
Expand Down Expand Up @@ -42100,7 +42045,7 @@
/obj/structure/barricade/wooden/planks/pregame,
/obj/effect/decal/cleanable/dirt,
/turf/closed/wall/f13/tentwall,
/area/f13/wasteland/nash)
/area/f13/building)
"wgQ" = (
/obj/effect/decal/cleanable/dirt{
color = "000000"
Expand Down Expand Up @@ -45058,7 +45003,7 @@
/obj/structure/decoration/rag,
/obj/effect/decal/cleanable/dirt,
/turf/closed/wall/f13/wood,
/area/f13/wasteland/nash)
/area/f13/building)
"xQb" = (
/turf/open/floor/wood_wide{
icon_state = "wide-broken5"
Expand Down Expand Up @@ -50918,9 +50863,9 @@ qnC
qnC
tpM
hew
dTT
dTT
dTT
fSd
fSd
fSd
qnC
qnC
qnC
Expand Down Expand Up @@ -51175,9 +51120,9 @@ qnC
qnC
ieI
vfH
dTT
pOV
dTT
fSd
aHY
fSd
nEl
wky
qnC
Expand Down Expand Up @@ -51430,11 +51375,11 @@ qnC
qnC
qnC
qnC
dTT
dTT
ovg
osH
vlI
fSd
fSd
ccL
slU
gYD
hHi
oeP
qnC
Expand Down Expand Up @@ -51690,8 +51635,8 @@ qnC
cUT
eTI
bHL
osH
fXF
slU
sEo
hHi
oeP
qnC
Expand Down Expand Up @@ -51945,9 +51890,9 @@ qnC
qnC
qnC
cUT
nxq
nxq
nxq
fRC
fRC
fRC
xPZ
hHi
oeP
Expand Down Expand Up @@ -52201,11 +52146,11 @@ qnC
qnC
qnC
qnC
dTT
lXV
nxq
fSd
vFs
fRC
sYO
vaJ
bDA
hHi
oeP
qnC
Expand Down Expand Up @@ -52458,9 +52403,9 @@ ehs
ehs
ehs
ehs
dTT
fSd
fwf
aqO
izv
wgo
xPZ
hHi
Expand Down
2 changes: 2 additions & 0 deletions code/_onclick/hud/_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#define ui_combat_toggle "CENTER+3:4,SOUTH:2"
#define ui_zonesel "EAST-3:-5,SOUTH:3"
#define ui_crafting "WEST+6:-15,SOUTH+1:1"

#define ui_building "WEST+5:1,SOUTH+1:1"
#define ui_language_menu "WEST+5:1,SOUTH+1:1"

Expand All @@ -69,6 +70,7 @@
//#define ui_zonesel "Center+5:2,SOUTH:3:1"
#define ui_mood "Center-1:5,South+1:11"
#define ui_healthdoll "EAST-3:-7,SOUTH+1:17"
#define ui_banking "WEST+5:-11,SOUTH+1:-7"
#define ui_health "Right-3:28,South+2:-18"
#define ui_stamina "Right-2:27,South+1:+3" // replacing internals button
#define ui_questbook "EAST-3:-4,SOUTH+2:0"
Expand Down
1 change: 1 addition & 0 deletions code/_onclick/hud/hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ GLOBAL_LIST_INIT(available_ui_styles, list(
var/atom/movable/screen/chardir_hud_button
var/atom/movable/screen/pvp_focus_toggle/pvp_focus_toggle
var/atom/movable/screen/who
var/atom/movable/screen/bank
var/atom/movable/screen/roll_hud_button
var/atom/movable/screen/erp_tools_button
var/atom/movable/screen/hand_items_button
Expand Down
4 changes: 4 additions & 0 deletions code/_onclick/hud/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@
who.hud = src
infodisplay += who

bank = new /atom/movable/screen/bank()
bank.hud = src
infodisplay += bank

erp_tools_button = new /atom/movable/screen/erp_tools_button()
erp_tools_button.hud = src
infodisplay += erp_tools_button
Expand Down
34 changes: 34 additions & 0 deletions code/_onclick/hud/screen_objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,40 @@
/atom/movable/screen/proc/component_click(atom/movable/screen/component_button/component, params)
return

/atom/movable/screen/bank
name = "banking menu"
icon = 'icons/mob/screen_gen.dmi'
icon_state = "bank"
screen_loc = ui_banking
maptext_y = 20

/atom/movable/screen/bank/Initialize(mapload)
. = ..()
START_PROCESSING(SSobj, src)

/atom/movable/screen/bank/Destroy()
STOP_PROCESSING(SSobj, src)
. = ..()

/atom/movable/screen/bank/process()
var/mob/living/pwner = hud.mymob
if(!pwner)
return
var/datum/quest_book/QB = SSeconomy.get_quest_book(pwner)
if(!QB)
return
var/maptext_pre = SSeconomy.format_currency(QB.unclaimed_points, TRUE, FALSE, TRUE)
maptext_pre = span_green(maptext_pre)
maptext = maptext_pre
desc = "You have [maptext_pre] in your bank! Click here to get some of that cash!"

/atom/movable/screen/bank/Click(location,control,params)
var/datum/quest_book/QB = SSeconomy.get_quest_book(usr)
if(!QB)
to_chat(usr, span_alert("Oh no you dont have a quest book!"))
return
QB.operate_cash_machine()

/atom/movable/screen/text
icon = null
icon_state = null
Expand Down
3 changes: 3 additions & 0 deletions code/_onclick/item_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@

M.lastattacker = user.real_name
M.lastattackerckey = user.ckey
if(isanimal(M))
var/mob/living/simple_animal/SA = M
SA.give_credit(user)

user.do_attack_animation(M)
if(damage_override)
Expand Down
Loading

0 comments on commit bb9c104

Please sign in to comment.