Commit 7e389a6742f61c477bf39a6f66588ab2457b0547

Authored by yutio888
1 parent 47c55a49

fix

... ... @@ -387,8 +387,7 @@ end
387 387 -- @return[1] nil if a filter was given an nothing found
388 388 -- @return[2] the fully resolved entity, ready to be used on a level
389 389 function _M:makeEntity(level, type, filter, force_level, prob_filter)
390   - local oldlev = resolvers.current_level
391   - resolvers.current_level = self.base_level + level.level - 1 + (filter and filter.add_levels or 0)
  390 + resolvers.current_level = self.base_level + level.level - 1
392 391 if force_level then resolvers.current_level = force_level end
393 392
394 393 local list
... ... @@ -454,7 +453,6 @@ function _M:makeEntity(level, type, filter, force_level, prob_filter)
454 453
455 454 e = self:finishEntity(level, type, e, (filter and filter.ego_filter) or (filter and filter.ego_chance))
456 455 e.__forced_level = filter and filter.add_levels
457   - resolvers.current_level = oldlev
458 456 return e
459 457 end
460 458
... ...
... ... @@ -38,7 +38,7 @@ rotates = {"default", "90", "180", "270", "flipx", "flipy"}
38 38 defineTile('.', "BONEFLOOR")
39 39 defineTile('+', "DOOR")
40 40 defineTile('X', "HARDBONEWALL")
41   -defineTile('!', "BONE_VAULTDOOR", nil, nil, nil, {room_map={special=false, room=false, can_open=true}})
  41 +defineTile('!', "DOOR_VAULT", nil, nil, nil, {room_map={special=false, room=false, can_open=true}})
42 42
43 43 defineTile('a', "BONEFLOOR", nil, {random_filter={name="armoured skeleton warrior", add_levels=10}})
44 44 defineTile('m', "BONEFLOOR", nil, {random_filter={name="skeleton mage", add_levels=10}})
... ...