Commit e8f64ae503eb0f8b3e1c2f36cdaaa24220a58a96

Authored by DarkGod
1 parent a22f7184

unlock for avatars

1 1 {
2   - "22": {
3   - "id": 22,
  2 + "24": {
  3 + "id": 24,
  4 + "name": "lua-code",
  5 + "data": {
  6 + "code": "player:callTalent(player.T_AVATAR_DISTANT_SUN_UNLOCK_CHECKER, \"doUnlock\")"
  7 + },
  8 + "class": "lua-code",
  9 + "html": "lua-code",
  10 + "typenode": true,
  11 + "inputs": {
  12 + "input_1": {
  13 + "connections": [
  14 + {
  15 + "node": "26",
  16 + "input": "output_1"
  17 + },
  18 + {
  19 + "node": "32",
  20 + "input": "output_1"
  21 + }
  22 + ]
  23 + }
  24 + },
  25 + "outputs": {
  26 + "output_1": {
  27 + "connections": []
  28 + }
  29 + },
  30 + "pos_x": 2440,
  31 + "pos_y": 549.1111111111111
  32 + },
  33 + "25": {
  34 + "id": 25,
4 35 "name": "chat",
5 36 "data": {
6 37 "chatid": "welcome",
7   - "chat": "**DO NOT TRANSLATE YET**\n<<<You feel a gentle warmth in your mind. Something speaks directly to your mind!>>>\n#YELLOW#WELL MET FRIEND! I AM A FAR AWAY STAR, AND VERY FRIENDLY, ALSO LIBERTY NEEDS TO WRITE ME!\n#LAST#",
8   - "answer1": "sOUNDS COOL!"
  38 + "chat": "<<<You feel a gentle warmth in your mind. Something speaks directly to your mind!>>>\n#YELLOW#HELLO FRIEND. I AM A STAR FROM FAR AWAY. I HAVE HEARD YOU PRAISING YOUR SUN. WHY NOT PRAISE ME INSTEAD? I AM A MUCH BETTER SUN THAN THAT DULL, LIFELESS GAS ORB IN YOUR VICINITY. PLEASE, ALLOW ME TO DEMONSTRATE MY GOOD INTENTIONS.",
  39 + "answer1": "Uhh, okay. Sure. Mind showing me?",
  40 + "answer2": "I don't take unsolicited messages from... stars."
9 41 },
10 42 "class": "chat",
11   - "html": "chat1",
  43 + "html": "chat2",
12 44 "typenode": true,
13 45 "inputs": {
14 46 "input_1": {
... ... @@ -19,29 +51,133 @@
19 51 "output_1": {
20 52 "connections": [
21 53 {
  54 + "node": "26",
  55 + "output": "input_1"
  56 + }
  57 + ]
  58 + },
  59 + "output_2": {
  60 + "connections": [
  61 + {
  62 + "node": "29",
  63 + "output": "input_1"
  64 + }
  65 + ]
  66 + }
  67 + },
  68 + "pos_x": 23,
  69 + "pos_y": 167
  70 + },
  71 + "26": {
  72 + "id": 26,
  73 + "name": "chat",
  74 + "data": {
  75 + "chatid": "chat2",
  76 + "chat": "#YELLOW#YOU ONLY HAD TO ASK, MY FRIEND.",
  77 + "answer1": "#CRIMSON#[The area around you erupts in flames, burning your foes]"
  78 + },
  79 + "class": "chat",
  80 + "html": "chat1",
  81 + "typenode": true,
  82 + "inputs": {
  83 + "input_1": {
  84 + "connections": [
  85 + {
  86 + "node": "25",
  87 + "input": "output_1"
  88 + },
  89 + {
  90 + "node": "30",
  91 + "input": "output_1"
  92 + },
  93 + {
  94 + "node": "31",
  95 + "input": "output_1"
  96 + }
  97 + ]
  98 + }
  99 + },
  100 + "outputs": {
  101 + "output_1": {
  102 + "connections": [
  103 + {
22 104 "node": "24",
23 105 "output": "input_1"
24 106 }
25 107 ]
26 108 }
27 109 },
28   - "pos_x": 213,
29   - "pos_y": 362
  110 + "pos_x": 2084.3333333333335,
  111 + "pos_y": 265
30 112 },
31   - "24": {
32   - "id": 24,
33   - "name": "lua-code",
  113 + "29": {
  114 + "id": 29,
  115 + "name": "chat",
34 116 "data": {
35   - "code": "player:callTalent(player.T_AVATAR_DISTANT_SUN_UNLOCK_CHECKER, \"doUnlock\")"
  117 + "chatid": "chat3",
  118 + "chat": "#YELLOW#DON'T BE LIKE THAT. I KNOW YOU ARE ON A NOBLE QUEST.",
  119 + "answer1": "Look, I appreciate the offer, but I don't know you.",
  120 + "answer2": "I'm busy at the moment, so maybe call back another time?",
  121 + "answer3": "If you say so."
36 122 },
37   - "class": "lua-code",
38   - "html": "lua-code",
  123 + "class": "chat",
  124 + "html": "chat3",
  125 + "typenode": true,
  126 + "inputs": {
  127 + "input_1": {
  128 + "connections": [
  129 + {
  130 + "node": "25",
  131 + "input": "output_2"
  132 + }
  133 + ]
  134 + }
  135 + },
  136 + "outputs": {
  137 + "output_1": {
  138 + "connections": [
  139 + {
  140 + "node": "30",
  141 + "output": "input_1"
  142 + }
  143 + ]
  144 + },
  145 + "output_2": {
  146 + "connections": [
  147 + {
  148 + "node": "31",
  149 + "output": "input_1"
  150 + }
  151 + ]
  152 + },
  153 + "output_3": {
  154 + "connections": [
  155 + {
  156 + "node": "32",
  157 + "output": "input_1"
  158 + }
  159 + ]
  160 + }
  161 + },
  162 + "pos_x": 670,
  163 + "pos_y": 631
  164 + },
  165 + "30": {
  166 + "id": 30,
  167 + "name": "chat",
  168 + "data": {
  169 + "chatid": "chat4",
  170 + "chat": "#YELLOW#I AM YOUR FRIEND. NOW YOU KNOW ME. LET US BEGIN A LONG AND FRUITFUL FRIENDSHIP.",
  171 + "answer1": "Uhh, okay. Sure. Mind showing me?"
  172 + },
  173 + "class": "chat",
  174 + "html": "chat1",
39 175 "typenode": true,
40 176 "inputs": {
41 177 "input_1": {
42 178 "connections": [
43 179 {
44   - "node": "22",
  180 + "node": "29",
45 181 "input": "output_1"
46 182 }
47 183 ]
... ... @@ -49,10 +185,83 @@
49 185 },
50 186 "outputs": {
51 187 "output_1": {
52   - "connections": []
  188 + "connections": [
  189 + {
  190 + "node": "26",
  191 + "output": "input_1"
  192 + }
  193 + ]
  194 + }
  195 + },
  196 + "pos_x": 1431,
  197 + "pos_y": 388
  198 + },
  199 + "31": {
  200 + "id": 31,
  201 + "name": "chat",
  202 + "data": {
  203 + "chatid": "chat5",
  204 + "chat": "#YELLOW#BUSY, YOU SAY? I CAN FIX THAT, LIKE ANY GOOD FRIEND WOULD.",
  205 + "answer1": "Uhh, okay. Sure. Mind showing me?"
  206 + },
  207 + "class": "chat",
  208 + "html": "chat1",
  209 + "typenode": true,
  210 + "inputs": {
  211 + "input_1": {
  212 + "connections": [
  213 + {
  214 + "node": "29",
  215 + "input": "output_2"
  216 + }
  217 + ]
  218 + }
  219 + },
  220 + "outputs": {
  221 + "output_1": {
  222 + "connections": [
  223 + {
  224 + "node": "26",
  225 + "output": "input_1"
  226 + }
  227 + ]
  228 + }
  229 + },
  230 + "pos_x": 1429,
  231 + "pos_y": 640
  232 + },
  233 + "32": {
  234 + "id": 32,
  235 + "name": "chat",
  236 + "data": {
  237 + "chatid": "chat6",
  238 + "chat": "#YELLOW#YOU DON'T BELIEVE ME? THEN PLEASE, ALLOW ME TO SHOW YOU A MERE FRACTION OF MY POWER.",
  239 + "answer1": "#CRIMSON#[The area around you erupts in flames, burning your foes]"
  240 + },
  241 + "class": "chat",
  242 + "html": "chat1",
  243 + "typenode": true,
  244 + "inputs": {
  245 + "input_1": {
  246 + "connections": [
  247 + {
  248 + "node": "29",
  249 + "input": "output_3"
  250 + }
  251 + ]
  252 + }
  253 + },
  254 + "outputs": {
  255 + "output_1": {
  256 + "connections": [
  257 + {
  258 + "node": "24",
  259 + "output": "input_1"
  260 + }
  261 + ]
53 262 }
54 263 },
55   - "pos_x": 775,
56   - "pos_y": 381
  264 + "pos_x": 1420,
  265 + "pos_y": 903
57 266 }
58 267 }
\ No newline at end of file
... ...

5.02 KB | W: | H:

9.32 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

5.18 KB | W: | H:

9.14 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

5.25 KB | W: | H:

9.12 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

5.82 KB | W: | H:

9.58 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

5.02 KB | W: | H:

9.23 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

5.18 KB | W: | H:

9.16 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

7.41 KB | W: | H:

9.36 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

7.41 KB | W: | H:

9.56 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

6.93 KB | W: | H:

8.92 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

6.93 KB | W: | H:

9.03 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -237,8 +237,8 @@ newTalent{
237 237 hide = "always",
238 238 no_unlearn_last = true,
239 239 callbackOnAct = function(self, t)
240   - if not game.zone or not game.zone.in_orbit then return end
241   - if not rng.chance(30) then return end
  240 + if not game.zone or not game.zone.in_orbit or not self.in_combat then return end
  241 + if not rng.chance(20) then return end
242 242
243 243 local chat = require("engine.Chat").new("avatar-distant-sun-unlock", t, self)
244 244 chat:invoke()
... ... @@ -246,8 +246,9 @@ newTalent{
246 246 doUnlock = function(self, t)
247 247 game:setAllowedBuild("paladin_avatar", true)
248 248 self:unlearnTalent(self.T_AVATAR_DISTANT_SUN_UNLOCK_CHECKER)
249   - self:project({type="ball", radius=20, friendlyfire=false}, self.x, self.y, DamageType.FIRE, 5000)
250   - game.level.map:particleEmitter(x, y, 20, "fireflash", {radius=20, proj_x=self.x, proj_y=self.y, src_x=self.x, src_y=self.y})
  249 + self:project({type="ball", radius=200, friendlyfire=false}, self.x, self.y, DamageType.FIRE, 5000)
  250 + game.level.map:particleEmitter(self.x, self.y, 20, "fireflash", {radius=20, proj_x=self.x, proj_y=self.y, src_x=self.x, src_y=self.y})
  251 + game.log('#CRIMSON#As your "talk" with the star ends, you feel its power, the whole area around you erupts in flames, burning your foes to cinders!')
251 252 end,
252 253 info = function(self, t)
253 254 return "Move along, nothing to see" -- No need to translate
... ...
... ... @@ -18,13 +18,13 @@
18 18 -- darkgod@te4.org
19 19
20 20 return _t"New Class Evolution: #LIGHT_GREEN#Avatar of a Distant Sun (Sun Paladin)",
21   -_t[[Yuo have been contacted by a sentient star, far away from Eyal. It wants to help you on your journey!
  21 +_t[[You have been contacted by a sentient star, far away from Eyal. It wants to help you on your journey!
22 22
23 23 You have unlocked the #LIGHT_GREEN#Avatar of a Distant Sun class evolution#WHITE# for Sun Paladins.
24 24
25 25 Features:
26 26 - #GOLD#Wield a two-handed weapon and a shield together#LAST#
27   -- 50%% of all damage dealt is converted to #GOLD#light damage#LAST#
  27 +- 50% of all damage dealt is converted to #GOLD#light damage#LAST#
28 28 - #GOLD#Gravitic Effulgence#LAST#: whenever Weapon of Light hits the damage is now a radius 2 sphere and all foes in range 5 are drawn to it
29 29 - The damage and chance to trigger of #GOLD#Searing Sight#LAST# is doubled
30 30 - Whenever #GOLD#Sun's Vengeance#LAST# triggers the remaining cooldown of Judgement is reduced by 6
... ...
... ... @@ -33,14 +33,14 @@ function _M:init(what)
33 33
34 34 game.logPlayer(game.player, "#VIOLET#Option unlocked: %s", self.name)
35 35
36   - Dialog.init(self, ("Option unlocked: %s"):tformat(self.name), 600, 400)
  36 + Dialog.init(self, ("Option unlocked: %s"):tformat(self.name), math.min(math.max(game.w * 0.8, 800), 1200, game.w), 400)
37 37
38   - self.c_desc = Textzone.new{width=math.floor(self.iw - 10), height=self.ih, no_color_bleed=true, auto_height=true, text=self.str}
  38 + self.c_desc = Textzone.new{width=math.floor(self.iw - 10), no_color_bleed=true, auto_height=true, text=self.str}
39 39
40 40 self:loadUI{
41 41 {left=0, top=0, ui=self.c_desc},
42 42 }
43   - self:setupUI(not rw, not rh)
  43 + self:setupUI(true, true)
44 44
45 45 self.key:addBinds{
46 46 ACCEPT = accept_key and "EXIT",
... ...