- 好友
- 0
- 在线时间
- 12 小时
- 最后登录
- 2010-3-2
平民
- UID
- 186328
- 第纳尔
- 1
- 精华
- 0
- 互助
- 0
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 0
- 注册时间
- 2010-1-11
鲜花( 0) 鸡蛋( 0)
|
发表于 2010-3-2 10:32:34
|
显示全部楼层
新的1.220完整版中
关于食物消耗的代码有改动,
能否请教一下具体的含义或实现了何种功能,
简要说明即可
拜谢!
# Consuming food at every 14 hours
(14,
[#(store_sub, ":num_food", food_end, food_begin),
(eq, "$g_player_is_captive", 0),
(party_get_num_companion_stacks, ":num_stacks","p_main_party"),
(assign, ":num_men", 0),
## CC
(try_for_range, ":i_stack", 0, ":num_stacks"),
(party_stack_get_size, ":stack_size","p_main_party",":i_stack"),
(party_stack_get_troop_id, ":stack_troop","p_main_party",":i_stack"),
(store_character_level, ":troop_level", ":stack_troop"),
(val_add, ":troop_level", 15),
(store_mul, ":stack_strenghth", ":stack_size", ":troop_level"),
(try_begin),
(troop_is_mounted, ":stack_troop"),
(val_mul, ":stack_strenghth", 3),
(val_div, ":stack_strenghth", 2),
(try_end),
(val_add, ":num_men", ":stack_strenghth"),
(try_end),
(val_div, ":num_men", 90),
(val_max, ":num_men", 1), |
|