Skip to content

Commit

Permalink
Painting/scoreboard maintenance (vgstation-coders#35737)
Browse files Browse the repository at this point in the history
+ printed paintings no longer show up on the scoreboard
+ admemes can now actually artistban people
+ painting ban var moved from painting object to custom painting datum (so VV there if you want to ban a painting)
  • Loading branch information
SonixApache authored Jan 11, 2024
1 parent 0e09570 commit 6a41afd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/gamemodes/endgame/scoreboard/misc_score.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if(gallery.len) //the list of all artworks
var/list/artworks = list() //list of authors, for sorting later
for(var/obj/structure/painting/custom/painting in gallery)
if(painting.show_on_scoreboard && !painting.painting_data.is_blank())
if(painting.painting_data.show_on_scoreboard && !painting.painting_data.is_blank())
var/painting_author = painting.painting_data.author
if(!painting_author)
painting_author = "Anonymous"
Expand Down
6 changes: 6 additions & 0 deletions code/modules/admin/topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,12 @@
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=Cluwne;jobban4=\ref[M]'><font color=red>Cluwne</font></a></td>"
else
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=Cluwne;jobban4=\ref[M]'>Cluwne</a></td>"

if(jobban_isbanned(M, "artist")) //so people can't make paintings
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=artist;jobban4=\ref[M]'><font color=red>Artist</font></a></td>"
else
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=artist;jobban4=\ref[M]'>Artist</a></td>"

jobs += "</tr></table>"

body = "<body>[jobs]</body>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
var/title = ""
var/description = ""
var/contributing_artists = list()
var/show_on_scoreboard = TRUE

var/copy = 0

Expand Down Expand Up @@ -493,6 +494,7 @@
painting.author = author
painting.description = description
painting.copy = 1
painting.show_on_scoreboard = FALSE //sorry, OC only
return painting

#undef PENCIL_STRENGTH_MAX
Expand Down
1 change: 0 additions & 1 deletion code/modules/painting/paintings_custom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
var/base_icon_state = "blank"
var/frame_icon = 'icons/obj/painting_items.dmi'
var/frame_icon_state = "frame"
var/show_on_scoreboard = TRUE

var/image/nanomap

Expand Down

0 comments on commit 6a41afd

Please sign in to comment.