Skip to content

Commit

Permalink
Added Rucknium as package author.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rucknium committed Jul 2, 2021
1 parent 2bfc1f8 commit 92ddafc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 6 additions & 3 deletions R/geo.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,23 @@ 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)
# to represent 5% penalty

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/
Expand Down

0 comments on commit 92ddafc

Please sign in to comment.