Commit 65f67b1090a22f2db034ca15994a4b19b6568c7a

Authored by DarkGod
2 parents 5c0dbbd2 0102d3ac

Merge branch 'sleeping-dragons' into 'master'

make sleep dragons neutral & make forced unique

Your summons won't aggro it uncontrollably, also make its reward more alluring.

See merge request !633
... ... @@ -81,6 +81,7 @@ local aggro_wyrm = function()
81 81 if e.sleeping_wyrm == true then
82 82 e:removeEffect(e.EFF_DOZING)
83 83 e:setTarget(game.player)
  84 + e.faction = "enemies"
84 85 end
85 86 end
86 87 game.log("#CRIMSON#The dragons awaken from their slumber detecting their loot being stolen!")
... ... @@ -106,8 +107,8 @@ local aggro_wyrm_grid = function(chance)
106 107 return g
107 108 end
108 109 defineTile('1', aggro_wyrm_grid(3), {random_filter={add_levels=25, type="money"}})
109   -defineTile('2', aggro_wyrm_grid(10), {random_filter={add_levels=15, tome_mod="uvault"}})
110   -defineTile('3', aggro_wyrm_grid(33), {random_filter={add_levels=25, tome_mod="gvault"}})
  110 +defineTile('2', aggro_wyrm_grid(10), {random_filter={add_levels=15, tome_mod="gvault"}})
  111 +defineTile('3', aggro_wyrm_grid(33), {random_filter={unique=true, not_properties={"lore"}, add_levels=25, tome_mod="gvault"}})
111 112 defineTile('W', "FLOOR", nil,
112 113 {entity_mod=function(e)
113 114 e.make_escort = nil
... ... @@ -116,6 +117,7 @@ defineTile('W', "FLOOR", nil,
116 117 e.on_takehit = aggro_wyrm_takehit
117 118 e.aggro_wyrm = aggro_wyrm
118 119 e.sleeping_wyrm = true
  120 + e.hard_faction = "neutral"
119 121 return e
120 122 end,
121 123 random_filter={special_rarity="wyrm_rarity",
... ... @@ -132,6 +134,7 @@ defineTile('D', "FLOOR", nil,
132 134 e.on_takehit = aggro_wyrm_takehit
133 135 e.aggro_wyrm = aggro_wyrm
134 136 e.sleeping_wyrm = true
  137 + e.hard_faction = "neutral"
135 138 return e
136 139 end,
137 140 random_filter={special_rarity="drake_rarity",
... ...