Skip to content
Snippets Groups Projects
Commit 28dad376 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@1243 51575b47-30f0-44d4-a5cc-537603b46e54
parent b2c4f1c6
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ function _M:simplePopup(title, text, fct, no_leave)
end
d.drawDialog = function(self, s)
s:drawColorStringCentered(self.font, text, 2, 2, self.iw - 2, self.ih - 2)
self.changed = false
end
game:registerDialog(d)
return d
......@@ -64,6 +65,7 @@ function _M:simpleLongPopup(title, text, w, fct, no_leave)
for i = 1, #list do
r, g, b = s:drawColorStringBlended(self.font, list[i], 5, h, r, g, b) h = h + th
end
self.changed = false
end
game:registerDialog(d)
return d
......@@ -98,6 +100,7 @@ function _M:yesnoPopup(title, text, fct, yes_text, no_text)
s:drawColorStringCentered(self.font, yes_text or "Yes", 2, 25, self.iw / 2 - 2, 50 - 2, 255, 255, 255)
s:drawColorStringCentered(self.font, no_text or "No", 2 + self.iw / 2, 25, self.iw / 2 - 2, 50 - 2, 0, 255, 255)
end
self.changed = false
end
game:registerDialog(d)
return d
......@@ -197,7 +200,7 @@ function _M:display()
end
self.font:setStyle("bold")
local tw, th = self.font:size(self.title)
local tw, th = self.font:size(self.title:removeColorCodes())
s:drawColorStringBlended(self.font, self.title, (self.w - tw) / 2, 4, 255,255,255)
self.font:setStyle("normal")
......
......@@ -36,6 +36,7 @@ newEntity{ define_as = "HIGH_SUN_PALADIN_AERYN",
infravision = 20,
stats = { str=15, dex=10, cun=12, mag=16, con=14 },
instakill_immune = 1,
teleport_immune = 1,
move_others=true,
open_door = true,
......
......@@ -41,6 +41,7 @@ newEntity{ define_as = "FILLAREL",
infravision = 20,
stats = { str=10, dex=22, cun=25, mag=20, con=12 },
instakill_immune = 1,
teleport_immune = 1,
move_others=true,
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1 },
......@@ -95,6 +96,7 @@ newEntity{ define_as = "CORRUPTOR",
size_category = 3,
stats = { str=10, dex=22, cun=25, mag=20, con=12 },
instakill_immune = 1,
teleport_immune = 1,
move_others=true,
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1 },
......
......@@ -37,7 +37,7 @@ return {
actor = {
class = "engine.generator.actor.Random",
area = {x1=0, x2=85, y1=0, y2=49},
nb_npc = {10, 30},
nb_npc = {50, 60},
},
object = {
class = "engine.generator.object.Random",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment