summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLed Mitz <smoothshifter@tuta.io>2023-04-04 16:55:01 +0000
committerLed Mitz <smoothshifter@tuta.io>2023-04-04 16:55:01 +0000
commit43275bda27806beaf1cb83ff2985116dbb465121 (patch)
tree2edf0ae0491bfbfea5f17c54f0989bd4a089a44e
parent2b558b4d8a96ed017130f1921ef6fb483e7b4796 (diff)
parentde6a48417c159651a32a2443ca9b8b4128da5c1f (diff)
downloadtools-43275bda27806beaf1cb83ff2985116dbb465121.tar.gz
tools-43275bda27806beaf1cb83ff2985116dbb465121.tar.bz2
tools-43275bda27806beaf1cb83ff2985116dbb465121.tar.xz
tools-43275bda27806beaf1cb83ff2985116dbb465121.zip
Merge branch 'item_mode' into 'master'
item-mode-field spacing update See merge request legacy/tools!28
-rwxr-xr-xevolved.py30
1 files changed, 28 insertions, 2 deletions
diff --git a/evolved.py b/evolved.py
index 0f94217..1dcac3b 100755
--- a/evolved.py
+++ b/evolved.py
@@ -414,6 +414,7 @@ enum class ItemType : uint8_t
ARROW = 10, // ammo
_11 = 11, // in eA, delayed use (special script)
};
+
# used in tmwa
IT_USABLE
IT_ETC
@@ -432,6 +433,30 @@ enum class ItemLook : uint16_t
COUNT = 17,
};
+// coefficients for each weapon type
+// (not all used)
+static //const
+earray<interval_t, ItemLook, ItemLook::COUNT> aspd_base_0 //=
+{{
+650_ms, // 0 NONE
+700_ms, // 1 BLADE or some other common weapons
+750_ms, // 2
+610_ms, // 3 SETZER_AND_SCYTHE
+2000_ms, // 4
+2000_ms, // 5
+800_ms, // 6 Falchion
+2000_ms, // 7
+700_ms, // 8
+700_ms, // 9
+650_ms, //10 STAFF / Sandcutter
+900_ms, //11 BOW
+2000_ms, //12
+2000_ms, //13
+2000_ms, //14
+2000_ms, //15
+2000_ms, //16
+}};
+
# Loc
enum class EPOS : uint16_t
{
@@ -482,8 +507,9 @@ def write_item(i, f):
## View
if i.aegis == "Setzer" or i.aegis == "Scythe":
view="3"
+ elif i.aegis == "Beheader":
+ view="4"
elif i.aegis == "SandCutter" or i.aegis == "Jackal" or i.aegis == "WoodenStaff" or i.aegis == "SweetTooth":
- # why do SandCutter and Jackal use a value thats used for staffs? this value is never used though even for real staffs.
view="10"
elif i.subtype == "W_BOW":
view="11"
@@ -542,7 +568,7 @@ def write_item(i, f):
i.wlv=i.wlv+','+' '*(len(re.findall('wLV, *', description_i)[0])-len(i.wlv)-1)
i.elv=i.elv+','+' '*(len(re.findall('eLV, *', description_i)[0])-len(i.elv)-1)
view=view+','+' '*(len(re.findall('View, *', description_i)[0])-len(view)-1)
- md=md+','+' '*(len(re.findall('wLV, *', description_i)[0])-len(md)-1)
+ md=md+','+' '*(len(re.findall('Mode, *', description_i)[0])-len(md)-1)
usescriptstr='{'+' '.join(str(x) for x in i.usescript)+'}'
usescriptstr=usescriptstr+','+' '*(len(re.findall('{UseScript}, *', description_i)[0])-len(usescriptstr)-1)
eqscriptstr='{'+' '.join(str(x) for x in i.eqscript)+'}'