Pass computer type to render_computer_network

This commit is contained in:
FreezePhoenix
2024-02-14 21:42:09 -05:00
committed by GitHub
parent c71e8387a2
commit 48b64809e2
+3 -3
View File
@@ -1242,9 +1242,9 @@ function inventory_click(num,event)
else if(character.items[num])
{
if(character.items[num].name=="placeholder") return;
if(character.items[num].name=="computer") // gameplay=="hardcore" &&
if(character.items[num].name=="computer" || character.items[num].name=="supercomputer") // gameplay=="hardcore" &&
{
return render_computer_network(".inventory-item");
return render_computer_network(".inventory-item",character.items[num].name);
}
render_item(".inventory-item",{id:"citem"+num,item:G.items[character.items[num].name],name:character.items[num].name,actual:character.items[num],num:num,inventory_ui:num});
last_invclick=num+iname;
@@ -7006,4 +7006,4 @@ function electron_add_webview(url)
{
if(!url) url="http://thegame.com/character/GG/in/EU/I/";
$("body").append("<webview src='"+url+"' style='position: fixed; top: 0px; left: 0px; bottom: 0px; right: 0px' disablewebsecurity nodeintegration></webview>");
}
}