mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:28 -05:00
Pass computer type to render_computer_network
This commit is contained in:
+3
-3
@@ -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>");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user