Increasing Price

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Increasing Price

#1

Post by KINGTUT10101 »

Could we have an option to disable the increasing price on plug-ins? It might be good for stuff that's aesthetic like walls or or something in the park category.

User avatar
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 8034
Joined: 24 Jan 2017, 11:15
Location: SE Asia
Plugins: Showcase Store
Version: Beta

Platform

Re: Increasing Price

#2

Post by Brody Craft »

And maybe An option to adjust how much price will increase

User avatar
Barky
TheoTown Cartographer
Reactions:
Posts: 2056
Joined: 17 Apr 2017, 22:13
Location: Ireland
Plugins: Showcase Store

Platform

Re: Increasing Price

#3

Post by Barky »

:bc

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Increasing Price

#4

Post by Lobby »

With version 317 you will be able to do so using attribute "price factor" in building plugins.

This code will lead to no increase in price

Code: Select all

[{
  ...
  "price factor":0,
  ...
}]
Default value is 0.2

Short description of the formula behind the scenes. Let

p...be the base building price
f...be the factor provided with "price factor"
n...be the number of this building in the current city

The current price is then evaluated as

Code: Select all

(1+f*n)*p

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”