HomeWildfire Games

Allow Modifiers to affect tokens.
AuditedrP23843

Description

Allow Modifiers to affect tokens.

This adds a new mode to modifications called "tokens" which allows clever token parsing.
Technologies, auras and modifiers in general can use this to switch out, add or delete tokens dynamically.

Currently implemented are production and builder queue tokens.

Reviewed By: Freagarach

Differential Revision: https://code.wildfiregames.com/D270

Event Timeline

You're right, thanks :)

This commit now has outstanding concerns.Jul 18 2020, 10:58 AM
Silier added inline comments.Jul 18 2020, 7:18 PM
/ps/trunk/binaries/data/mods/public/simulation/components/ProductionQueue.js
141

token is NaN

Silier added inline comments.Jul 19 2020, 12:36 PM
/ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
682

msg.player does not have to exists.
Start game with empty slot.

WARNING: JavaScript warning: simulation/components/GuiInterface.js line 682 reference to undefined property msg.player
wraitii requested verification of this commit.Jul 21 2020, 10:22 AM
This commit now requires verification by auditors.Jul 21 2020, 10:22 AM
Silier accepted this commit.Jul 21 2020, 10:23 AM
All concerns with this commit have now been addressed.Jul 21 2020, 10:23 AM
Freagarach raised a concern with this commit.Nov 5 2020, 9:13 AM
Freagarach added a subscriber: Freagarach.
This commit now has outstanding concerns.Nov 5 2020, 9:13 AM
All concerns with this commit have now been addressed.Nov 12 2020, 7:02 AM