Skip to content

Commit

Permalink
Added the Greedy trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Aug 28, 2022
1 parent 0af39e6 commit 699f7c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions data/upgrades/traits/greedy.txt
Original file line number Diff line number Diff line change
@@ -0,0 1,10 @@
upgrade_greedy = {
parent = upgrade_trait
name = "Greedy"
modifier = {
cost_modifier = 10
}
conditions = {
character = true
}
}
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 93,7 @@ https://github.com/Andrettin/Wyrmsun
- Added predefined territories for the Alexandria, Algiers, Carthage, Cyrene, Rabat and Tripoli settlements for the Earth scenario map.

* Units
- Added the Greedy trait ( 10% cost modifier). This trait only affects units which represent a character/hero.
- The hero unit recruitment tooltip now displays which trait it has.

* Upgrades
Expand Down
2 changes: 1 addition & 1 deletion scripts/units.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 85,7 @@ DefineUnitType("unit-template-sapient-unit", {
Charisma = 10,
Organic = true,
Mana = {Enable = false, Max = 0, Value = 0, Increase = 1},
Traits = {"upgrade-ambitious", "upgrade-clumsy", "upgrade-cruel", "upgrade-dextrous", "upgrade-dim", "upgrade-dutiful", "upgrade-genius", "upgrade-intelligent", "upgrade-keen", "upgrade-limping", "upgrade-mighty", "upgrade-near-sighted", "upgrade-old", "upgrade-pious", "upgrade-quick", "upgrade-reckless", "upgrade-resilient", "upgrade-slow", "upgrade-strong", "upgrade-weak", "upgrade-wise"}
Traits = {"upgrade-ambitious", "upgrade-clumsy", "upgrade-cruel", "upgrade-dextrous", "upgrade-dim", "upgrade-dutiful", "upgrade-genius", "upgrade_greedy", "upgrade-intelligent", "upgrade-keen", "upgrade-limping", "upgrade-mighty", "upgrade-near-sighted", "upgrade-old", "upgrade-pious", "upgrade-quick", "upgrade-reckless", "upgrade-resilient", "upgrade-slow", "upgrade-strong", "upgrade-weak", "upgrade-wise"}
})

Load("scripts/items.lua")
Expand Down

0 comments on commit 699f7c4

Please sign in to comment.