diff --git a/DESCRIPTION b/DESCRIPTION index 48ba83d..8f91b12 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,10 @@ Package: TownforgeR Title: R-package for handling Townforge related data Version: 0.0.12 -Authors@R: person("Teemu Daniel", "Laajala", email = "teelaa@utu.fi", - role = c("aut", "cre")) +Authors@R: c(person("Teemu Daniel", "Laajala", email = "teelaa@utu.fi", + role = c("aut", "cre")), + person(given = "Rucknium", email = "Rucknium@protonmail.com", + role = c("aut")) ) Description: R-package for handling e.g. RPC interaction with the blockchain-based game Townforge, originally forked from Monero. Contains a self-sufficient R Shiny web interface for user convenience. Regarding Townforge, see further info at: www.townforge.net diff --git a/R/geo.R b/R/geo.R index aeddc98..40b273a 100644 --- a/R/geo.R +++ b/R/geo.R @@ -53,12 +53,14 @@ tf_plot_influence <- function(url, building.type, effect.type, cut.out.flags = T Matrix::image(infl.grid.ls$infl.grid, useRaster = TRUE, col.regions = hcl.colors(max.effect, palette = "Hawaii", rev = TRUE), - colorkey = list(tick.number = max.effect), cuts = max.effect - 1) + colorkey = list(tick.number = max.effect), cuts = max.effect - 1, + main = "Production boost, in percent") # useRaster = TRUE is faster }, need = { - Matrix::image(infl.grid.ls$infl.grid, useRaster = TRUE) + Matrix::image(infl.grid.ls$infl.grid, useRaster = TRUE, + main = "Area where building is able to be built") }, penalty = { infl.grid.ls$infl.grid <- infl.grid.ls$infl.grid * (-5) @@ -66,7 +68,8 @@ tf_plot_influence <- function(url, building.type, effect.type, cut.out.flags = T Matrix::image(infl.grid.ls$infl.grid, useRaster = TRUE, col.regions = hcl.colors(max.effect, palette = "ag_GrnYl"), - colorkey = list(tick.number = max.effect), cuts = max.effect - 1) + colorkey = list(tick.number = max.effect), cuts = max.effect - 1, + main = "Production penalty, in percent") } # TODO: military's complex effects not calculated yet. Maybe best to combined penalty and boost calculations # https://townforge.net/manual/