ENDLESS™ Legend is a turn-based 4X fantasy-strategy game, where you control every aspect of your civilization as you struggle to save your homeworld Auriga. Create your own Legend!
I noticed some weirdness with the Forgotten tech, "Learn From Others" and posted about it here. I decided I would make a mod to fix the issue.
I changed the problem line in the technology definition from this:
[CODE][/CODE]
to this:
[CODE]
[/CODE]
I am now seeing the infiltrated hero bonus applied to hero XP, but it's always 0. (See below screenshots.)
What have I done wrong? Am I accessing the SpyCount property incorrectly? Am I applying the bonus to hero units wrong? Or maybe, is it just bugged? Any help is appreciated.
The SpyCount property belongs to ClassEmpire (aka EmpireTypeMajor) while the ExperienceGainPerTurn property belongs to UnitHero. My guess is that you are attempting to access a nonexistent SpyCount property under the UnitHero class, which is why you're adding zero. Try modifying your call to $(SpyCount) to $Property(EmpireTypeMajor:SpyCount). I found examples of calls like this in DepartmentOfScience+Constructibles[].xml, specifically the technology cost lines. Let us know if this works, as it seems like an easy fix to make.
DirtyBeach
Brave Spy
DirtyBeach
Brave Spy
18 700g2g ptsReport comment
Why do you report DirtyBeach?
Are you sure you want to block DirtyBeach ?
BlockCancelAre you sure you want to unblock DirtyBeach ?
UnblockCancelbrainiac1530
Newcomer
brainiac1530
Newcomer
9 100g2g ptsReport comment
Why do you report brainiac1530?
Are you sure you want to block brainiac1530 ?
BlockCancelAre you sure you want to unblock brainiac1530 ?
UnblockCancel