Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

platformShare



This library handles platform share of platforms, migration from one platform to another, and various other platform-related things.

Methods

Variables

DAILY_SHARE_INCREASE_MULTIPLIER (0.5)

current time value is multiplied by this much when calculating how many new users will get some kind of platform.

ATTRACTIVENESS_PERCENTAGE_TO_SWITCH_TO_OTHER_PLATFORM (0.15)

the delta in attractiveness must be this high for there to be a user switch from one platform to another.

MAX_SWITCH_PER_SHARE (0.01)

theirShare * thisValue = max people that switch consoles.

EXPIRED_PLATFORM_ATTRACTIVENESS_MULTIPLIER (0.3)

expired (no more support) platforms have their attractiveness multiplied by this.

USER_DELTA_TO_PURCHASERS (0.15)

this many people in the delta between totalUsers and platformUsers gets added to daily platform purchasers.

PURCHASING_POWER_LOSS_PER_SALE (1)

how much purchasing power is lost per each game copy sold, where 1 is 1 potential buyer.

PURCHASING_POWER_REGAIN_PER_DAY (0.005)

how much purchasing power is regained in percentage per each day (in percentage of market share).

AMOUNT_OF_FAKE_GAMES_TO_MAKE ({1, 2})

(random) amount of fake games that can be made each month to simulate platform progression/migration.

MONTHLY_FAKE_GAME_RELEASE_CHANCE (90)

the chance of an invisible fake game being "released".

MAX_FAKE_GAMES_ON_RECORD (80)

how many fake games can we hold at a time.

SANITISE_OLD_GAMES_ON_RECORD_TIME (180)

if a game is older than this much in days it will be removed from the fake game list.

FAKE_GAME_CREATION_ON_PLATFORM_CREATION (10)

amount of fake games to create upon the release of the platform.

PLAYER_GAMES_ATTRACTIVENESS_MULTIPLIER (5)

multiply player rating-to-attractiveness by this much, so that the player impacts the market more than fake games.

FAKE_GAMES_TO_TOTAL_ATTRACTIVENESS (0.2)

multiply fake game attractiveness by this much when adding their attractiveness to the overall platform attractiveness factor.

MAX_NEW_USERS_PER_DAY (300)

the maximum amount of people that can get some kind of platform every day.

MAX_TOTAL_PLATFORM_USERS (2500000000)

the maximum amount of platform users.

SWITCH_DIVIDER_MULTIPLIER (3)

when switching to a player platform, the divider for sales based on the price will be multiplied by this much, so that the switching is not too OP.

BASE_SWITCH_AMOUNT (5000)

the base amount of people that will switch to your platform from another one when your reputation is 0.

Events

NEW_PLATFORM

fired when a new platform is added to the market.

PLATFORM_REMOVED

fired when an existing platform is removed from the market.