MCPcopy Create free account
hub / github.com/diasurgical/devilution / PrintItemOil

Function PrintItemOil

Source/items.cpp:2613–2681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2611}
2612
2613void PrintItemOil(char IDidx)
2614{
2615 switch (IDidx) {
2616 case IMISC_FULLHEAL:
2617 strcpy(tempstr, "fully recover life");
2618 AddPanelString(tempstr, TRUE);
2619 break;
2620 case IMISC_HEAL:
2621 strcpy(tempstr, "recover partial life");
2622 AddPanelString(tempstr, TRUE);
2623 break;
2624 case IMISC_OLDHEAL:
2625 strcpy(tempstr, "recover life");
2626 AddPanelString(tempstr, TRUE);
2627 break;
2628 case IMISC_DEADHEAL:
2629 strcpy(tempstr, "deadly heal");
2630 AddPanelString(tempstr, TRUE);
2631 break;
2632 case IMISC_MANA:
2633 strcpy(tempstr, "recover mana");
2634 AddPanelString(tempstr, TRUE);
2635 break;
2636 case IMISC_FULLMANA:
2637 strcpy(tempstr, "fully recover mana");
2638 AddPanelString(tempstr, TRUE);
2639 break;
2640 case IMISC_ELIXSTR:
2641 strcpy(tempstr, "increase strength");
2642 AddPanelString(tempstr, TRUE);
2643 break;
2644 case IMISC_ELIXMAG:
2645 strcpy(tempstr, "increase magic");
2646 AddPanelString(tempstr, TRUE);
2647 break;
2648 case IMISC_ELIXDEX:
2649 strcpy(tempstr, "increase dexterity");
2650 AddPanelString(tempstr, TRUE);
2651 break;
2652 case IMISC_ELIXVIT:
2653 strcpy(tempstr, "increase vitality");
2654 AddPanelString(tempstr, TRUE);
2655 break;
2656 case IMISC_ELIXWEAK:
2657 strcpy(tempstr, "decrease strength");
2658 AddPanelString(tempstr, TRUE);
2659 break;
2660 case IMISC_ELIXDIS:
2661 strcpy(tempstr, "decrease strength");
2662 AddPanelString(tempstr, TRUE);
2663 break;
2664 case IMISC_ELIXCLUM:
2665 strcpy(tempstr, "decrease dexterity");
2666 AddPanelString(tempstr, TRUE);
2667 break;
2668 case IMISC_ELIXSICK:
2669 strcpy(tempstr, "decrease vitality");
2670 AddPanelString(tempstr, TRUE);

Callers 1

PrintItemMiscFunction · 0.85

Calls 1

AddPanelStringFunction · 0.85

Tested by

no test coverage detected