Skip to content
Snippets Groups Projects
Commit 987c4792 authored by dg's avatar dg
Browse files

slime mold cost more

added high level stacks of gold
amulet of mastery updated with new school
stores refill less often and delete their stock


git-svn-id: http://svn.net-core.org/repos/t-engine4@473 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4ddff69b
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,14 @@ function _M:loadup(level, zone)
end
local inven = self:getInven("INVEN")
if s.empty_before_restock then
for i = #inven, 1, -1 do
local e = inven[i]
inven[i] = nil
e:removed()
end
end
for i = 1, rng.range(s.min_fill, s.max_fill) - #inven do
local filter = rng.table(s.filters)
local e = zone:makeEntity(level, "object", filter)
......
......@@ -28,9 +28,9 @@ newEntity{
resolvers.generic(function(e)
local tts = {
"cunning/dirty",
"cunning/lethality",
"cunning/stealth",
"cunning/survival",
"spell/air",
"spell/arcane",
"spell/conveyance",
......@@ -39,13 +39,15 @@ newEntity{
"spell/fire",
"spell/meta",
"spell/nature",
"spell/necromancy",
"spell/phantasm",
"spell/temporal",
"spell/water",
"technique/2hweapon-cripple",
"technique/2hweapon-offense",
"technique/archery-bow",
"technique/archery-sling",
"technique/archery-training",
"technique/archery-utility",
"technique/combat-techniques-active",
"technique/combat-techniques-passive",
"technique/combat-training",
......@@ -53,6 +55,15 @@ newEntity{
"technique/dualweapon-training",
"technique/shield-defense",
"technique/shield-offense",
"wild-gift/call",
"wild-gift/cold-drake",
"wild-gift/fire-drake",
"wild-gift/sand-drake",
"wild-gift/slime",
"wild-gift/summon-augmentation",
"wild-gift/summon-distance",
"wild-gift/summon-melee",
"wild-gift/summon-utility",
}
local tt = tts[rng.range(1, #tts)]
......
......@@ -20,3 +20,12 @@ newEntity{ base = "BASE_MONEY",
level_range = {1, 50},
money_value = resolvers.rngavg(1, 20),
}
newEntity{ base = "BASE_MONEY",
name = "huge pile of gold pieces",
add_name = " (#MONEY#)",
level_range = {30, 50},
color=colors.GOLD,
rarity = 15,
money_value = resolvers.rngavg(30, 50),
}
......@@ -156,7 +156,7 @@ newEntity{ base = "BASE_POTION",
color = colors.GREEN, image="object/potion-2x0.png",
level_range = {1, 2},
rarity = 4,
cost = 0.01,
cost = 0.5,
use_simple = { name="quaff", use = function(self, who)
game.logSeen(who, "%s quaffs the slime juice. Yuck.", who.name:capitalize())
......
......@@ -3,7 +3,8 @@ newEntity{
name = "general store",
display = '1', color=colors.LIGHT_UMBER,
store = {
restock_after = 200,
restock_after = 1000,
empty_before_restock = true,
buy_percent = 10,
min_fill = 40,
max_fill = 60,
......@@ -21,7 +22,8 @@ newEntity{
name = "armour smith",
display = '2', color=colors.UMBER,
store = {
restock_after = 200,
restock_after = 1000,
empty_before_restock = true,
buy_percent = 10,
min_fill = 10,
max_fill = 20,
......@@ -36,7 +38,8 @@ newEntity{
name = "weapon mith",
display = '3', color=colors.UMBER,
store = {
restock_after = 200,
restock_after = 1000,
empty_before_restock = true,
buy_percent = 10,
min_fill = 10,
max_fill = 20,
......@@ -52,7 +55,8 @@ newEntity{
name = "alchemist store",
display = '4', color=colors.LIGHT_BLUE,
store = {
restock_after = 200,
restock_after = 1000,
empty_before_restock = true,
buy_percent = 10,
min_fill = 40,
max_fill = 60,
......@@ -67,7 +71,8 @@ newEntity{
name = "scribe store",
display = '5', color=colors.WHITE,
store = {
restock_after = 200,
restock_after = 1000,
empty_before_restock = true,
buy_percent = 10,
min_fill = 40,
max_fill = 60,
......
......@@ -127,11 +127,9 @@ function _M:generateList()
end
function _M:drawDialog(s)
local help = ([[
You have died!
Death in T.o.M.E is usually permanent. If you have a mean of resurrection it will be proposed in the menu below.
You can dump your character data to a file, to remember her/him forever or you can exit and try again to survive in the wilds!
local help = ([[You have #LIGHT_RED#died##LAST#!
Death in T.o.M.E. is usually permanent, but if you have a means of resurrection it will be proposed in the menu below.
You can dump your character data to a file to remember her/him forever, or you can exit and try again to survive in the wilds!
]]):splitLines(self.iw - 10, self.font)
local h = 2
......
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