Home
last modified time | relevance | path

Searched refs:max_hit_points (Results 1 – 25 of 78) sorted by relevance

1234

/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/
H A Dmon-grow.cc93 const int minhp = dummy.max_hit_points; in upgrade_type()
94 if (max_hit_points < minhp) in upgrade_type()
96 hit_points += minhp - max_hit_points; in upgrade_type()
97 max_hit_points = minhp; in upgrade_type()
98 hit_points = min(hit_points, max_hit_points); in upgrade_type()
123 if (max_hit_points < 1000) in level_up()
126 (get_experience_level() > 3? max_hit_points / 8 : max_hit_points / 4) in level_up()
134 max_hit_points, hpboost); in level_up()
136 max_hit_points += hpboost; in level_up()
138 hit_points = min(hit_points, max_hit_points); in level_up()
H A Dmon-abil.cc191 slime->max_hit_points = (int)(slime->blob_size * max_per_blob); in _stats_from_blob_count()
234 float max_per_blob = thing->max_hit_points / float(thing->blob_size); in _do_split()
288 merge_to->max_hit_points += initial_slime->max_hit_points; in _do_merge_slimes()
730 mons.heal(mons.max_hit_points); in lost_soul_revive()
1075 if (mons->hit_points * 2 < mons->max_hit_points in mon_special_ability()
1086 if (mons->hit_points * 2 < mons->max_hit_points in mon_special_ability()
H A Dmonster.cc75 : hit_points(0), max_hit_points(0), in monster()
132 max_hit_points = 0; in reset()
178 max_hit_points = mon.max_hit_points; in init_with()
3476 if (hit_points > max_hit_points) in heal()
3477 hit_points = max_hit_points; in heal()
3479 if (hit_points == max_hit_points) in heal()
4979 max_hit_points = (max_hit_points * num + 1) / den; in scale_hp()
4983 if (max_hit_points < 1) in scale_hp()
4984 max_hit_points = 1; in scale_hp()
4985 if (hit_points > max_hit_points) in scale_hp()
[all …]
H A Dmon-poly.cc294 const int old_hp_max = mons->max_hit_points; in change_monster_type()
379 mons->hit_points = mons->max_hit_points * old_hp / old_hp_max in change_monster_type()
380 + random2(mons->max_hit_points); in change_monster_type()
382 mons->hit_points = min(mons->max_hit_points, mons->hit_points); in change_monster_type()
H A Dmon-act.cc134 if (mons->hit_points == mons->max_hit_points) in _monster_regenerate()
1360 mons.hit_points = min(mons.max_hit_points, mons.hit_points); in _pre_monster_move()
2452 parent.max_hit_points /= 2; in _jelly_divide()
2454 if (parent.hit_points > parent.max_hit_points) in _jelly_divide()
2455 parent.hit_points = parent.max_hit_points; in _jelly_divide()
2464 child->max_hit_points = child->hit_points; in _jelly_divide()
2551 mons->max_hit_points = max(mons->hit_points, mons->max_hit_points); in _monster_eat_item()
2814 return mon->hit_points < mon->max_hit_points / 2; in _check_damaging_walls()
2935 && mons->hit_points < (mons->max_hit_points * 3) / 4) in mon_can_move_to_pos()
3118 if (mons.hit_points > mons.max_hit_points) in _jelly_grows()
[all …]
H A Dwiz-fsim.cc339 mon->hit_points = mon->max_hit_points = MAX_MONSTER_HP; in _init_fsim()
366 unwind_var<int> mon_hp(mon.hit_points, mon.max_hit_points); in _do_one_fsim_round()
424 if (mon.max_hit_points > mon.hit_points) in _do_one_fsim_round()
428 fd.player.damage(mon.max_hit_points - mon.hit_points); in _do_one_fsim_round()
H A Ddactions.cc389 = (float) mon->hit_points / (float) mon->max_hit_points; in _daction_hog_to_human()
412 mon->hit_points = max(1, (int) (mon->max_hit_points * hp)); in _daction_hog_to_human()
/dports/games/7kaa/7kaa-2.15.4p1/src/
H A DOUNITDRW.cpp182 if( max_hit_points <= hit_bar_max_array[i] || i==HIT_BAR_TYPE_COUNT-1 ) in draw_selected()
185 hitBarMax = max_hit_points; // MAX( max_hit_points, hit_bar_max_array[i] ); in draw_selected()
230 int curBarWidth = maxHitBarWidth * max_hit_points / hitBarMax; in draw_selected()
231 …int pointX = (curBarWidth-1) * (int) hit_points / max_hit_points; // the separating point betwee… in draw_selected()
233 err_when( max_hit_points > hitBarMax ); in draw_selected()
234 err_when( hit_points > max_hit_points ); in draw_selected()
H A DOU_VEHI.cpp36 max_hit_points = unit_res[unitInfo->vehicle_id]->hit_points + in set_combat_level()
39 hit_points = MIN(hit_points, max_hit_points); in set_combat_level()
H A DOF_MONS.cpp322 if( monster_king.hit_points < monster_king.max_hit_points ) in recover_hit_points()
329 if( monster_general_array[i].hit_points < monster_general_array[i].max_hit_points ) in recover_hit_points()
377 monster_king.hit_points = monster_king.max_hit_points; in set_king()
493 monsterInFirm->hit_points = monsterInFirm->max_hit_points; in recruit_general()
652 err_when( hitPoints > monsterPtr->max_hit_points ); in mobilize_monster()
655 monsterPtr->hit_points = monsterPtr->max_hit_points; in mobilize_monster()
812 max_hit_points = (int) unitInfo->hit_points * combatLevel / 100; in set_combat_level()
H A DOUNIT.cpp189 max_hit_points = unit_res[unit_id]->hit_points; in init()
190 hit_points = max_hit_points; in init()
952 hit_points = max_hit_points; in next_day()
1002 err_when( hit_points > max_hit_points ); in next_day()
1003 err_when( max_hit_points == 0 ); in next_day()
1039 err_when( hit_points > max_hit_points ); in process_recover()
1076 if( hit_points > max_hit_points ) in process_recover()
1077 hit_points = max_hit_points; in process_recover()
1789 if( hit_points > max_hit_points ) in change_hit_points()
1790 hit_points = max_hit_points; in change_hit_points()
[all …]
H A DOFIRM.cpp99 max_hit_points = 0.0f; in Firm()
218 max_hit_points = firmInfo->max_hit_points; in init()
225 hit_points = max_hit_points; in init()
515 hit_points = max_hit_points; in complete_construction()
1376 if(hit_points>=max_hit_points) in process_construction()
1378 hit_points = max_hit_points; in process_construction()
1426 hit_points = max_hit_points; in process_construction()
1732 if( hit_points >= max_hit_points ) in process_repair()
1743 if( hit_points > max_hit_points ) in process_repair()
1744 hit_points = max_hit_points; in process_repair()
[all …]
H A DOFIRMDRW.cpp206 int solidLineCount = bitmapHeight / 2 * (int) hit_points / (int) max_hit_points; in draw_full_size()
207 int solidLinePixel = bitmapHeight / 2 * bitmapWidth * (int) hit_points / (int) max_hit_points - in draw_full_size()
210 int hitPerPixel = (int) max_hit_points / bitmapWidth / bitmapHeight / 2; in draw_full_size()
641 int r = int( hit_points * firmBuild->under_construction_bitmap_count / max_hit_points); in construction_frame()
H A DOFIRMIF.cpp431 disp_worker_hit_points( x+2, y+24, x+25, workerPtr->hit_points, workerPtr->max_hit_points() ); in disp_worker_list()
694 str += workerPtr->max_hit_points(); in disp_worker_info()
742 str += unitPtr->max_hit_points; in disp_overseer_info()
759 Vga::active_buf->indicator(0x0b, INFO_X1+58, dispY1+1, hitPoints, max_hit_points, 0); in disp_hit_point()
H A DOF_BASE.cpp539 * (int) overseerUnit->hit_points / overseerUnit->max_hit_points in train_unit()
563 * workerPtr->hit_points / workerPtr->max_hit_points() in train_unit()
596 if( workerPtr->hit_points < workerPtr->max_hit_points() ) in recover_hit_point()
H A DOF_CAMP.cpp673 * (int) overseerUnit->hit_points / overseerUnit->max_hit_points in train_unit()
689 incValue = 20 * (int) overseerUnit->hit_points / overseerUnit->max_hit_points in train_unit()
717 * workerPtr->hit_points / workerPtr->max_hit_points() in train_unit()
736 * workerPtr->hit_points / workerPtr->max_hit_points() in train_unit()
771 if( workerPtr->hit_points < workerPtr->max_hit_points() ) in recover_hit_point()
H A DOSPY2.cpp421 … spyUnit->hit_points < spyUnit->max_hit_points * (100-trueNation->pref_military_courage/2) / 100 ) in ai_spy_being_attacked()
442 … spyUnit->hit_points < spyUnit->max_hit_points * (100-trueNation->pref_military_courage/2) / 100 ) in ai_spy_being_attacked()
H A DOFIRMAI.cpp65 max_hit_points * (70+ownNation->pref_repair_concern/4) / 100 ) // 70% to 95% in think_repair()
72 if( hit_points >= max_hit_points * 80 / 100 ) in think_repair()
/dports/games/dungeoncrawl/dc400b26-src/source/
H A Dmonstuff.cc671 monster->max_hit_points = 0; in monster_cleanup()
744 parent->max_hit_points /= 2; in jelly_divide()
746 if (parent->hit_points > parent->max_hit_points) in jelly_divide()
747 parent->hit_points = parent->max_hit_points; in jelly_divide()
755 child->max_hit_points = child->hit_points; in jelly_divide()
918 int old_hp_max = monster->max_hit_points; in monster_polymorph()
941 monster->hit_points = monster->max_hit_points in monster_polymorph()
945 if (monster->hit_points > monster->max_hit_points) in monster_polymorph()
946 monster->hit_points = monster->max_hit_points; in monster_polymorph()
4695 monster->max_hit_points--; in mons_in_cloud()
[all …]
H A Dfight.cc1368 defender->max_hit_points -= 2 + random2(3); in you_attack()
1371 if (defender->hit_points >= defender->max_hit_points) in you_attack()
1372 defender->hit_points = defender->max_hit_points; in you_attack()
3184 defender->max_hit_points -= 1 + random2(3); in monsters_fight()
3186 if (defender->hit_points > defender->max_hit_points) in monsters_fight()
3187 defender->hit_points = defender->max_hit_points; in monsters_fight()
3265 defender->max_hit_points -= 2 + random2(3); in monsters_fight()
3268 if (defender->hit_points >= defender->max_hit_points) in monsters_fight()
3269 defender->hit_points = defender->max_hit_points; in monsters_fight()
3519 defender->max_hit_points -= 2 + random2(3); in monsters_fight()
[all …]
/dports/games/allacrost/allacrost-1.0.2/dat/actors/
H A Dcharacters.lua19 max_hit_points = 63,
104 max_hit_points = 45,
189 max_hit_points = 55,
274 max_hit_points = 56,
/dports/games/valyriatear/ValyriaTear-1.1.0/data/entities/
H A Dcharacters.lua47 max_hit_points = 62,
154 max_hit_points = 56,
257 max_hit_points = 62,
352 max_hit_points = 237,
/dports/games/7kaa/7kaa-2.15.4p1/include/
H A DOFIRM.h119 short max_hit_points();
164 …int can_sell() { return hit_points >= (int) max_hit_points * CAN_SELL_HIT_POINTS_PERCENT / 100;… in can_sell()
185 float max_hit_points; variable
H A DOMP_CRC.h73 float max_hit_points; member
361 short max_hit_points; member
H A DOF_MONS.h55 short max_hit_points; member

1234