mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
highest ID of dynamicItem reduced to 1048575
Former-commit-id: b1e36d020a57aac497eff5d3db7142940f590fe4 Former-commit-id: c437e8447ba2a58fdc7dfd05f1ac80284f845702
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|-----|-----------|
|
||||
|0..4095|Tiles|
|
||||
|4096..32767|Items (static)|
|
||||
|32768..16777215|Items (dynamic\*)|
|
||||
|16777216..0x7FFFFFFF|Actors|
|
||||
|32768..1048575|Items (dynamic\*)|
|
||||
|1048576..0x7FFFFFFF|Actors|
|
||||
|0x80000000..0xFFFFFFFF (all negative numbers)|Faction|
|
||||
|
||||
* dynamic items can have their own properties that will persist through savegame.
|
||||
@@ -27,7 +27,7 @@ object ItemCodex {
|
||||
private val dynamicItemDescription = HashMap<Int, KVHashMap>()
|
||||
|
||||
val ITEM_TILE_MAX = GameWorld.TILES_SUPPORTED - 1 // 4095
|
||||
val ITEM_COUNT_MAX = 16777216
|
||||
val ITEM_COUNT_MAX = 1048576
|
||||
val ITEM_DYNAMIC_MAX = ITEM_COUNT_MAX - 1
|
||||
val ITEM_STATIC_MAX = 32767
|
||||
val ITEM_DYNAMIC_MIN = ITEM_STATIC_MAX + 1
|
||||
|
||||
Reference in New Issue
Block a user