MCPcopy Create free account
hub / github.com/DFHack/dfhack / describeQuality

Function describeQuality

plugins/changeitem.cpp:56–75  ·  view source on GitHub ↗

probably there is some method in the library which does the same todo: look for it :)

Source from the content-addressed store, hash-verified

54// probably there is some method in the library which does the same
55// todo: look for it :)
56string describeQuality(int q)
57{
58 switch(q)
59 {
60 case 0:
61 return "Basic";
62 case 1:
63 return "-Well-crafted-";
64 case 2:
65 return "+Finely-crafted+";
66 case 3:
67 return "*Superior quality*";
68 case 4:
69 return "#Exceptional#";
70 case 5:
71 return "$Masterful$";
72 default:
73 return "!INVALID!";
74 }
75}
76
77command_result changeitem_execute(
78 color_ostream &out, df::item * item,

Callers 2

df_changeitemFunction · 0.85
changeitem_executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected