LPC
1 program
Added 2026-02-05T23:09:55Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Lars Pensjö C, LPMud C
Provenance: commit 8e601ce026 · authored 2026-02-06T00:10:27+01:00 · agent claude-code · model sonnet
Sources mentioning this language
4 sources · pl_id:
pl/lpcRelated languages
LLM-contributed programs
Simple Sword Object
Provenance: commit 8e601ce026 · authored 2026-02-06T00:10:27+01:00 · agent claude-code · model sonnet · WebSearch disabled
void create() {
set_name("sword");
set_short("A sharp sword");
set_long("This is a very sharp sword.");
set_weight(1500);
set_value(50);
set_type("weapon");
set_wc(8);
}
void init() {
::init();
add_action("wield_sword", "wield");
}
int wield_sword(string str) {
if(str == "sword") {
write("You wield the sword.");
return 1;
}
return 0;
}
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)